Exercise - Writing an XHTML document
In this exercise you will experiment marking up a document using a standard DTD, specifically, XHTML.
Mark up ala.txt as an XHTML document.
Open ala.txt in NotePad.
Save the file as ala.html.
Add the XML declaration to the top of file file, <?xml version="1.0"?>.
Add the document type declaration, <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Add the opening and closing html elements (i.e. <html>).
Add an opening and closing head and body sections (i.e. <head>, <body>).
Add a title element to the head section (i.e. <title>).
Add a link element pointing to the location where your CSS file will be (i.e. <link rel="stylesheet" href="ala.css" type="text/css" />).
Using only the p and br elements, mark up the body of the letter making sure to properly open and close each element (i.e. <p> , <br /> ).
Save your file, again, and view it in your Web browser.