What is HTML? | Introduction to HTML? | HTML Course

What is HTML?

  • HTML stands for Hyper Text Markup Language
  • HTML is the standard markup language for creating Web pages
  • HTML describes the structure of a Web page
  • HTML consists of a series of elements
  • HTML elements tell the browser how to display the content
  • HTML elements label pieces of content such as "this is a heading", "this is a paragraph", "this is a link", etc.

Example of Simple HTML Document:

<!DOCTYPE html>
<html>
<head>
<title> Title of  your page</title>
</head>
<body>
<h1> Heading</h1>
<p> Paragraph</p>
</body>
</html>

Explanation Of above example of document:

  1.  <DOCTYPE html> this declaration defines the type of document is HTML 5.
  2. <html> defines the root of the page.
  3. <head> has the meta info about your HTML page.
  4. The title of your page is written between <title>and </title> which is shown on the browser's tab.
  5. <body> element is considered as the document body and has headings, paragraphs, images, links, and many other visible contents.
  6. <h1> tag shows the major size of heading.
  7. <p> shows the paragraph.

What is an HTML Element?

An HTML element is defined by some content enclosed in a start tag and an end tag.

<tagname>Content will be here....</tagname>
The HTML element is everything from the beginning tag to it's end tag:

<h1> Heading</h1>
<p> paragraph.</p>
The above-highlighted line will be considered as an element.

 

What is HTML? | Define HTML? | Learn HTML | HTML Course 2021