Learn How to Write your First HTML Program and check the Output
In these series of HTML tutorials, this one is the second article with a small and fairly easy HTML code.
In these series of HTML tutorials, this one is the second article with a small and fairly easy HTML code. In this code if you see I wrote comments inside <!-- --> which gives you all the details why I wrote that tag and what's the use of that tag.
<HTML> tag always comes when you want to start coding the HTML page.
<head> tag comes just after the HTML tag and we put metadata inside the head tag, like the title of the page, etc.
<title> tag comes inside the head tag and you can write any title you want.
then close the title tag and the head tag.
<body> tag comes after head tag. In this tag, you need to enter whatever you want to show on your webpage.
Then after you finish adding stuff inside the body tag you need to close the body tag </body> like that.
After that, you need to close </html> tag like that if you don't close any of the open tags it will show error inside the browser.
<!--To work with html you need to start with html tag --> <HTML> <!-- First thing after html you need yo write head Tag. Head element used as a container for metadata --> <head> <!--Title tag used for title of your html page. --> <title>FIRST ARTICLE ON HTML PAAYI </title> </head> <!-- Body tag contains everything of your HTML page. --> <body> This is my First HTML Page - Paayi HTML Tutorials. </body> </html>
I wrote this code inside Atom editor, then saved this file as first.html.
Output: After saving that file I click on that first.html file and it shows result like that
Check out the list of all other articles: