What is HTML ?


What is HTML?
HTML is a computer language devised to allow website creation. These websites can then be viewed by anyone else connected to the Internet.
HTML is the standard markup language for creating Web pages.

    HTML stands for Hyper Text Markup Language
    HTML describes the structure of Web pages using markup
    HTML elements are the building blocks of HTML pages
    HTML elements are represented by tags
    HTML tags label pieces of content such as “heading”, “paragraph”, “table”, and so on
    Browsers do not display the HTML tags, but use them to render the content of the page

A Simple HTML Document

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

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


Example Explained

<!DOCTYPE html> declaration defines this document to be HTML5
<html> element is the root element of an HTML page
<head> element contains meta information about the document
<title> element specifies a title for the document
<body> element contains the visible page content
<h1> element defines a large heading
<p> element defines a paragraph

About HTML Tags

. HTML tags normally come in pairs like


. The first tag in a pair is the start tag, the second tag is the end tag
. The end tag is written like the start tag, but with a forward slash inserted before the tag name

HTML Versions
Version Year
HTML 1991
HTML 2.0 1995
HTML 3.2 1997
HTML 4.01 1999
XHTML 2000
HTML5 2014

HTML Headings

HTML headings are defined with the



This is heading 1

This is heading 2

This is heading 3

This is heading 4

This is heading 5
This is heading 6

HTML Paragraphs

This is a paragraph.

This is another paragraph.

HTML Links

HTML links are defined with the tag:

This is a link

The link’s destination is specified in the href attribute.

Attributes are used to provide additional information about HTML elements.

HTML Images
HTML images are defined with the tag.

The source file (src), alternative text (alt), width, and height are provided as attributes:


HTML Lists
HTML lists are defined with the

    (unordered/bullet list) or the

      (ordered/numbered list) tag, followed by

    1. tags (list items):

      An Unordered HTML List

      • Coffee
      • Tea
      • Milk

      An Ordered HTML List

      1. Coffee
      2. Tea
      3. Milk

      HTML Comment Tags
      You can add comments to your HTML source by using the following syntax:

Leave a Reply

Your email address will not be published. Required fields are marked *