Jump to Content Register Account

Essential XHTML Elements

The following are elements that perform basic functions within a web document and are used in most documents.

Element Name Opening Tag Closing Tag Use
Div <div> </div> Create a logical division for layout purposes on a web page.
Anchor <a> </a> Create a link to another destination (requires 2 attributes: href and title).
Header <h1...6> </h1...6> Designate a header for importance.
Unordered List <ul> </ul> Create a list of items that are not serialized.
Ordered List <ol> </ol> Create a serialized list of items.
List Item <li> </li> Specifies an item in either an ordered or unordered list.
Image <img /> None Places a graphic image into the document (requires 4 attributes: src, alt, width, height).
Paragraph <p> </p> Creates a block level container for text.
Table <table> </table> Create a basic table. Requires two child elemnts, tr and td. Tables are used for data that should be laid out in columns.
Table Row <tr> </tr> Creates a row in a table.
Table Cell <td> </td> Create a cell within a table row. This structure actully holds the data.
Line Break <br /> None Places a hard return at the end of a line of text.
Horizontal Rule <hr /> None Places a horizontal line to visually separate contents on a page.

 

 

 
Page is XHTML-Strict Compliant Page is CSS 2.1 Compliant Page meets WAI level 1 usability guidelines
Blaine Robertson logo