Every website you visit, from a college portal to a digital library catalogue, is built on a foundation you rarely see: HTML. Short for HyperText Markup Language, HTML is the standard language used to structure content on the web. If you are studying information processing or simply curious about how web pages work, understanding HTML tags is the first practical step. Tags are the small instructions that tell a browser how to arrange and display text, images, and links. This guide breaks down what tags are, the essential ones you must know, and how to format text effectively.

Table of Contents

What are HTML tags and why they matter

HTML tags are the building blocks of every web page. They are keywords or letters enclosed within angle brackets, the less-than (<) and greater-than (>) symbols. When a browser reads an HTML file, it does not display the tags themselves. Instead, it reads them as instructions and shows the content accordingly. For example, when text is wrapped inside a paragraph tag, the browser displays it as a separate block of text.

Most tags work in pairs. There is an opening tag that signals where something begins and a closing tag that signals where it ends. The closing tag looks identical to the opening tag but includes a forward slash. So a paragraph starts with <p> and ends with </p>. This pairing tells the browser exactly which portion of content the instruction applies to.

It is worth noting that tags in HTML are not case-sensitive, meaning a title tag could technically be written in uppercase or lowercase and still work. However, the recommended practice is to write all tags in lowercase for consistency and readability.

The difference between a tag and an element

Students often use the words “tag” and “element” interchangeably, but there is a subtle distinction worth knowing. A tag is a single markup instruction enclosed in angle brackets. An element is the complete unit, which includes the opening tag, the content inside, and the closing tag together. For instance, in <h1>Welcome</h1>, the <h1> and </h1> are tags, while the entire structure is the heading element. In everyday conversation, developers treat them as the same thing, so do not worry too much about the distinction at this stage.

Paired tags and empty tags

There are broadly two types of tags. Paired tags have both an opening and a closing part, like the paragraph and heading tags. Empty tags, also called self-closing or void tags, do not wrap around any content and therefore do not need a closing tag. The line break tag, written as <br>, is a common example. It simply forces the content after it onto the next line without starting a new paragraph.

The essential structural tags

Certain tags are required for a web page to display correctly. These form the skeleton of every HTML document. Understanding how they nest inside one another is the key to building a valid page.

The DOCTYPE declaration

Before any tags begin, every HTML document starts with a single line: <!DOCTYPE html>. This is technically a declaration rather than a tag. It tells the browser that the document is written in the latest version of HTML, known as HTML5. It has no closing part and must always sit at the very top of the file.

The html tag

The <html> tag is known as the root element. It marks the beginning and end of the entire document, and every other tag on the page must sit inside it. Think of it as the container that holds everything else. It usually carries a language attribute, such as lang="en", which tells the browser the page is written in English.

The head and title tags

Inside the html element, the <head> section contains information about the page that is not displayed on the screen itself. This includes metadata, character settings, and links to styling files. Within the head, the <title> tag defines the text that appears on the browser tab. Although the title does not show up in the main page body, it is important for both users and search engines, making it a small but significant detail.

The body tag

The <body> tag defines the part of the document that visitors actually see. It contains all the visible content such as headings, paragraphs, images, hyperlinks, tables, and lists. There can only be one body element in a document. Everything you want a reader to view goes between the opening and closing body tags.

The paragraph tag

The <p> tag defines a paragraph of text. Browsers automatically add a little space before and after each paragraph, which separates blocks of text neatly. This is one of the most frequently used tags because most web content is, at its core, written text.

When you put these tags together, the basic structure of an HTML document looks like this in plain terms: the DOCTYPE comes first, then the html tag opens, containing a head section with a title, followed by a body section with headings and paragraphs, and finally the html tag closes. This nesting order, where the tag opened first is closed last, is a rule worth remembering. Tags must close in the reverse order they were opened, much like a set of nested boxes.

Formatting text with tags

Once the structure is in place, the next step is shaping how text appears. HTML offers several tags to make words stand out, whether through size, weight, or emphasis. There is an important principle here: modern HTML separates meaning from appearance. Some tags exist purely to change how text looks, while others carry semantic meaning that helps browsers, search engines, and screen readers understand the content.

Heading tags

HTML provides six levels of headings, ranging from <h1> down to <h6>. The <h1> tag represents the most important heading, usually the main title of a page, while <h6> is the least prominent. Browsers display higher-level headings in larger, bolder text. These tags do more than change size. They create a logical hierarchy of information that helps readers and search engines grasp how a page is organised. For this reason, you should use headings to structure content, not simply to make text bigger.

Bold text: b and strong

HTML gives two ways to make text bold, and the difference between them matters. The <b> tag makes text bold for visual purposes only, without adding any extra importance. The <strong> tag also displays text in bold, but it carries semantic weight, signalling that the content is genuinely important or urgent.

