What is HTML and How Does HTML Works?

HTML is an acronym for Hypertext Markup Language. It’s the code used to create webpages.

In this article, we will look at HTML and will try to answer all your questions with regards to this most popular scripting language of the world wide web.

Let’s dive in.

What is HTML?

HTML stands for HyperText Markup Language. It is the code behind Web pages on the Internet.

HTML is derived from SGML (Standard Generalized Markup Language), which in turn was developed by IBM in the early 1960s for electronic transfer of data between mainframe computers.

HTML was originally developed to provide content for Internet search engines, but its use has spread far beyond that initial purpose.

The latest version of HTML, HTML5, extends the language with support for drawing graphics on the page, using video and audio elements. HTML5 is not a new language; it’s an update to existing standards.

What is HTML used for?

HTML is used to create web pages and is an abbreviation for Hypertext Markup Language.

It provides instructions for the appearance, layout, and behavior of text, images, video, and other digital content on a webpage.

What is an HTML Element?

HTML Elements are the building blocks of web pages. They are the different types of HTML tags that have been used to categorize and represent each HTML element from one to the next.

For example, a paragraph tag is an HTML Element. A heading 1 tag is also a type of HTML Element. The same goes for images, buttons, lists, tables, forms etc.

HTML elements are classified into many different types that include structural tags (for defining the document’s outline), presentation tags (to modify visual or audio aspects of your content) and interactive elements (which allow you to build games).


<h1>My First Main Heading</h1>
<p>My first long paragraph.</p>

What are HTML Tags?

Tags are used in HTML to identify different types of content. For example, the <strong> tags is used to designate bolded text.

<strong>I am Bold</strong>

What is HTML 5?

HTML5 is the latest version of HTML, which includes new tags, improved semantics, and improved accessibility.

Are HTML tags case sensitive?

HTML tags are not case-sensitive.

Why HTML is not a programming language?

HTML is not a programming language because it is simply an instruction set for presenting content.

HTML is used by web browsers so that the content can be viewed in browser-supported format.

Who made HTML?

The HTML language was developed by Tim Berners-Lee, a graduate student in 1980 at Cornell University.

Why HTML is called markup language?

HTML is called markup language because it tells the browser how to display the content.

What is a HTML Document?

A HTML document is a type of document that can contain information such as, but not limited to: text, images, links and scripts. The content is saved with HTML tags which provide formatting and semantic structure.

HTML documents can be rendered by web browsers. There are many different types of HTML documents including, but not limited to: “websites”, “web pages”, “web applications” and “archives”. Websites are the most common type of HTML document on the internet.

What is a simple HTML Document?

<!DOCTYPE html>
<title>Your Title Goes Here</title>

<h1>Your First Heading</h1>
<p>Your first paragraph.</p>


How to center image in HTML?

One of the easier way is to also use CSS for that.

Add an HTML Tag first.

<img src="image.jpg" alt="image" class="center">

Then you need to add CSS in order to center an image:

.center {
  display: block;
  margin-right: auto;
  margin-left: auto;
  width: 50%;

How to center text in HTML?

Use the below tag for this as Center tag was used in HTML 4 and is not supported by HTML 5.

{text-align: center;}

What is Class in HTML?

The class attribute is a means of identifying similar elements that have the same attribute(s) and value(s).

How to Comment in HTML?

<!--This is a comment.--> 
<!--This is another comment.-->

How to Change Font in HTML?

Use the CSS font-family property to alter the font type in HTML. Set it to the desired value and include it in a style property. Then, in an HTML element like a paragraph, header, button, or span tag, apply this style property.

How to change Background Color in HTML?

To change the background color of your HTML document, you can use the following code:


body {background-color:#AAAAAA;}


Where should the analytics tracking code be placed in the HTML of a webpage for data collection?

The analytics tracking code should be placed just before the closing </head> tag of your website.

In a proper webpage, which tag holds all of a webpages visible HTML?

The <body> tag holds all of a webpages visible HTML. It contains various sub-elements, one of them being the <div> tag.

How to Underline in HTML?

To underline something in HTML, put it between the tags <u> and </u>.

What is Bootstrap HTML?

Bootstrap is a popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.

It focuses primarily on the look of web pages and gives you plenty of tools to quickly prototype your ideas. It also comes with great documentation that is easy to read.

How to bold text in HTML?

To bold something in HTML, put it between the tags <strong> and </strong>.

<strong>bold text</strong>

Where in an HTML document is the correct place to refer to an external style sheet?

External style sheets should be placed in the <head></head> of your HTML document.

Which programming language is used within HTML documents to trigger interactive features?

The programming language used in HTML documents to trigger interactive features is JavaScript.

What type of HTML list will automatically place a number in front of the items?

Ordered List will do this.


<li>item 1</li> 

<li>item 2</li> 


What is the correct HTML for creating a hyperlink?

To create a hyperlink in HTML, use the following code: <a href=”http://www.example.com/”>TEXT</a>

So these are some of the most common asked questions on HTML.

We will keep updating this article to include more topics.

Thanks for reading!

You Might Also Like