BAM - Providing html code to artists, agencies, designers & developers since 1996.
 


 

XHTML Specifications

XHTML stands for eXtensible HyperText Markup Language

XHTML 1.0 became a W3C Recommendation January 2000.

XHTML 1.0 will be replaced by XHTML 2 and many tags will Not be backward compatible see note

XHTML does Not replace HTML - HTML 5 is on the way and should be backward compatible in parts to version 4.01


Note: In 2009, the W3C allowed the XHTML 2 Working Group's charter to expire, acknowledging that HTML 5 would be the sole next-generation HTML standard, including both XML and non-XML serializations. Source

  

XHTML Self closing/ contained tags
 

Type Example
meta data <meta name="author" content="Your Name" >
  <meta content="RiverDocs" name="GENERATOR" />
  meta data should not include symbols
Horizontal rule (line) <hr />
Meta links <link rel="stylesheet" type="text/css" href="style.css" />
Line Breaks <br />
Image <img src="image.jpg" alt="image" />
Form elements <input name="example" type="text" />
Form exceptions An exception in form elements is made for the select tag, i.e. dropdown and multi selection lists
Use the full opening and closing tags. <select>*.*</select>

<p>
<select id="list" name="Drinks" title="Select a Drink" size="1">
<option value="null" selected="selected">Please Select</option>
<option>Apple</option>
<option>Orange</option>
<option>Milk</option>
<option>Cola</option>
</select>
</p>