Category HTML

How to Add CSS in HTML

An example of adding internal CSS style in HTML document.

In this tutorial, we will learn how to add or link CSS in the HTML document or webpage with the help of examples. Although, we mainly use HTML to make changes to the structure and content of a webpage. HTML…

HTML Title Tag (with Example)

An example of using HTML title tag in a webpage

The <title> tag defines the title of an HTML document, which is usually displayed in the web browser’s title bar at the top. Every webpage within a website contains a <title> tag that accurately describes the content of the page.…

How to Add Favicon in HTML

An example of favicon icon in HTML

An HTML favicon, short for “favorite icon,” is a small image displayed next to the page title in a web browser’s tab or address bar. It also appears in the bookmarks and history of the browser. A favicon icon is…

HTML ID Attribute (with Examples)

An example of HTML id attribute.

The ‘id‘ attribute in HTML is an unique identifier used to uniquely identify any element within a page. In simple words, we use id attribute to specify a unique id for an HTML element. For example, if we have two…

HTML Class Attribute (with Examples)

An example of using the same class name to multiple elements in HTML

A “class” in HTML is an attribute that is commonly used to specify one or more class names for an HTML element. In simple words, class attribute is used to style multiple elements on the webpage. It can name any…