Re: Paragraph tag in XHTML

by Matt <ncmail(at)triad.rr.com>

 Date:  Wed, 10 Sep 2003 13:44:26 -0400
 To:  hwg-basics(at)hwg.org
 In-Reply-To:  yahoo
  todo: View Thread, Original
At 09:00 AM 9/10/03 -0700, Les Etheridge wrote:
>Do you always need to close the pargraph tag when
>coding for XHTML ?

Yes, all XHTML elements must be closed.

Even empty elements (like <br> and <hr> must have an end tag or the start 
tag must end with />

Example:  <br /> and <hr /> and <img src="something.gif" />

For browser compatibility add a space before the / symbol.

Here is a good web site for an XHTML tutorial:

http://www.w3schools.com/xhtml/default.asp


Happy XHTML-ing,

Matt

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA