Essential Tags

Essential tags instruct the web browser about what type to file to expect.
Activities

Open a simple text editor program such as Notepad and navigate to the "portfolio" folder you created in the Pre-coding lesson. Open the "index.htm" file.
Type the following in order to create the basic HTML structure of a web page. Note that you'll personalize the highlighted text contained in the title tags.

<?xml version="1.0" encoding="UTF-8"?>
!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Test Web of (Your Name)</title>
</head>
<body>
</body>
</html>

You may find it easier to read if you add extra blank lines as you see in the example above. Also, indenting content that is inside of other content helps you to see the relationship between all their parts of the page.

Remember: Extra spaces and blank lines will be ignored when the HTML is displayed by a browser.

Let's now examine each of these tags:

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License