Hands On: Essential Document Tags
Create a basic web page containing the essential document tags and some text, save it as a web page, and look at it in a web browser:
- From the Start menu, launch Notepad (usually in the Accessories group).
- Add the
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">tag. - Add the
<html>,<head>, and<title>tags. - Add text for the document title.
- Close the Title and Head using
</title>and</head>tags. - Add the
<body>tag. - Add some text to your document.
- Close the Body and HTML using
</body>and</html>. - Save the file to a convenient location by selecting File > Save, choosing a directory to save to, and naming your file practice.html.
- Preview your page in a web browser (like Internet Explorer) by selecting My Computer from the Desktop and navigating to and launching your saved page.
