What is HTML?

HTML (HyperText Markup Language) is the basic language used to create web pages. It helps us design the structure of a website using tags such as headings, paragraphs, images, links, tables, and forms. HTML tells browsers how content should be displayed. It is a markup language, not a programming language. HTML works together with CSS for styling and JavaScript for adding interaction.

Syntax


<!DOCTYPE html>

<html>

<head>

<title>Page Title</title>

</head>


<body>

Content goes here...

</body>


</html>

Example


<!DOCTYPE html>

<html>

<body>


<h1>Hello World</h1>


</body>

</html>


Features of HTML

  • Easy to learn and use.
  • Platform independent.
  • Supports multimedia elements.
  • Works with CSS and JavaScript.
  • Supported by all modern browsers.

History of HTML

HTML was created by Tim Berners-Lee in 1991. The first version contained only basic tags. Later versions introduced tables, forms, images, audio, video, and semantic elements. HTML5 is the latest version used for creating modern websites.


Basic Structure of HTML


<!DOCTYPE html>

<html>

<head>

<title>Page Title</title>

</head>


<body>


</body>


</html>


Advantages of HTML

  • Simple and beginner friendly.
  • Free and open standard.
  • Supported by all browsers.
  • Provides webpage structure.
  • Works with CSS and JavaScript.