While the two look identical on screen, they are read differently by assistive technology. Screen readers announce strong text with added emphasis, whereas bold text gets no special treatment. This is why using strong for important warnings or key terms is considered better for accessibility and search engine optimisation. A good rule is to ask whether the text needs special meaning or just special styling. If it needs meaning, choose strong.

Italic text: i and em

The same logic applies to italics. The <i> tag styles text in italics for visual reasons, often used for technical terms, foreign words, or names. The <em> tag, short for emphasis, also produces italic text but indicates that the word should be stressed or emphasised in tone, changing the meaning of a sentence. As with bold tags, the emphasis tag is the semantic choice that conveys intent to browsers and screen readers.

These tags can also be combined. You can place an emphasis tag inside a strong tag to make text that is both bold and italicised while still carrying meaning. The key advice is to use emphasis sparingly. If too many words are highlighted, the emphasis loses its effect and the content becomes harder to read.

A note on modern practice

You will still encounter the <b> and <i> tags in older code, and they remain valid. However, modern HTML encourages beginners to focus on semantic tags first. There is also a broader shift in web development where visual styling, such as colours, font sizes, and spacing, is increasingly handled by CSS rather than HTML tags. HTML decides what content means, while CSS decides how it looks. Keeping these two responsibilities separate makes web pages cleaner, more accessible, and easier to maintain as they grow.

Bringing it together

Learning HTML tags is less about memorising a long list and more about understanding a few patterns. Tags come in angle brackets, usually in pairs, and they nest inside one another in a clear order. A handful of structural tags, namely html, head, title, and body, form the skeleton of every page. Within that skeleton, paragraph and heading tags organise text, while formatting tags shape how individual words appear. Once these basics feel familiar, building or reading a simple web page becomes far less intimidating, and you will have a solid base for exploring more advanced topics like attributes, links, and styling.

What do you think? Now that you understand the difference between visual tags like <b> and semantic tags like <strong>, which approach do you think serves readers better in the long run? And how might thinking about HTML structure change the way you organise information in a digital catalogue or repository?

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

References
  1. https://www.tutorialspoint.com/html/html_basic_tags.htm
  2. https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Structuring_content/Basic_HTML_syntax
  3. https://www.geeksforgeeks.org/html/tags-vs-elements-vs-attributes-in-html/
  4. http://www.w3schools.com/TAGs/tag_body.asp
  5. https://www.engr.colostate.edu/ets/html-structure/
  6. https://www.geeksforgeeks.org/html/html-course-structure-of-an-html-document/
  7. https://libguides.utk.edu/libguide-accessibility/strong-emphasis
  8. https://www.how.dev/learn/html/text-formatting-tags/
  9. https://www.w3schools.com/html/html_formatting.asp

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Information Processing & Retrieval

1 Intellectual Organisation of Information

  1. Intellectual Organisation of Information
  2. Meaning of Intellectual Organisation of Information
  3. Why IOI is Necessary?
  4. IOI in Indexing Systems
  5. IOI and Indexing Languages
  6. IOI in User Services
  7. IOI and Content Analysis
  8. Information Retrieval Systems – Changing Environment
  9. Future Trends

2 Indexing Languages–Part I – Concepts and Types, Subject Headings Lists and Thesauri

  1. Indexing and its Types
  2. Indexing Language
  3. Vocabulary Control
  4. Classification Schemes
  5. Subject Headings Lists
  6. Thesaurus
  7. Thesaurofacet
  8. Classaurus
  9. Sears List of Subject Headings
  10. Library of Congress List of Subject Headings

3 Indexing Languages–Part II- Classification Schemes

  1. Dewey Decimal Classification (DDC) Scheme
  2. Universal Decimal Classification (UDC) Scheme
  3. Library of Congress Classification (LCC) Scheme
  4. Colon Classification (CC) Scheme
  5. Bibliographic Classification (BC) Scheme
  6. Library Bibliographical Classification (BBK) Scheme
  7. Broad System of Ordering (BSO) Scheme
  8. Special Classification Systems

4 Indexing Systems and Techniques

  1. Indexing Principles and Process
  2. Pre-Coordinate Indexing Systems
  3. Post-Coordinate Indexing Systems
  4. Automatic Indexing
  5. Non-Conventional Indexing: Citation Indexing
  6. Web Indexing

5 Evaluation of Indexing Systems

  1. Purpose of Evaluation
  2. Levels of Evaluation
  3. Evaluation Criteria
  4. Recall and Precision
  5. Other Performance Measures
  6. Relevance
  7. Evaluation Methodology
  8. Evaluation Experiments

