Skip to main content
Richard Hill - Online Learning
An Introduction to XMLZIPPDF (letter)PDF (A4)e-mail
Main menuSection menuFeedbackPreviousNext
4. XHTML
  


Non-empty Elements page 9 of 11


HTML allows elements to be started and not terminated - if you miss a paragraph end tag, <P> then the paragraph will still be rendered. With XHTML the end tag must always be included, unless the element does not require any attributes.. For example:

<br /> is permissible for the HTML line-break (<BR>) in XHTML.

For an element that has no content, both starting and ending tags must be used as follows:

<p></p>


Main menuSection menuFeedbackPreviousNext
www.shu.ac.uk/schools/cms/teaching/rh1