0% found this document useful (0 votes)
22 views2 pages

Essential HTML Tags Explained

This document provides a list of HTML block tags along with their purposes. Each tag is briefly described, such as <address> for contact information, <article> for self-contained content, and <form> for user input collection. The document serves as a reference for understanding the functionality of various HTML elements.

Uploaded by

Tulsi gupta
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views2 pages

Essential HTML Tags Explained

This document provides a list of HTML block tags along with their purposes. Each tag is briefly described, such as <address> for contact information, <article> for self-contained content, and <form> for user input collection. The document serves as a reference for understanding the functionality of various HTML elements.

Uploaded by

Tulsi gupta
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd

HTML NOTES

block tags

<address> → Contact info dene ke liye (author ka address, email, phone).

<article> → Self-contained content (jaise blog post, news article).

<aside> → Side content (sidebar, extra notes).

<blockquote> → Kisi aur ka quoted text (long quotation).

<canvas> → Graphics draw karne ke liye (JavaScript ke saath).

<div> → Generic container, layout banane ke liye.

<dl> → Description list (terms aur definitions).

<dt> → Term/word ka naam (description list me).

<dd> → Term ka description (description list me).

<fieldset> → Form fields ko group karne ke liye.

<figcaption> → Figure ka caption (figure ka description).

<figure> → Image, diagram, ya code block ke liye container.

<footer> → Page ya section ka footer (copyright, links).

<form> → User input collect karne ke liye form.

<h1> to <h6> → Headings, h1 sabse bada, h6 sabse chhota.

<header> → Page ya section ka header (title, navigation).

<hr> → Horizontal line (content separate karne ke liye).

<li> → List ka item (ordered ya unordered list me).

<main> → Page ka main content area.

<nav> → Navigation links ka section.

<noscript> → Agar browser JavaScript support na kare to yeh content dikhata hai.

<ol> → Ordered list (numbered list).

<p> → Paragraph text.

<pre> → Preformatted text (jo spacing aur line breaks preserve kare).
<section> → Page ka ek logical section.

<table> → Table banane ke liye.

<tbody> → Table ka body part.

<thead> → Table ka header part.

<tfoot> → Table ka footer part.

<tr> → Table row.

<ul> → Unordered list (bullet points).

<video> → Video play karne ke liye.

Common questions

Powered by AI

The <article> tag is beneficial for encapsulating self-contained content that may be syndicated or independently distributed, such as blog posts or news articles. By providing semantic metadata indicating that a section is an independent piece of information, the <article> tag aids in content syndication, allowing extracted content to maintain its context and integrity. This is advantageous for SEO, as it helps search engines correctly identify and index content intended for distribution, and for accessibility, improving content parsing for assistive technologies .

The <main> tag specifies the main content of a document, excluding any content repeated across documents such as sidebars or footers. This tagging helps assistive technologies and search engines to bypass irrelevant content, thereby improving navigation for users with screen readers and enhancing the SEO by highlighting the central theme of the webpage. It ensures content prioritization and helps in reducing the cognitive load on users by providing meaningful navigation cues .

A developer might use the <noscript> tag to accommodate users whose browsers do not support JavaScript or have it disabled. The value of the <noscript> tag is that it provides alternative content or instructions that ensure functionality or message delivery to users who might otherwise miss out on crucial content. This helps in maintaining a basic level of usability and accessibility across different user environments .

The <fieldset> tag is used to group related elements within a form, providing a visual boundary that makes the form easier to navigate and understand. When combined with a <legend>, which typically labels the group, the <fieldset> enhances usability by helping users quickly identify sections of a form, such as personal information or payment details, thus improving the overall organization and clarity for the form-filler .

Using <table> alongside <thead>, <tbody>, and <tfoot> tags helps to organize tabular data semantically by clearly delineating structure: <thead> contains header rows, <tbody> contains the main data, and <tfoot> comprises summary/footer rows. This separation enhances readability for screen readers by providing the contextual structure and improving accessibility via clear distinctions of each section's role. The organized markup aids browsers and tools in rendering the table accurately, improving the user interface and ensuring correct data interpretation .

<ol> and <ul> tags provide semantic meaning to list items, indicating ordered (numbered) or unordered (bulleted) sequences, which helps both users and search engines understand content structure. Unlike <div>, which is a generic container without meaning, these tags improve the accessibility and readability of the content by clearly defining the nature of the list, allowing screen readers to convey the information accurately, and enhancing SEO by signifying structured data .

The <blockquote> tag is used to indicate a long quotation from another source, providing semantic meaning that distinguishes it from mere stylistic text presentation. Proper use of <blockquote> conveys that the enclosed text is a citation of someone else's work, which not only aids in the document's structure but also supports standards of intellectual integrity and enhances accessibility by clearly delineating quoted material for screen readers and other assistive technologies .

Effective use of <header> and <footer> tags can significantly enhance webpage navigation by clearly demarcating the top and bottom sections of the content. The <header> tag often contains navigation links, logos, and introductory content, providing users with easy access to explore other parts of the site. The <footer>, on the other hand, typically includes links to privacy policies, contact information, and social media, encouraging further interaction. These tags help maintain a consistent navigation structure, thereby improving user engagement and accessibility by guiding users intuitively through the webpage layout .

A developer would choose to use a <figure> tag when they want to encapsulate visual content such as images, diagrams, or code blocks with an optional caption. The importance of the <figure> tag lies in its ability to provide semantic structure to the content, enhancing accessibility and indicating to search engines that the content is a self-contained unit of information. This is beneficial in contexts like blog posts or articles where images are used with captions for descriptions or explanations .

The <aside> tag is used to present side content that is connected to the primary content but stands apart, such as sidebars or explanatory notes. By effectively using <aside>, designers can enhance user experience by providing additional context or resources without cluttering the main content area. This separation allows users to focus on the main content while still having easy access to supplementary information whenever necessary .

You might also like