tutorialstonight logo
A Platform To Learn To Code

HTML INTRODUCTION



What is HTML?

HTML stands for HyperText Markup Language.

HTML is a widely known Markup language that web browsers use to interpret and compose text, images, audio, video and other different material into visual or audible web pages. It is the basic building block of a webpage. It is used to create websites and web applications.

Markup language is a type of language which is used for the presentation of different elements like-text,image,audio,video, etc on computer screens.


HTML is used for document design to be displayed in browsers. We can create static websites using HTML only. HTML elements are described by tags ( Tag is a series of characters and symbols like- <, > and / ) .

HTML documents can be designed simply in notepad using basic syntax required for a webpage design and must be saved with an extension of either htm or html.



History of HTML

HTML was created by Sir Tim Berners-Lee in the year 1991 but it was not released until 1995 as HTML 2.0.

The major version of HTML was published in 1999 as HTML 4.01. This was a successful version of HTML and was widely used.

HTML versions publishing

  • HTML 2 - Published on 24th nov,1995
  • HTML 3 - Published on 14th jan,1997
  • HTML 4 - Published on 18th dec,1997
  • HTML 4.0 - HTML 4 was reissued with major edits on 24th dec,1999
  • HTML 4.01 - HTML 4.01 was published as W3C recommendation on 12th may,1999
  • HTML 5 - Published as W3C recommendation on 28th oct,2014


Basic HTML code for simple webpage.

Example

Run the code

Code explanation:-

  • <!DOCTYPE html> defines that this document is of HTML.
  • <html> defines the root element of a web page.
  • <head> may contain information like style,meta data,javascript etc.
  • <title> shows heading or title of web page.
  • <body> contain all the elements which are displayed on the screen.
  • <p> is a tag in HTML used for designing paragraphs.
  • <h2> is a tag in HTML used for heading.

You will get a detailed understanding of all these further in this tutorial. We have discussed basic elements and their arrangement in detail here.