X hits on this document

525 views

0 shares

1 downloads

0 comments

62 / 142

XHTML

Exercise - Writing an XHTML document

In this exercise you will experiment marking up a document using a standard DTD, specifically, XHTML.

1.

Mark up ala.txt as an XHTML document.

A.

Open ala.txt in NotePad.

B.

Save the file as ala.html.

C.

Add the XML declaration to the top of file file, <?xml version="1.0"?>.

D.

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">

E.

Add the opening and closing html elements (i.e. <html>).

F.

Add an opening and closing head and body sections (i.e. <head>, <body>).

G.

Add a title element to the head section (i.e. <title>).

H.

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" />).

I.

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 /> ).

J.

Save your file, again, and view it in your Web browser.

54

Document info
Document views525
Page views531
Page last viewedWed Jan 18 16:38:20 UTC 2017
Pages142
Paragraphs3126
Words34660

Comments