HTML Introduction


❮ Previous Next ❯

What is HTML?

HTML full form is Hyper Text Markup Language. It is the standard markup language use for making websites and this language is easy to learn.

HTML language describe the structure of web pages. It consists of a series of elements, which tell the browser how to display the content. HTML was invented by Tim Berners-Lee in 1991. Today HTML5 is the standard version and it's supported by all modern web browsers.


A Simple HTML Document

Example

<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>Welcome to my first webpage</h1>
<p>My first paragraph.</p>
</body>
</html>
Try It »

Example Explained

  • <!DOCTYPE html> declares the document is an HTML5 document.
  • <html> element is the opening tag for an HTML document.
  • <head> element contains information about the webpage, such as the title.
  • <title> element sets the title of the webpage that appears in the browser's title bar or in the page tab.
  • <body> element contains the visible content of the webpage such as headings, paragraphs, images, hyperlinks, tables, lists, etc.
  • <h1> element defines the heading of the webpage.
  • <p> element creates a paragraph.

What is an HTML Element?

An HTML element is defined by a start tag, some content, and an end tag. The start tag and end tag are enclosed in angle brackets, and the content is placed between them.

<StartTag>Content Between Elements</EndTag>

Start Tag Content Between Tag End Tag
<h1> Welcome to my first webpage </h1>
<p> My first paragraph. </p>
<br> None None

<br> is HTML Elements have no content and do not have an end tag, such elements are called empty elements.