JavaScript EditorDebugger script     Dhtml css 



Team LiB
Previous Section Next Section

Creating a Level-One Heading

Although the TITLE element displays the title of your document on a browser's title bar, to create the title, or level-one heading, that is displayed at the top of the page within the browser's viewport, you need to use the H1 element. Because the H1 element is displayed as part of the document body, it is nested in the BODY element. Add a level-one heading to your page:

<body>
<h1>Miranda's World</h1>
</body>
</html>

As you will notice, the H1 element is a container element, since it has both a start and an end tag. It is also a block element, with line breaks and white space added above and below the element when it is displayed in a Web browser. You will see this in the next section, when you open your HTML document in your Web browser, to preview and debug it.


Team LiB
Previous Section Next Section


JavaScript EditorDebugger script     Dhtml css