HTML Introduction


HTML stands for Hyper Text Markup Language. It is a markup language used to design web pages. HTML is responsible for the structure of a web page. It's the combination of two things, Hypertext & markup language.

Hypertext defines the link between the web pages, whereas markup language is reponsible for the text that comes within the tags and is responsible for structure of the web page.


This is how an HTML document looks like!



<!DOCTYPE html>
<html>
<head>
<title> My First HTML Page </title>
</head>
<body>
<h1> Hello World </h1>
</body>
</html>

Live Demo!


Output:

Hello World



Understanding the terms


  • <!DOCTYPE html> declares the document type. It declares a document being an HTML Document.
  • The <html> element is the container for all other elements of the the document other than <!DOCTYPE html>. This acts like a root tag for the HTML page. All the other tags go within this.
  • The <head> element contains some specific information about the web page which is also referred to as metadata. Elements within the head aren't visible on the front-end of a webpage. HTML tags that are used inside head are: <style>, <title>, <base>, <noscript>, <script>, <meta, <title>, <link>
  • The <title> element declares the title for the HTML page
  • The <body> element contains all the contents that you want to display in the web browser. This content includes headings, paragraphs, images, hyperlinks, tables, lists, etc.
  • The <h1> element defines a level 1 heading

HTML Elements & Tags


<tagname>Content Goes Here</tagname>

All the HTML Content goes within the tags. An HTML document elements is from the starting tag to the ending tag. Example:


<h1>This is heading</h1>
<p>This is paragraph</p>

Why Learn HTML?


  • Extremely easily, simple and interesting to learn
  • Used to develop websites
  • Using HTML, websites can be built really fast
  • Can provide a start to a career in web development
  • Can help build fundamental concepts related to development

HTML Versions


HTML was created by Tim Berners-Lee in 1991. The first ever version of HTML was HTML 1.0, but the first standard version of HTML was 2.0.


HTML Version Year
HTML 1.0 1991
HTML 2.0 1995
HTML 3.2 1997
HTML 4.01 1999
XHTML 2000
HTML 5 2014