HTML is the standard markup language for creating Web pages.

HTML introduction

What is HTML?

  • HTML stands for Hyper Text Markup Language
  • HTML is the standard markup language for generate Web pages.
  • HTML describes the formation of an web page.
  • HTML consists of a sequence of elements.
  • HTML elements tell the browser a way to show the content.

A Simple Example


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

             <h1>My First Heading</h1>
             <p>My first paragraph.</p>


Example Understand next.

  • In above example
    <!DOCTYPE html> defines this
    document is an HTML5 documents.
  • The root element of an HTML page is
    <html> element.
  • The metadata on the HTML page is within the
    <head> element.
  • In the example above, the title of the HTML page is derived from the
    <title> element which represents the title page in the title bar
    if the browser
  • The <body> element specifies
    the body of the document and is a container for all visible contents,
    such as headers, paragraphs, images, hyperlinks, tables, lists,
  • In the example above, the
    <h1> element defines a headline
    and the <p> element defines a

Web browser 

The objective of a Web browser (Chrome, Edge, Firefox, Safari) is to read
HTML documents and view them properly.
A browser does not show HTML labels, but uses them to determine how to
view the document.

The contents of the section (the white box above) appear in a browser.
The content of the element will appear on the browser’s title bar or on
the page’s tab.

Rate this post

Categorized in: