HTML Introduction

What is HTML

HTML is a markup language for describing Web pages

  • HTML represents Hyper Text Markup Language
  • it is a markup language set of markup tags
  • HTML records are portrayed by HTML tags
  • Each HTML tag describes distinctive record content

HTML Example

A little HTML document:

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

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

Try it yourself »

Example Explained

  • The DOCTYPE announcement characterizes the record type to be HTML
  • The message between <html> and </html> depicts a HTML document
  • The message between <head> and </head> gives data about the document
  • The message between <title> and </title> gives a title to the document
  • The message between <body> and </body> portrays the noticeable page content
  • The message between <h1> and </h1> portrays a heading
  • The message between <p> and </p> portrays a paragraph


HTML labels are keywords (label names) encompassed by angle brackets:

  • HTML labels ordinarily come in pairs like <p> and </p>
  • The first tag in a couple is the begin tag, the second tag is the end tag
  • The end tag is composed like the begin tag, however with a slash before the label name

Web Browsers

The motivation behind an internet browser, for example, firefox is to peruse HTML records and show them.

View in Browser

HTML Page Structure

Below is a perception of a HTML page structure:

<title>Page title</title>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>

The <!DOCTYPE> Declaration

The <!DOCTYPE> affirmation encourages the program to show a page correctly.

There are diverse archive types on the web.

To show an archive accurately, the program must know both sort and version.

The doctype assertion isn't case touchy. All cases are acceptable:

<!DOCTYPE html>


<!doctype html>

<!Doctype Html>

Common Declarations


<!DOCTYPE html>

HTML 4.01

<!DOCTYPE HTML PUBLIC "-/W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

HTML Versions

various adaptations of HTML:

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