HTML <form> Tag
The <form> tag is used to create an HTML form for collecting user input.It acts as a container for various input elements like text fields, checkboxes, radio buttons, buttons, and more.Forms are essential for user interaction — for example, submitting login details or feedback. Syntax Attributes Attribute Description action Specifies where to send the form […]
HTML <colgroup> Tag
The <colgroup> tag in HTML is used to group one or more columns in a table for formatting purposes.It allows you to apply common styles or attributes to a group of columns, making it easier to maintain a consistent design. Syntax Attributes Attribute Value Type Description span number Specifies how many columns the style applies […]
HTML <col> Tag
The <col> tag in HTML defines column properties for each column within a <colgroup> element.It allows you to apply styling, width, or alignment to one or more columns of a table — without repeating the same style on each <td> or <th> individually. Syntax Attributes Attribute Description span Specifies how many columns the <col> element […]
HTML <td> Tag
The <td> tag in HTML defines a standard data cell within a table.Each <td> element represents a single piece of data in a table row (<tr>). It is one of the most commonly used tags for displaying tabular data such as numbers, text, or links. Syntax Attributes Attribute Description colspan Specifies the number of columns […]
HTML <th> Tag
The <th> tag in HTML defines a header cell in a table.Header cells are typically displayed in bold text and centered by default. They help describe the content of each column or row, making data tables easier to understand and accessible. Syntax Attributes Attribute Description abbr Provides an abbreviated version of the header cell content […]
HTML <tr> Tag
The <tr> tag in HTML defines a table row.It is used inside the <table> element to group one or more table cells (<th> or <td>) in a single horizontal row. Syntax Attributes Attribute Description align Specifies the horizontal alignment of content in a row (deprecated). bgcolor Specifies the background color of a row (deprecated). valign […]
HTML <tfoot> Tag
The <tfoot> tag in HTML defines the footer section of a table.It is used to group rows that summarize or provide totals, notes, or other information related to the table data.Typically, <tfoot> appears after <thead> and before <tbody> in the HTML source, though browsers visually render it at the bottom of the table. Syntax Attributes […]
HTML <tbody> Tag
The <tbody> tag in HTML is used to group the main content rows (body) of a table.It separates the table’s data section from the header (<thead>) and footer (<tfoot>), helping improve structure, readability, and performance for large datasets. Syntax Attributes Attribute Description (None) The <tbody> element has no specific attributes. You can use global attributes […]
HTML <thead> Tag
The <thead> tag in HTML defines the header section of a table.It groups all header rows (<tr>) that typically contain column headings defined by <th> tags.This element improves readability, accessibility, and enables consistent styling or scripting across header rows. Syntax Attributes Attribute Description (None) The <thead> tag does not have any specific attributes. You can […]
HTML <caption> Tag
The <caption> tag defines a title or description for a table.It helps users understand the purpose or content of the table and is usually displayed above the table by default. Syntax Attributes Attribute Description align Specifies the alignment of the caption — values can be top, bottom, left, or right. (Deprecated — use CSS instead) […]