XHTML: Ewebtech Website Development
XHTML: Ewebtech Website Development
Tutorial Series
Part 1
XHTML
Written by Andrew Carter
eWebTech
Website Development XHTML 2
<shop id=”50235”>
<information>
<name>Fred‟s Newsagents</name>
<postcode>XX00 0XX</postcode>
<town>Lidelham</town>
<county>Sussex</county>
<country>United Kingdom</country>
</information>
<items>
<item soldout=”no”>
<name>Apple</name>
<quantity>5</quantity>
<cost>£0.39</cost>
</item>
<item soldout=”no”>
<name>Crisps</name>
<quantity>2</quantity>
<cost>£0.59</cost>
</item>
<item soldout=”yes”>
<name>Chocolate Bar</name>
<quantity>0</quantity>
<cost>£0.60</cost>
</item>
...
</items>
</shop>
Figure 1 Example XML file describing a shop
To test your XHTML skills, open up notepad (or a HTML editor) and
copy in the contents of Figure 2. Try playing around with adding
more elements and use Table 1 as a basic reference point. When
you‟re done save the file with the “.html” file extension – you may
need to switch the viewing mode to „All Files‟ in notepad first to
prevent it adding a “.txt” extension.
Below are some links which are there to help you as you play around
with your example webpages.
http://www.w3schools.com/tags/default.asp
http://xhtml.com/en/xhtml/reference/