Sujay Kundu

HTML Basics

In this article, I am going to try to share all the HTML basics, if any thing is missing please let me know through comments or by contacting me through email.

What is HTML

HTML or Hypertext Markup Language, was created by Berners-Lee in 1991. You can read more about him here.

It is a markup language used to create and structure website templates or web pages to present content on the world wide web (www).

It consists of a series of elements, and the HTML elements, tells the web browsers like Google Chrome, Mozilla Firefox, Safari etc. on how to display the content.

HTML helps in making the text more interactive and dynamic. You can save an HTML page by adding the extention .html or in the webpage name eg. index.html

Latest Version

HTML5 is the latest version

Features of HTML

The following are the features of HTML :

  1. It is a markup language that provides flexibility to design web pages with text.
  2. It is easy to use and learn.
  3. HTML is platform-independant and can be used in any OS like Windows, Linux, MacOS etc.
  4. It enables programmers, to add video, audio, images to a web page making it more interactive.
  5. It allows programmers to add a link on webpages, helping the readers to browse the information of their interest.
  6. It is case-insensitive. You can use tags either in lower-case or upper-case.


Structure of HTML

The basic structure of HTML Template is :

    <title> Title of the page </title>
    <p> Hello World </p>


HTML5 Specification was introduced to meet the below goals :

  1. Compatability – Ensure backwards and forward compatibility with older versions of HTML and other web technologies.
  2. Multimedia Support – Provide native support for multimedia content such as Audio, Video, eliminating the need for third-party plugins like Adobe Flash.
  3. Device Independence – Allow web applications to run on various devices, including desktop computers, laptops, tablets and smartphones.
  4. Accessibility – Improve accessibility by providing support for assistive technologies and making it easier to create web content that is accessible to users with disabilities.
  5. Semantic Markup – Promote semantic markup to make web content more meaningful and understandable by humans and machines.
  6. Consistency – Provide consistent features and behaviours across different browsers, reducing the need for browser specific code.
  7. Security – Improve security by providing more robust mechanisms for handling user input and data preventing malcious code from executing on a user’s device.

HTML5 introduced some new features like :

  • Support for SVG, canvas and other virtual vector graphics.
  • Allowing Javascript to run within a Web Browser
  • HTML5 is not based on SGML. It comes with enhanced parsing rules for improved compatability.
  • Web SQL databases are used to store data temporarily. Previously only the browser cache was used.
  • Some elements have been removed – applet, isindex, noframes, acronym, dir, font, frame, frameset and big are removed.
  • New elements have been added – time, summary, aside, audio, command and data.

How to create various elements in HTML

  • Create a Button
  • Create a Table
  • Create a Form
  • Display an Image
  • Display a Video
  • Create a Article