Friday, 22 July 2011

Body of HTML Document

This <body> element holds every little bit of content and markup not defined inside the header. The content that shall be shown in the cell phone window put it inside <body> element.


<html xmlns="http://www.w3.org/1999/xhtml" 
                       xml:lang="en" lang="en">
<head>
<title>My First Web Page</title>
</head>
<body>
<p>This is my First Web page.</p>
</body>
</html>

HTML Comments

Comments might be inserted in the HTML code to make it more readable and understandable. Comments are ignored by the browser and are possibly not displayed.

<!-- This is a comment -->

Saving and Viewing the Page

 To view the page in a browser, it must be saved with an .html extension (first.html, for example)

No comments:

Post a Comment