What is HTML

Hyper Text Markup language or HTML, is the most commonly used language on Web. It is a mark up language, as it contains markup tags or tags. HTML is used to write content or structure of web pages. It is also known as Building Block of a website. Browsers understand html tags and render content. HTML is Browser Interpreted language, thus render fast.

HTML is browser embedded. To Design or build a website, one should starts with HTML first. HTML includes 140+ tags and attributes to build layout. The latest version of html is HTML5, which included HTML, CSS and JavaScript. HTML and CSS are static, while JavaScript is dynamic.

HTML is not a programming language.

HTML Structure

HTML Structure

HTML Invention

HTML was invented in 1990 by a CERN scientist Tim Berners-Lee. The purpose to invent HTML was to make it easier for research scientists and professors at different universities around world to gain access to each other's research works. The project became a bigger success than Tim Berners-Lee had ever imagined. By inventing HTML, he laid the foundation for the web as we know it today. HTML language makes it possible to present information (e.g. scientific research) on the Internet.

What you see when you view a page on the Internet is your browser's interpretation of HTML. To see the HTML code of a page on the Internet, simply click "View" in the top menu of your browser and choose "Source". Or press ctrl + u, or Cmd + Alt + u

How to build a website using html

  1. Open Notepad, Notepad++, Brackets, Sublime Text or any code editors.
  2. Create the doctype of webpage. e.g. <!DOCTYPE html>
  3. Create Parent html tag e.g. <html> </html>
  4. Create head tag inside html tag, e.g. <head> </head>
  5. Create body tag after head closing, e.g. <body> </body>
  6. Add title tag inside head, e.g. <title> </title>
  7. Add meta tag inside head, e.g. <meta charset="utf-8">
  8. Save page as index.html file on your system.
  9. Double Click the file and your webpage is live on browser.

A Sample HTML Page

<!DOCTYPE html>
<html lang="en">
<title>Your Title</title>
<meta charset="UTF-8">
//Content of your webpage </body>


Tag-Name Description
<html> HTML tag is the parent tag of our webpage.
<head> Head tag is first child of html tag and is used to write the information for web browsers and Search engines.
<title> Title tag is used only once inside head tag. Title tell the search engines the about the webpage. Its max character limit is 60-70. Title should be unique for every webpage.
<meta> Meta tag is used to define the charset family, description, keywords, Author, robots and Geo Location of the website.
<link> Link tag is used to link external css, favicon icon, publisher and canonical of the webpage.
<script> Script Tag is used to attach external javascript, jquery, and AngularJS scripts with the webpage.
<body> Body tag is used to create the webpage structure. Structure includes Headings, Paragraphs, images, tables, division, etc of the webpage. Body includes all the content which users see on a website.

Overall, there are 140+ Tags in HTML5. These tags are explained one by one in our next article.

HTML Doctype

An HTML page is started by doctype. Doctype is not a tag, it only tells browsers, search engines and validators which version of html and DTD we are using. HTML Doctype

 <!DOCTYPE html>                 

HTML Comments

HTML Comments are used to write messages or notifications for web developers. Comments are started with <!-- and ends with -->. These comments are not visible in browsers, but remain in page source code.

    <!-- HTML Comment -->