Getting Started With HTML

HTML Heading

HTML heading is used to specify web page heading and sub heading.HTML heading is defined with <h1> to <h6> & <h1> is used for most important heading while <h6> used for least important heading.

Example

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Important Of HTML Heading

HTML headings are very important during indexing of website.HTML heading <h1> specifies the main heading of the page while <h2> specifies the sub heading of the page and another heading specifies least important.

Changing Font Size Of The Heading

Please keep in mind that all the heading tag has it's by default font size. The font size of the heading tag could be changed by using CSS style properties.

Step2:Write HTML Script Code

Write the following code in the newly created file.

Source Code

          <!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>A simple HTML document</title>
  </head>
  <body>
    <p>Hello World !</p>
  </body>
</html>
        
Try it now

Step3:Saving The Created File

To save the created file, you have to move on to the File menu and click on the save option. Now save the file on the desktop as 'first-page.html'.

Now go to desktop and right-click on first-page.html and select open with option and select open with {existing browser i.e chrome/firefox/opera etc.}.Now you can the result of your HTML code.

Code Explanation

  • <!DOCTYPE html> It specifies HTML5 document.
  • <html>It specifies that from here , we are going to write in HTML code.
  • <head> It specifies all the metadata for this page.
  • <body>It contains the document's actual content

Online Test / Quiz

Web Tutorials

Getting Started With HTML
Html Tutorial HTML
Javascript Tutorial JAVASCRIPT
Css Tutorial CSS
Bootstrap 5 Tutorial BOOTSTRAP 5
Bootstrap 4 Tutorial BOOTSTRAP 4