JavaScript EditorDebugger script     Dhtml css 



Team LiB
Previous Section Next Section

Starting Your Page

To start your page, you need to add the top-level elements, inside of which all other elements in your page will be nested.

Adding the HTML Element

The HTML element defines the topmost element—the HTML document itself—thus identifying it as an HTML document rather than some other kind of document. The HTML element is a container element that has a start and end tag. Type the following codes in your text file to add the HTML Element:

<html>
</html>

When creating an HTML file, the <html> start tag must remain at the top of your page, whereas the </html> end tag must remain at the bottom of the page, with all other elements that compose the document nested inside them.

Adding the HEAD and BODY Elements

An HTML document has two parts: a head and a body. The HEAD element is used to include elements that provide information about the document or perform operations upon it. The BODY element contains all of the elements that form the displayable body of the document. Add HEAD and BODY elements to your HTML document:

<html>
<head>
</head>
<body>
</body>
</html>

Creating a Title

Every HTML document should have a title. The TITLE element is the only element that is required within the HEAD element.

Miranda Bloom is creating a personal Web page (a page about herself). She has decided to title her page as "Miranda's World."

Add a title to your HTML document:

<head>
<title>Miranda's World</title>
</head>

A Web page's title is displayed on a browser's title bar, at the top of the browser window, but is not displayed as part of the page. Figure 2.1 shows the document title displayed on a browser's title page.

Click To expand
Figure 2.1: A Web page's title, created using the TITLE element, is displayed on a browser's title bar.

Team LiB
Previous Section Next Section


JavaScript EditorDebugger script     Dhtml css