Basic structure of HTML

Every web page has a stander basic structure.

 

HTML Basic Structure:


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

<!-- Write your code here -->

</body>
</html>

This is mandatory, you have to write this basic structure.

Inside this body tag you can write any html tag to make your web page. tag will not visible to browser you can see only text in browser.

 

Let's make a basic web page which will show a Welcome massage in browser.

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

<p>Welcome to programmingnet.com</p>

</body>
</html>

 

Output in browser

Welcome to programmingnet.com

 

About Author

Photo

Hi, I am Mahbub Hasan
Software Engineer

I am very much interested to share my programming
and development knowledge with the people.I will try
to update my blog everyday with new technology inshallah.

Thank You

For Visiting My Blog.

Contact Me