Wednesday 20 August 2014

Basic

Page Structure of HTML

Below is a visualization of an HTML page structure:
<html>
    <body>
        <h1>This is a heading</h1>
        <p>This is a paragraph.</p>
        <p>This is another paragraph.</p>
    </body>
</html>

The <!DOCTYPE> Declaration

The <!DOCTYPE> declaration helps the browser to display a web page correctly.
There are many different documents on the web, and a browser can only display an HTML page 100% correctly if it knows the HTML version and type used.

Common Declarations
HTML5
<!DOCTYPE html>

HTML 4.01
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.basetutorial.blogspot.in/TR/html4/loose.dtd">



< Go To Previous Chapter                  Go To Next Chapter >


No comments:

Post a Comment