Creating first html page Hello World

HTML Uses Elements to Describe the Structure of Pages

HTML Hello World

Let’s look closer at the code of Hello World, There are several different elements. Each element has an opening tag and a closing tag.

<!DOCTYPE html> <!-- Document Version 'Html 5' -->
<html> <!-- Document Starts -->
<head> <!-- Document Header Starts -->
 <title>Hello</title> <!-- Document title which is displayed on browser tilebar -->
</head> <!-- Document Header End -->
<body> <!-- Document Body Starts -->

<h1>My First Heading</h1>

<p>My first paragraph.</p>

</body> <!-- Document Body End -->
</html> <!-- Document End -->

HTML Tags act like containers. They tell you something about the information that lies between their opening and closing tags.

View Code on GitHub

Leave a Reply

Your email address will not be published. Required fields are marked *