Thread: What is XHTML?
View Single Post
  #9 (permalink)  
Old 07-14-2008, 01:30 AM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,162
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Re: What is XHTML?

Example of valid HTML:
<p>This is a paragraph

Equivalent in XHTML:
<p>This is a paragraph</p>

Tags that don’t contain data (like breaks, images, and horizontal rules) should also be closed in HTML. There’s no need to write an opening and closing tag, though. We can use the perfectly acceptable shortcut:

<!— Examples of properly closed XHTML tags -->
<!—Properly closed image -->
<img src=”someimage.gif” alt="An image" />
<!—Properly closed break tag -->
<br />
<!—Properly closed horizontal rule -->
<hr />
__________________
With,
J. Jeyaseelan

Everything Possible
Reply With Quote