What is HTML?

 The HyperText Markup Language or HTML is the standard markup language for documents designed to be displayed in a web browser. It can be assisted by technologies such as Cascading Style Sheets (CSS) and scripting languages such as JavaScript.

Web browsers receive HTML documents from a web server or from local storage and render the documents into multimedia web pages. HTML describes the structure of a web page semantically and originally included cues for the appearance of the document.

HTML
HTML5

Structure of HTML:

<!DOCTYPE html>
<html>
<head>
   <title>This Is title</title>
</head>
<body>
    <h1>My First Heading</h1>
    <p>My First Paragraph</p>
</body>
</html>

  • <!DOCTYPE >: All HTML documents must start with a <!DOCTYPE> declaration. The declaration is not an HTML tag. It is an "information" to the browser about what document type.
  • <html>: The <htmltag represents the root of an HTML document. The <htmltag is the container for all other HTML elements.
  • <head>: It ia container for metadata (data about data) and is placed between the <html> tag and the <body> tag. Metadata is data about the HTML document. Metadata is not displayed. Metadata typically define the document title, character set, styles, scripts, and other meta information.
  • <body>: The <body> element contains all the contents of an HTML document, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.