Understanding HTML and XHTML

XHTML Examples

<p>This is a paragraph enclosed within HTML/XHTML paragraph tags.</p>

This is a paragraph enclosed within HTML/XHTML paragraph tags.


<h1>This is a level 1 heading.</h1>

This is a level 1 heading.


<h2>This is a level 2 heading.</h2>

This is a level 2 heading.


<h3>This is a level 3 heading.</h3>

This is a level 3 heading.


This is a <a href="http://www.scsb.org/" target="_blank">hyperlink</a> to the Smyth County School Board's Website.

This is a hyperlink to the Smyth County School Board's Website.


<ul>
<li>List item</li>
<li>List item</li>
</ul>


<ol>
<li>List item</li>
<li>List item</li>
</ol>

  1. List item
  2. List item

<table>
<tr>
<th>Assignment</th><th>Due Date</th></tr>
<tr><td>Read pages 115-117 in your textbook.</td><td>March 10, 2006</td></tr>
</table>

AssignmentDue Date
Read pages 115-117 in your textbook.March 10, 2006

<div style="width: 500px; border: 1pt solid black; background-color: gold; padding: 4em">
<p>This is a paragraph within a division. The division could also contain tables, images, lists, and other HTML elements.</p>

</div>

This is a paragraph within a division. The division could also contain tables, images, lists, and other HTML elements.


<img src="images/browser.jpg" width="1000px" height="750px" alt="diagram illustrating how Web browsers render HTML code and binary objects into a Web page" />

diagram illustrating how Web browsers render HTML code and binary objects into a Web page


Your Assignment

Create a Web page that contains the following:

  1. An XHTML 1.0 Strict Document Type Definition;
  2. A link to a Cascading Stylesheet in the head of your document:
    <link rel="stylesheet" type="text/css" href="mystyle.css" media="screen" />
  3. Level 1 and Level 2 headings;
  4. A paragraph introducing yourself;
  5. A table displaying your current class schedule, with at least three columns (period, name of class, teacher);
  6. A hyperlink to the Chilhowie Middle School Website;

Resources