Your First Code

In below code, the message “Hello World” is displayed on the HTML page. The Fig. 1.1 is the resultant HTML page.

  • The title (Line 4) appears on the top of the browser
  • The tag <h1> is called ‘header’ tag, which has the larger size than the normal text (see the size of ‘Hello World!’).
  • The tag <p> is called the ‘paragraph’ tag, which can be used to write the paragraphs.
				1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>HTML Tutorial</title>
5 </head>
6 <body>
7 <h1> Hello World! </h1>
8 <p> This is the first HTML code </p>
9 </body>
10 </html>

© Copyright 2025 | FolkLight Studios