Monday, August 22, 2016

Creating an Example of a Small HTML Document

Friends here I am writing an example of a small HTML document. Learning HTML is very easy. Keep visiting Wide Info Blog. Try this on your own system. Previously we have discussed about the basic introduction & history of HTML.

<!DOCTYPE html>
<html>
<head>
<title> Page Title </title>
</head>
<body>

<h1>  My First Heading  </h1>
<p>  My first paragraph.  </p>

</body>
<!DOCTYPE html>    : This defines that the document is HTML.

<html>  </html>     : Text between these tags is HTML.

<head>  </head>    : Gives information about the document.

<title>  </title>      : Used for the title of the document.

<body>  </body>    :  Used for visible page contents.

<h1>  </h1>           :  Used for Heading.

<p>  </p>               : Used for Paragraph.

Now, Open Notepad in your system. Copy & paste the above HTML code in notepad. Now save this page with extension .htm & your file is saved as shown below.

Next step is to open your saved file with any of the browsers installed on your system. You will see your first HTML page as shown below.

Share this

No comments:

Post a Comment