Introduction to HTML: A Beginner's Guide

calender-iconPublished: 11 May 2025

clock-icon5-min read




INTRODUCTION

HTML stands for Hyper text markup language. It is the language for creating web pages. Browser reads HTML code and display webpage on screen. Let us break HTML name and see what it means.

Hypertext - Simply means link which connects a webpage to another webpage within own website or to other site.

Markup - Markup means tag. Markup language uses tag-based system to define document structure, formatting and elements within its documents. As HTML uses tags to define its element, it is also a type of markup language.

As we can see in the HTML code below, it consists of elements(tags) which define its structure, which is typical of Markup language.

SAMPLE HTML CODE
              

<!DOCTYPE html>  
<html lang="en">  
<head>  
  <meta charset="UTF-8"> 
  <meta http-equiv="X-UA-Compatible" content="IE=edge"> 
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title> 
</head> 
<body> 
</body> 
</html>

History of HTML

1. 1989-1990: The Beginning

Tim Berners-Lee, a physicist at CERN, proposed a system to share documents using hyperlinks. He developed the first version of HTML as part of the World Wide Web project, which included the HTTP protocol, the first web server, and the first web browser.

2. 1991: HTML 1.0

Berners-Lee introduced the first publicly available version of HTML in 1991. It was a simple language with 18 tags (e.g. <p>, <a>, <img>, <h1>). It focused on basic document structuring and hyperlinking.

3. 1995: HTML 2.0

HTML 2.0 was the first standardized version, published by the Internet Engineering Task Force (IETF). It included basic interactive forms and tables, making it suitable for slightly more complex web pages.

4. 1997: HTML 3.0

The World Wide Web Consortium (W3C) took over the standardization of HTML. HTML 3.2 introduced support for scripting (JavaScript), applets, and advanced styling via attributes like <font>.

5. 1999: HTML 4.01

This version refined and expanded HTML for modern web development. It Supported CSS for styling and accessibility improvements like the <abbr> and <acronym> tags. It introduced three "flavors" of HTML:

  • Strict (clean, standards-based code)
  • Transitional (legacy features allowed)
  • Frameset (for websites using frames).

6. 2008-2014: HTML5

HTML5 was developed to address limitations of previous versions and adapt to the needs of modern web applications. HTML5 became a W3C Recommendation in 2014. Key Features:

  • Semantic tags like <article>, <section>, <header>, and <footer>.
  • Multimedia support via <audio> and <video>.
  • APIs for drag-and-drop, local storage, and geolocation.
  • Backward compatibility with older versions of HTML.

HTML Elements

HTML elements are the building blocks of web pages. Every HTML webpage consists of different types of elements. These elements can be of define metadata, text, scripts, media and others content in webpage.

The basic structure of an HTML element consists of opening tag, attributes, content and closing tag, which is shown in the figure below. The HTML element is explored in detail in our Understanding HTML Elements and Its Types: A Complete Beginner's Guide article.

HTML Element Basic Structure

HTML Element Basic Structure

Attributes

An attribute defines the characteristic and functionality of element. They provide an extra bit of information about the element. The Attribute do not appear in the webpage, but they define how the content will appear on the screen

An attribute is generally defined as name:value pairs. For boolean attribute you can include/omit the name of attribute (including == true and omitting == false). In this case value is not necessary.

Every element has some distinct set of attributes, besides global attributes which apply to every HTML element. We will cover attribute in more detail in this series. The format of defining an attribute is specified below.

HTML Attributes
  • A space between attribute and element name.
  • For defining multiple attributes, attribute (name:value pair ) should be separated by space
  • The attribute name followed by equal sign
  • Attribute value enclosed in opening and closing quote mark.

The HTML attribute has been explored in detail in our HTML Attributes: An Basic Introduction article.

Frequently Asked Questions (FAQ)

Why is HTML used?
HTML (HyperText Markup Language) is the standard language for creating and structuring web pages. It is essential for building websites and web applications. The Main Uses of HTML are listed below.
  • Structuring Web Pages
  • Displaying Content
  • Creating Forms for User Input
  • Enhancing Accessibility & SEO
  • Linking Documents Together (Hypertext)
  • Integration with CSS & JavaScript

When HTML was invented and who invented it?
HTML (HyperText Markup Language) was invented by Tim Berners-Lee in 1991. He is a British computer scientist and the creator of the World Wide Web (WWW). In 1989, while working at CERN (European Organization for Nuclear Research), he proposed a system for sharing documents using hypertext links.

By 1991, he developed HTML, along with the first web browser (WorldWideWeb) and the first web server (httpd).

Are HTML and CSS Programming language?
No, HTML and CSS are not programming languages because they do not include logic, conditions, loops, or functions like traditional programming languages such as JavaScript, Python, or C++.
  • HTML - HTML (HyperText Markup Language) is the Markup Language used for creating and structuring web pages.
  • CSS - CSS is Style Sheet Language which Controls the appearance of HTML elements

Are HTML tags case sensitive?
No, HTML tags are not case-sensitive. This means you can write tags in uppercase, lowercase, or mixed case, and they will still work the same way. Even though HTML is not case-sensitive, the best practice is to use lowercase for all tags and attributes.

What html are we on?
We are currently using HTML5, which is the latest version of HTML. HTML5 is the fifth and current major version of HTML, introduced to improve web functionality and support modern web development. It was Released in 2014.

Where Does an HTML Program Run?
An HTML program runs in a web browser because HTML is a client-side language. It does not need a compiler or special runtime environment—just a browser to interpret and display the web page.

Where is HTML Code Written?
HTML code is written in a text editor or an integrated development environment (IDE). The file is then saved with a .html extension and opened in a web browser to view the webpage.

Are html attributes case sensitive?
No, HTML attributes are not case-sensitive. In HTML, attribute names are treated as case-insensitive, meaning you can write them in uppercase, lowercase, or mixed case, and they will still work the same way.

Can we modify the attributes value of the html tag dynamically?
Yes! You can dynamically modify HTML attribute values using JavaScript. There are multiple ways to do this. You can use setAttribute(attribute, value) to update or add an attribute.

                      document.getElementById("myButton").setAttribute("disabled", "true");
                    

What is the difference between .htm and .html file extensions?
The difference between HTM and HTML lies solely in the file extension, not in functionality:
  • .html – The standard and more common file extension for HTML files. Used on most modern operating systems.
  • .htm – A legacy file extension used primarily on older systems (like early versions of Windows) that limited file extensions to three characters.
Both .htm and .html files contain the same HTML code. Web browsers treat them identically. Today, .html is preferred for consistency and clarity.