6 Principles and Evolution of Bibliographic Description

  1. Bibliographic Description: An Overview
  2. Scope and Objectives of Bibliographic Description
  3. Evolution of Bibliographic Description
  4. Ranganathan’s Principles
  5. ISBDs
  6. Bibliographic Formats
  7. Electronic Resource Description
  8. Models of Bibliographic Description
  9. Bibliographic Description: Entities, Attributes and Relationships

7 Rules for Bibliographic Description

  1. Bibliographic Description: Its Origin
  2. Development of Anglo-American Code
  3. The International Standard Bibliographic Description (ISBD)
  4. Impact of ISBD on Catalogue Codes
  5. Bibliographic Description for Non-Print Materials
  6. Guidelines for Bibliographic Description of Electronic Resources
  7. Guidelines for Bibliographic Description of Internet Resources
  8. Rules for Description of Electronic Resources in AACR2 Revision 2002

8 Standards for Bibliographic Record Format

  1. International Standard Bibliographic Description (ISBD)
  2. MARC Format
  3. UNIMARC
  4. Common Communication Format (CCF)
  5. Indian Standard

9 Metadata- MARC21-856 Field, Dublin Core, TEI

  1. MARC21 – 856 Field
  2. Dublin Core Metadata Initiative (DCMI)
  3. Text Encoding Initiative (TEI)
  4. Procedure of Electronic Resource Description

10 Norms and Guidelines for Content Development

  1. Introduction
  2. Needs and Guidelines
  3. Standards Related to Electronic Content
  4. W3C Recommendations
  5. Electronic Text Encoding and Interchange
  6. Dynamic Content

11 Introduction to HTML and XML

  1. World Wide Web and Markup Languages
  2. Standard Generalized Markup Language (SGML)
  3. HyperText Markup Language (HTML)
  4. Basic HTML Tags
  5. Linking
  6. URLs
  7. HTML and the Browser
  8. eXtensible Markup Language (XML)
  9. XML Syntax and Semantic Tags
  10. Document Type Definition (DTD)
  11. Implications of XML in Library and Information Activities

12 Web-based Content Development

  1. What can be done with World Wide Web?
  2. Hypertext, Hyperlink, and Hypermedia
  3. Hypertext Markup Language (HTML)
  4. Introduction to Dynamic HTML
  5. Web Interface to Database Linking
  6. Introduction to XML
  7. XML Document Design
  8. Multimedia Web Resources
  9. Web Servers
  10. Website Hosting
  11. Tools for Web Page Designing

13 Multilingual Content Development (Using Unicode)

  1. Character Representation in Computer
  2. American Standard Code for Information Interchange (ASCII)
  3. Indian Scenario and Indian Standard Code for Information Interchange (ISCII)
  4. UNICODE
  5. Web Content Development Through UNICODE
  6. Applications of UNICODE
  7. Applying UNICODE to the Libraries
  8. Problems Associated with UNICODE

14 ISAR Systems- Objectives, Types, Operations and Design

  1. Users and Their Information Needs
  2. Objectives of ISAR Systems
  3. Types of ISAR Systems
  4. Design of ISAR Systems
  5. Evaluation of ISAR Systems

15 Compatibility of ISAR Systems

  1. Need for Compatibility Among ISAR Systems
  2. Scope of Compatibility in ISAR Systems
  3. Areas of Compatibilities in ISAR Systems
  4. Principal Issues of Compatibility in ISAR Systems
  5. Compatibility of Online IR Systems
  6. Approaches Towards Compatibility in ISAR
  7. Quality Control and Compatibility

16 Intelligent Information Retrieval Systems

  1. Introduction
  2. Expert Systems
  3. Expert Systems for Information Processing and Retrieval
  4. Components of Expert Systems
  5. Knowledge Representation
  6. Knowledge Engineering
  7. Artificial Intelligence Based Decision Support Systems (DSS)
  8. Pattern Recognition

17 Information Retrieval Processes and Techniques

  1. Information Retrieval Systems
  2. Databases
  3. Information Retrieval Systems: Purpose, Components, and Functions
  4. Indexing and Information Representation
  5. Vocabulary Control
  6. Searching
  7. Information Seeking and User Interfaces
  8. Web Information Retrieval Systems
  9. Intelligent Information Retrieval

18 Information Retrieval Models and Their Applications

  1. Information Retrieval
  2. Information Retrieval Techniques
  3. Models Based on Input/Output
  4. Models Based on Theories and Tools

19 Search Strategies, Processes and Techinques

  1. Search File – An Essential Component
  2. Search Strategies and Pre-requisites
  3. Search Techniques
  4. The Information Search Process
  5. Online Searching
  6. How the Search Engines Work
  7. Common Search and Retrieval Features of Web Search Engines