|
Understanding the structure of HTML code
Every HTML document must contain certain standard tagsthe html tag, head tag and body tag. The head section contains the title of the Web page (and any script code declarations such as JavaScript), while the body section contains the actual text that will appear in the Web page as it is displayed in the browser.
Here is the structure of a sample HTML document:
<html>
<head>
<title>Title goes here</title>
</head>
<body>
<center>
<p>
<font size=+2>Welcome to my page</font>
</p>
<p>
The p is a paragraph tag, which tells the browser that this is all one paragraph.
</p>
</center>
</body>
</html>
When viewed in the Dreamweaver Design view in the HTML code above creates the following page.

|