HTML Tag - GeeksforGeeks

Skip to content geeksforgeeks
  • Courses
    • DSA Courses
    • Programming Languages
  • Tutorials
    • Python Tutorial
      • Python Loops and Control Flow
    • Java
      • Java Interview Questions
      • Java Quiz
      • Advance Java
    • Programming Languages
    • System Design
    • Interview Corner
    • Computer Science Subjects
    • DevOps
    • Linux
    • Software Testing
    • Databases
    • Android
    • Excel
    • Mathematics
  • DSA
    • Data Structures
    • Algorithms
      • Analysis of Algorithms
      • Searching Algorithms
      • Sorting Algorithms
    • Practice
      • Company Wise Coding Practice
      • Practice Problems Difficulty Wise
      • Language Wise Coding Practice
      • Curated DSA Lists
    • Company Wise SDE Sheets
    • DSA Cheat Sheets
    • Puzzles
  • Data Science
    • Data Science Packages
    • Data Visualization
    • Data Analysis
  • Web Tech
    • Web Development Using Python
      • Django
      • Flask
    • Cheat Sheets
  • HTML Tutorial
  • HTML Exercises
  • HTML Tags
  • HTML Attributes
  • Global Attributes
  • Event Attributes
  • HTML Interview Questions
  • HTML DOM
  • DOM Audio/Video
  • HTML 5
  • HTML Examples
  • Color Picker
  • A to Z Guide
  • HTML Formatter
Open In App HTML col Tag Last Updated : 21 Nov, 2024 Summarize Comments Improve Suggest changes Like Article Like Save Share Report Follow

HTML <col> tag defines attributes for table columns within the <colgroup> element, allowing styling and formatting of columns, such as width, alignment, and background color. This tag does not contain closing tags.

  • Column Properties allows setting visual aspects (like background color, width, and alignment) for specific columns.
  • Grouped within <colgroup>, usually nested within the <colgroup>, enabling multiple columns to be collectively defined.
  • Attributes specified in the <col> can be applied to multiple columns at once, simplifying the table’s look.
html <!DOCTYPE html> <html> <body> <table> <colgroup> <col span="1" style="background-color: green" /> <col span="1" style="background-color: red" /> <col span="1" style="background-color: none" /> </colgroup> <tr> <th>NAME</th> <th>AGE</th> <th>BRANCH</th> </tr> <tr> <td>BITTU</td> <td>22</td> <td>CSE</td> </tr> <tr> <td>RAM</td> <td>21</td> <td>ECE</td> </tr> </table> </body> </html>

Syntax

<col style="property:value;">

Attributes

The various attributes that can be used with the col tag are listed below. Most of the attributes are not supported by HTML5.

Attributes

Descriptions

span

It is used to define the number of columns on which property will be applied.

style

This attribute is used to define the CSS to change the properties of the column (deprecated).

align

This attribute is used to set the alignment of the content of <col> element (deprecated).

width

It is used to specify the width of a <col> element (deprecated).

charoff

It is used to specify the number of characters the content will be aligned from the character specified by the char attribute (deprecated).

HTML <col> Tag – FAQs

Where should the <col> tag be placed in a table?

The <col> tag is placed inside the <colgroup> tag, which is within the <table> element, before any <thead>, <tbody>, or <tr> tags.

Can the <col> tag be used without the <colgroup> tag?

No, the <col> tag must be nested inside a <colgroup> tag. It cannot be used directly within the <table> tag.

How does the span attribute work in the <col> tag?

The span attribute in the <col> tag defines the number of columns the style or attribute should apply to. For example, span=”3″ applies the same style to three consecutive columns.

Is the <col> tag required when using the <colgroup> tag?

No, the <col> tag is optional. However, it allows you to specify styles for individual columns within the grouped columns defined by <colgroup>.

Can the <col> tag be used for responsive table design?

Yes, the <col> tag can be useful in responsive design by setting relative widths (e.g., percentages) or adjusting styles dynamically with media queries.

Comment More info Next Article HTML <!-- ... --> Tag

O

outofmind Follow Improve

Similar Reads

  • HTML DOCTYPE Declaration HTML DOCTYPE (Document Type Declaration) is an instruction that appears at the beginning of an HTML document, before the <html> tag. Its primary role is to tell the web browser which version of HTML the page is written in, ensuring that the browser renders the content correctly. It is not an H 4 min read
  • HTML abbr Tag The <abbr> tag in HTML is used to represent an abbreviation or acronym. It provides additional information about the abbreviation, usually through the title attribute, which displays a tooltip when the user hovers over the text. <abbr> tag helps enhance accessibility and SEO by providing 2 min read
  • HTML acronym Tag The HTML <acronym> tag was used to define an acronym, providing a way to identify and explain abbreviated terms in web content. However, it's deprecated in favor of <abbr>, which serves the same purpose but is more semantically correct. Syntax:  <acronym title=""> Short Form </a 2 min read
  • HTML address Tag The <address> tag in HTML is used to define contact information for the author or owner of a document or an article. It is typically used for information such as an address, email, or phone number. The <address> element is a block-level element by default.The content inside <address 2 min read
  • HTML a Tag The <a> tag defines a hyperlink, which is used to link from one page to another. The most important attribute of the <a> element is the href attribute, which indicates the link's destination. This attribute determines where the user is directed upon clicking the link. [GFGTABS] HTML < 3 min read
  • HTML applet Tag The applet tag in HTML was used to embed Java applets into any HTML document. The <applet> tag was deprecated in HTML 4.01, and its support has been completely discontinued starting from HTML 5. Alternatives available in HTML 5 are the <embed> and the <object> tags. Some browsers s 2 min read
  • HTML area Tag This <area> tag is used in an HTML document to map a portion of an image to make it clickable by the end user. This specifies the location and size of the active region on an image, which can be clicked. Clicking on areas with href attributes directs to a specified URL or action. [GFGTABS] htm 3 min read
  • HTML article Tag The HTML <article> tag defines a self-contained, independent piece of content like a blog post, news article, or comment. It is designed for content that can be independently distributed, shared, or reused, providing semantic meaning to the content. This tag is introduced in HTML5. [GFGTABS] H 3 min read
  • HTML aside Tag The <aside> tag is used to describe the main object of the web page more shortly like a highlighter. It identifies the content that is related to the primary content of the web page but does not constitute the main intent of the primary page. The <aside> tag contains mainly author inform 3 min read
  • HTML5 audio Tag The <audio> tag in HTML5 is used to embed audio content on a webpage. It allows you to play audio files like MP3, OGG, or WAV directly in the browser. The <audio> element provides attributes for controlling playback, such as play, pause, and volume. Using the <source> element enabl 3 min read
  • HTML base Tag The HTML <base> tag is used to specify a base URL, or target, for relative links. This URL will be the base URL for every link on the page and will be prefixed before each of them. For example, if the URL specified by the base tag is "www.xyz.com" then every other URL on the page will be prefi 2 min read
  • HTML <basefont> Tag The <basefont> tag in HTML is used to set the default text-color, font-size, font-family of all the text in the browser. It is no longer supported in HTML5. So, as an alternative, we are using CSS in the code example. The <basefont> tag was supported in Internet Explorer 9, and earlier v 2 min read
  • HTML bdi Tag The <bdi> tag in HTML stands for "Bi-Directional Isolation." It is used to isolate a part of text that might be formatted in a different direction than the surrounding text. This is particularly useful in multilingual applications where text in different languages may be displayed together, an 2 min read
  • HTML bdo Tag The <bdo> (Bidirectional Override) tag in HTML is used to override the current text directionality. It allows you to explicitly set the direction of text within a block of content, regardless of the default language settings or other surrounding content. The <bdo> tag is used to explicit 2 min read
  • HTML bgsound Tag The <bgsound> tag in HTML was used to embed a background sound in a webpage. However, this tag is deprecated and is no longer supported in modern web browsers. Primarily supported by older versions of Internet Explorer.Allowed embedding of an audio file that would play automatically in the bac 2 min read
  • HTML big Tag The <big> tag in HTML was used to increase the font size of text by one level compared to the surrounding text. However, it has been deprecated in HTML5. Instead, it's advisable to use CSS for styling text sizes. Instead, it's advisable to use CSS for styling text sizes. [GFGTABS] HTML <!DO 2 min read
  • HTML blockquote Tag The <blockquote> tag in HTML is used to define a block of text that is a quotation from another source. This tag is typically used to represent a large quote or excerpt from an external source, and it is usually displayed with indentation to visually distinguish it from the surrounding content 2 min read
  • HTML body Tag The <body> tag in HTML is used to define the main content present inside an HTML page. It is always enclosed within <HTML> tag. The <body> tag is the last child of the <html> tag. The <body> tag contains all the contents of an HTML document, such as headings, images, hy 2 min read
  • HTML b Tag The <b> tag in HTML is used to make the enclosed text bold, giving it greater emphasis or visual importance. Unlike the <strong> tag, which also makes text bold but with semantic importance. the <b> tag is purely for styling purposes and does not carry semantic meaning. [GFGTABS] H 2 min read
  • HTML br Tag The <br> tag in HTML is used to create a line break in the text, causing the content that follows it to appear on a new line. Note: It is a self-closing tag, meaning it does not need a separate closing tag. [GFGTABS] HTML <!DOCTYPE html> <html> <body> <p>Dear Reader, 2 min read
  • HTML button Tag The <button> tag in HTML is used to create clickable buttons on a web page. It can be used to submit forms, trigger JavaScript functions, or perform other interactive tasks. [GFGTABS] HTML <!DOCTYPE html> <html> <body> <button type="button" onclick="alert( 3 min read
  • HTML caption Tag The <caption> tag in HTML is used to provide a title or description for a <table> element. It helps give context or additional information about the content of the table. The <caption> tag must be placed immediately after the opening <table> tag. Semantic Use: Adds descriptiv 2 min read
  • HTML canvas Tag The <canvas> tag in HTML is used to draw graphics on a web page using JavaScript. It can be used to draw paths, boxes, texts, gradients, and adding images. By default, it does not contain borders and text. [GFGTABS] HTML <!DOCTYPE html> <html> <body> <canvas id="Geeks 2 min read
  • HTML center Tag The <center> tag in HTML was used to horizontally center content on a webpage. However, it is deprecated in HTML5 and should no longer be used. Alternatively, we will use the text-align property. [GFGTABS] HTML <!DOCTYPE html> <html> <body> <center> <h3>Welcome to 2 min read
  • HTML cite Tag The <cite> tag in HTML is used to define the title of a creative work, such as a book, article, song, or movie. It is typically used to provide a citation for a source of information or to give credit to the original creator of the work. The content inside the <cite> tag is usually displ 2 min read
  • HTML code Tag The HTML <code> tag is a semantic element used to define a piece of computer code. When creating web pages, it's often necessary to display programming code, and the <code> tag makes it easy to do so. The <code> tag is specifically designed to display computer output, such as code 2 min read
  • HTML colgroup Tag The <colgroup> tag in HTML is used to group one or more <col> elements, allowing you to apply styles or attributes (such as width) to entire columns in a <table>. [GFGTABS] HTML <!DOCTYPE html> <html> <body> <table> <colgroup> <col span="2 2 min read
  • HTML col Tag HTML <col> tag defines attributes for table columns within the <colgroup> element, allowing styling and formatting of columns, such as width, alignment, and background color. This tag does not contain closing tags. Column Properties allows setting visual aspects (like background color, w 2 min read
  • HTML <!-- ... --> Tag HTML comment tag is used to insert comments in the HTML code. It is good coding practice as it helps developers to better understand complex code. Comments is useful during the debugging of the code. Syntax<!-- Comments here -->Note: The comment tag () is used for both single-line and multilin 2 min read
  • HTML data Tag The HTML <data> tag is used to link a piece of content with a machine-readable translation, making it easier for machines to interpret the data. The content inside the tag is the text displayed to the user.It does not affect the layout or visual display of the content.It is useful for embeddin 2 min read
  • HTML datalist Tag The <datalist> tag is used to provide an in autocomplete feature in the HTML files. It contains a list of predefined options that the user can select from, making it easier to enter data. The <datalist> tag is often used in conjunction with an <input> element of type "text" or "sea 2 min read
  • HTML dd Tag The <dd> tag in HTML is used to define a description or value in a description list, which is created using the <dl> (description list) tag. Each <dd> element is typically preceded by a <dt> (definition term) element, which specifies the term being described. Semantic HTML: T 2 min read
  • HTML dfn Tag The <dfn> tag in HTML represents a definition element and is used to represent a defining instance in HTML. Generally, the defining instance is the first use of a term in a document. The <dfn> tag requires a starting as well as an ending tag. [GFGTABS] HTML <!DOCTYPE html> <html 3 min read
  • HTML del Tag The HTML <del> tag is used to indicate text that has been deleted from a document. It visually represents this deletion by striking through the text, which helps in tracking changes or revisions in documents.It provides semantic meaning for content that has been intentionally removed, such as 2 min read
  • HTML details Tag The <details> tag in HTML is used to create a disclosure widget from which the user can view or hide additional information. It is used with the <summary> tag, which provides the title or header for the details section. It's generally used for FAQs, dropdown menus, or to show/hide additi 3 min read
  • HTML dialog Tag The <dialog> tag in HTML5 defines a dialog box or window. It can be used for pop-up notifications, messages, or custom user interactions. The <dialog> element can be shown or hidden using JavaScript, providing a native way to create modal interfaces. [GFGTABS] HTML <!DOCTYPE html> 2 min read
  • HTML dir Tag The HTML <dir> tag is used to make a list of directory titles. It is not supported in HTML4 as in HTML5 <ul> or CSS are used instead of <dir> tag. Note: The <dir> tag is deprecated & no longer supported in HTML5 [GFGTABS] HTML <!DOCTYPE html> <html> <body 2 min read
  • HTML Div Tag The HTML <div> tag defines sections in HTML documents, serving as containers styled with CSS or controlled with JavaScript. It's easily customized using class or id attributes and can contain various content. Note: Browsers add line breaks before and after <div> elements by default. Div 4 min read
  • HTML dl Tag The <dl> tag in HTML is used to represent the description list. This tag is used with <dt> and <dd> tag to create a list of terms and their associated descriptions. Elements inside dl tag:<dt>: Defines a term in the list.<dd>: Provides the description or definition of t 3 min read
  • HTML dt Tag The <dt> tag in HTML is used to specify the description list. It is used inside the <dl> element. It is usually followed by a <dd> tag. The subsequent <dd> elements provides some related text associated with the term specified using <dt>. Syntax: <dt> Content... 2 min read
  • HTML embed Tag The <embed> tag in HTML is used to embed external content or media files (such as audio, video, or interactive elements like Flash) directly into a webpage. It is a self-closing tag It is often used for embedding files like PDFs, images, or other types of media that require a plugin or externa 2 min read
  • HTML fieldset Tag The <fieldset> tag in HTML is used to group related elements within a form. It provides a visual and semantic structure to the form, making it easier for users to understand the relationship between different input elements. The <fieldset> tag is often used with the <legend> tag, w 3 min read
  • HTML figcaption Tag The <figcaption> tag in HTML is used to provide a caption or description for a <figure> element. This tag is typically used to describe an image, illustration, chart, or any other content that requires an explanation.It helps to improve accessibility and search engine optimization (SEO) 2 min read
  • HTML5 figure Tag The <figure> tag is used to insert self-contained content such as illustrations, diagrams, photos, or code listings in a document. It can be placed at any position in the document and is related to the main flow. The content inside the <figure> tag goes with the flow of the document, so 3 min read
  • HTML font Tag The HTML <font> Tag plays an important role in the web page to create an attractive and readable web page. The font tag is used to change the color, size, and style of a text and it was used in HTML4. The base font tag is used to set all the text to the same size, color, and face. Note: Font t 3 min read
  • HTML footer Tag The <footer> tag in HTML is used to define the footer section of an HTML document. The footer section typically contains information such as contact information, sitemap, back-to-top links, related documents, copyright, etc.The footer tag is a semantic tag included in HTML (in 2014) along with 4 min read
  • HTML form Tag The <form> tag is used to create an HTML form for user input. It serves as a container for various input elements like text fields, checkboxes, and buttons, enabling the collection of data for submission to a server or processing via client-side scripts. Note: The <form> tag supports the 4 min read
  • HTML frame Tag HTML <frame> tag is used to divide web browser windows into multiple sections, each capable of loading content independently. This is achieved using a collection of frames within a frameset tag. Note: The <frame> tag is deprecated in HTML 5. [GFGTABS] html <!DOCTYPE html> <html 3 min read
  • HTML frameset Tag The HTML <frameset> tag was used in older versions of HTML to create multi-pane layouts within a web page. By dividing the browser window into multiple sections, each frame could display a separate HTML document. This allowed for the creation of complex web layouts with different content in ea 3 min read
  • HTML head Tag The <head> tag in HTML is an essential element used to define the head section of an HTML document. It is placed inside the <html> tag, and used to store information that doesn't appear directly on the webpage itself. It contains metadata that helps the browser and search engines to unde 4 min read
  • HTML header Tag The <header> tag is a semantic HTML element that is used to define the introductory or navigational content of a webpage or a section. Typically, a header contains elements like: The website or page titleLogo or brandingNavigation menusSearch barAny introductory information relevant to the pag 4 min read
  • HTML h1 to h6 Tag HTML heading tags (<h1> to <h6>) define the importance and hierarchy of headings. They range from highest (<h1>) to lowest (<h6>) importance, used for structuring and organizing content in web pages and supporting event attributes. Syntax <h1></h1> <h2></ 2 min read
  • HTML hgroup Tag The <hgroup> tag in HTML is used to group multiple heading elements (<h1>, <h2>, etc.) together. However, the <hgroup> tag is now deprecated in HTML5 and is no longer recommended for use. [GFGTABS] HTML <!DOCTYPE html> <html> <body> <hgroup> <h1> 2 min read
  • HTML hr Tag The <hr> tag in HTML is used to create a horizontal rule or line that visually separates content. Note: It is a self-closing tag and does not require an end tag. It also supports the Global Attributes and Event Attributes. [GFGTABS] HTML <!DOCTYPE html> <html> <body> <p 2 min read
  • HTML <html> Tag HTML is a language full of diverse elements, and one such element is the <html> tag. This tag, standing for ‘HyperText Markup Language’, is used to define the root of an HTML or XHTML document. It serves as the main container for all other HTML elements, excluding the <!DOCTYPE> declarat 3 min read
  • HTML IMG Tag The HTML <img> tag is used to embed images in a web page. It is an empty or self-closing tag, meaning it doesn’t have a closing tag. It allows to display images from various sources, such as files on a website or URLs from other websites. [GFGTABS] HTML <!DOCTYPE html> <html> <b 3 min read
  • HTML input Tag HTML <input> tag specifies an input field where the user can enter data. It's fundamental for web forms, enabling diverse input methods like text, password, checkboxes, radio buttons, file uploads, and more. The default value accepted by the <input> tag is text. An input field can be of 6 min read
  • HTML <ins> Tag HTML <ins> tag is used to specify a block of inserted text. The <ins> tag is typically used to mark a range of text that has been added to the document. The inserted text is rendered as underlined text by the web browsers although this property can be changed using the CSS text-decoratio 3 min read
  • HTML | <isindex> tag The <isindex> tag is used to querying any document through a text field. Means this tag inform the browser that the user wants to provide the search function through the document. If you want to search any specific word in a long article this tag is helpful then. But during these days all the 2 min read
  • HTML <i> Tag The <i> tag in HTML is used to display the content in italic style. This tag is generally used to display the technical term, phrase, the important word in a different language. The <i> tag is a container tag that contains the opening tag, content & closing tag. Syntax// Inline way t 3 min read
  • HTML keygen Tag The <keygen> tag in HTML is used to specify a key-pair generator field in a form. The purpose of <keygen> element is to provide a secure way to authenticate users. When a form is submitted then two keys are generated, private key and public key. The private key is stored locally, and the 2 min read
  • HTML <label> Tag The <label> HTML element represents a caption for a form element in a user interface. It improves accessibility by linking text to form elements. When a user clicks on the label, it automatically focuses on or activates the associated input, such as text fields, checkboxes, or radio buttons. T 4 min read
  • HTML legend Tag The HTML <legend> tag is used to provide a title or caption for its parent <fieldset> element. It must be the first child inside the <fieldset> to describe the grouped content clearly. The <legend> tag also supports the Global Attributes and Event Attributes in HTML. Syntax 3 min read
  • HTML li Tag The <li> (list item) tag in HTML is used to define individual items in a list. It can be used within an Ordered List (<ol>) or Unordered List (<ul>) or description lists <dl>. Each <li> represents a single item within these lists, helping to structure content and make i 3 min read
  • HTML <main> Tag The HTML <main> Tag defines a document's main content, which should be unique. It excludes content like sidebars, navigation, logos, and copyright info, ensuring unique document-specific material within. Note: The document must not contain more than one <main> element. The <main> e 2 min read
  • HTML <mark> Tag The <mark> tag in HTML is used to define the marked text. It is used to highlight the part of the text in a paragraph. The <mark> tag is new in HTML 5. Syntax: <mark> Contents... </mark>Note: The <mark> tag also supports the Global Attributes and Event Attributes in HTM 2 min read
  • HTML <marquee> Tag The <marquee> tag in HTML creates a scrolling text or image effect within a webpage. It allows content to move horizontally or vertically across the screen, providing a simple way to add dynamic movement to elements. Although this tag is deprecated in HTML5, it is still useful to understand it 4 min read
  • HTML <menuitem> tag The HTML <menuitem> tag is used to define command or menu that the user can utilize from the popup item. this tag is not supported in HTML5. This tag is support Global Attributes in HTML and Event Attributes in HTML. Syntax: <menuitem label="" icon="" type> </menuitem>Attribute: ch 3 min read
  • HTML <meta> Tag The HTML <meta> tag defines metadata about an HTML document, including character set, description, keywords, author, and viewport settings. Placed within the <head> element, metadata aids browsers, search engines, and web services in interpreting and displaying content. It helps in defin 5 min read
  • HTML5 <meter> Tag The HTML <meter> form Attribute defines the scale for measurement in a well-defined range and supports a fractional value. It is also known as a gauge. It is used in Disk use, relevant query results, etc. Avoid using the <meter> tag to denote progress, such as in a progress bar. Instead, 3 min read
  • HTML <nobr> Tag The HTML <nobr> tag prevents the enclosed text from wrapping onto a new line, keeping it all on a single line. However, it is deprecated and should be replaced with CSS's white-space: nowrap property. Note: tag is not supported in html5. Syntax: Statement Attribute: This tag doesn't contain an 2 min read
  • HTML <noembed> Tag The <noembed> tag is used to show that the browser is not supported by the <embed> tag. This <noembed> tag will inform the user what is missing in the user's browsers.  Note: <noembed> tag is not supported in html5. Syntax: <noembed> Element </noembed>Example: In 2 min read
  • HTML <noscript> Tag The <noscript> tag in HTML is used to display the text for those browsers which does not support the script tag or the browsers disable the script by the user. This tag is used in both <head> and <body> tags. Note: This tag is used in those browsers only which does not support scri 2 min read
  • HTML <Object> tag The <object> tag is used to display multimedia like audio, videos, images, PDFs, and Flash on web pages. It can also be used for displaying another webpage inside the HTML page. The <param> tag is also used along with this tag to define various parameters. Any text that is written within 3 min read
  • HTML <optgroup> Tag The HTML <optgroup> Tag is used to create a group of the same category options in a drop-down list. The <optgroup> tag is required when there is a long list of items that exist. It has a single attribute, label which is used to specify a label or heading for the grouped options. Note: Th 3 min read
  • HTML <option> Tag The HTML <option> tag is a versatile tool that enhances user interaction by creating selectable options within a dropdown list. This tag can be used with or without any attributes, and the selected value can be sent to the server. This elements must be inside <select> tag, <optgroup 3 min read
  • HTML <output> Tag The HTML <output> tag is used to represent the result of a calculation performed by the client-side script such as JavaScript. The <output> tag is a new tag in HTML 5, and it requires a starting and ending tag. It also supports the Global Attributes and Event Attributes in HTML. The cont 3 min read
  • HTML <param> Tag The <param> tag in HTML is used to define a parameter for plug-ins that are associated with <object> element. It does not contain the end tag. The <param> tag also supports the Global Attributes and Event Attributes in HTML. Ensure the sound plays automatically by setting the "auto 2 min read
  • HTML Phrase Tag Phrase Tag: In HTML, a phrase tag is used to indicate the structural meaning of a block of text. For example, abbr tag indicates that the phrase contains the abbreviation word. Some examples of phrase tags are abbr, strong, mark, . . . etc.Emphasized Text: The em tag is used to emphasize the text an 4 min read
  • HTML pre Tag The pre tag in HTML defines a block of preformatted text, preserving spaces, line breaks, and tabs. It displays text in a fixed-width font, which can be styled using CSS. This tag is useful for displaying code, formatted text, and preserving text layout. [GFGTABS] HTML <!DOCTYPE html> <html 3 min read
  • HTML 5 <progress> Tag The HTML 5 <progress> Tag is used to represent the progress of a task. It is similar to an indicator that displays the progress of completing a task. It is not used to represent the disk space or relevant query. Note: This tag is used in conjunction with JavaScript to display the progress of a 3 min read
  • HTML q Tag The <q> tag is a standard quotation tag and is used for short quotations. The browser normally inserts a quotation mark around the quotation. For longer quotations, the <blockquote> tag must be used since it is a block-level element. The <q> tag requires a starting as well as an en 3 min read
  • HTML5 rp Tag The <rp> tag in HTML is used to provide parentheses around a ruby main text that defines the information. This tag is used when the browser does not support ruby annotations. Such kind of annotation is used in Japanese publications. It is an optional tag. This tag is used within the <ruby 2 min read
  • HTML5 rp Tag The <rp> tag in HTML is used to provide parentheses around a ruby main text that defines the information. This tag is used when the browser does not support ruby annotations. Such kind of annotation is used in Japanese publications. It is an optional tag. This tag is used within the <ruby 2 min read
  • HTML5 <ruby> Tag The <ruby> tag in HTML is used to specify the ruby annotation which is a small text, attached with the main text to specify the meaning of the main text. This kind of annotation is used in Japanese publications. Syntax: <ruby attributes> Contents... </ruby>Note: <ruby> tag co 2 min read
  • HTML5 <ruby> Tag The <ruby> tag in HTML is used to specify the ruby annotation which is a small text, attached with the main text to specify the meaning of the main text. This kind of annotation is used in Japanese publications. Syntax: <ruby attributes> Contents... </ruby>Note: <ruby> tag co 2 min read
  • HTML5 <ruby> Tag The <ruby> tag in HTML is used to specify the ruby annotation which is a small text, attached with the main text to specify the meaning of the main text. This kind of annotation is used in Japanese publications. Syntax: <ruby attributes> Contents... </ruby>Note: <ruby> tag co 2 min read
  • HTML <script> Tag The HTML <script> tag embeds client-side scripts or links to external JavaScript files, enabling dynamic content, form validation, and style manipulation. Attributes like async, defer, and src control script execution and loading, enhancing the interactivity and performance of web pages. Synta 4 min read
  • HTML <script> Tag The HTML <script> tag embeds client-side scripts or links to external JavaScript files, enabling dynamic content, form validation, and style manipulation. Attributes like async, defer, and src control script execution and loading, enhancing the interactivity and performance of web pages. Synta 4 min read
  • HTML <small> Tag The <small> tag in HTML is used to define smaller text, reducing font size. It decreases the font size by one size (from medium to small, from x-large to large). It has a display property of inline. The <small> tag also supports the Global Attributes and Event Attributes in HTML. This ta 4 min read
  • HTML <source> Tag The <source> tag in HTML is used to specify multimedia files like <audio>, <video>, and <picture>. It utilizes attributes like src and type for defining the source URL and also enables the inclusion of different file formats for compatibility across browsers. It is a void ele 3 min read
  • HTML <spacer> tag The HTML <spacer> tag is used to create some white-space. This tag is history in HTML5, there is no more support in HTML5 also this tag is not supported by any major browsers. Syntax: <spacer type="" size="">Attribute: type: This attribute holds the value for the type of space horizontal 2 min read
  • HTML Tag The HTML <span> tag is an inline container that is used to group and apply styles or scripts to specific parts of text or elements within a document. While it doesn't affect the layout or appearance on its own, it serves as a target for CSS styling and JavaScript interactions, making it ideal 3 min read
  • HTML <strike> Tag In this article, we will know the HTML <strike> tag, along with understanding its implementation through the example. The <strike> tag defines a strike or line through Text.  This tag creates a cut line in the text. This tag is depreciated from HTML 5. Now, the <del> tag is used in 2 min read
  • HTML <strong> Tag The HTML <strong> Tag is the parsed tag and is used to show the importance of the text. The content inside it is generally in bold format. The primary purpose of <strong> tag is to provide semantic meaning to the content, indicating its importance to both browsers and developers. Note: T 2 min read
  • HTML Style Tag The HTML <style> tag in HTML defines CSS for document styling. The <style> element is placed in the <head> section of the document. Syntax:<style> /* CSS properties applied inside this style tag */ .divtag{ color: blue }</style>Attributes:Attributes Description media It 3 min read
  • HTML Subscript and Superscript Tags In HTML, the <sub> tag is used for subscript, making text appear slightly below the normal line, while the <sup> tag is used for superscript, positioning text slightly above the normal line. These tags are employed to format text in a way that is either lower or higher than the regular t 3 min read
  • HTML5 <summary> Tag The HTML <summary> tag defines a summary for the <details> element. The <summary> tag is used along with the <details> element and provides a summary visible to the user. When the user clicks the summary, the content placed inside the <details> element becomes visible w 3 min read
  • HTML tbody Tag The <tbody> tag in HTML is used to make a group of the same type of content of body element. This tag is used in HTML tables with header and footer which is known as "thread" and "tfoot". <tbody> tag is child tag of the table tag and the parent tag of <tr> and <td> tags. Synt 3 min read
  • HTML <td> Tag The <td> tag is used to define a standard cell in an HTML table. The 'rowspan' and 'colspan' in the <td> tag tell how many rows or columns a cell covers, while e 'id' and 'class' help uniquely identify and style the cell using CSS, and 'style' determines its visual appearance. Syntax: 4 min read
  • HTML template Tag The <template> tag in HTML is used to store the HTML code fragments, which can be cloned and inserted in an HTML document. The content of the tag is hidden from clients being stored on the client-side. It is inserted until activated using JavaScript. Use JavaScript to get the content from a te 3 min read
  • HTML tfoot Tag The HTML <tfoot> tag is used to give a footer group of content in an HTML table. This tag is used in an HTML table with a header and body which is known as "thead" and "tbody". <tfoot> tag is child tag of table and parent tag of <tr> and <td>. The <tfoot> element must h 3 min read
  • HTML th Tag The <th> tag in HTML is used to set the header cell of a table. The working of both tags (<th> and <td>) are the same, but the text properties are different. In <th> text is bold and centered, and in <td> text is regular and left aligned by default. There are 2 types of 4 min read
  • HTML thead Tag The HTML <thead> tag is used to provide a header to the group of content in an HTML table. Combining the <tbody> and <tfoot> elements with the <thead> element can help to specify each part of a table, i.e., the header, body, and footer. By using these elements, browsers allow 3 min read
  • HTML thead Tag The HTML <thead> tag is used to provide a header to the group of content in an HTML table. Combining the <tbody> and <tfoot> elements with the <thead> element can help to specify each part of a table, i.e., the header, body, and footer. By using these elements, browsers allow 3 min read
  • HTML title Tag The <title> tag in HTML is used to define the title of a web page. This title appears in the browser's title bar or tab, and it is also used by search engines as the clickable headline in search results. Important PointsThe title tag is used to give the title to the webpage and it should be th 2 min read
  • HTML tr Tag The <tr> tag in HTML is used to define a row in a table. It is a container for table cells, which can be either <td> (data cell) or <th> (header cell). The <tr> tag is placed inside a <table> element and groups cells horizontally. Note: The <tr> tag also supports 2 min read
  • HTML track Tag The <track> tag in HTML is used to specify text tracks for <video> and <audio> elements. It provides subtitles, captions, or other kinds of text metadata synchronized with the media. Note: The <track> tag supports the Global Attributes and Event Attributes in HTML.Tracks are 2 min read
  • HTML tt Tag The <tt> tag in HTML stands for teletype text. It was used in HTML 4 to define text in a monospaced, teletype-style font. However, the tag has been deprecated in HTML5 because it only served a presentational purpose without adding any semantic meaning to the content. Instead of using <tt 2 min read
  • HTML u Tag The HTML <u> tag is traditionally used to underline text. It signifies text that should appear distinct from the surrounding content, such as misspelled words or specific names in various languages. However, in contemporary web design, it is mainly used for stylistic purposes to draw attention 2 min read
  • HTML var Tag The <var> tag in HTML is used to define a variable. It is typically used to represent a variable in a mathematical expression or a placeholder that can be updated dynamically with JavaScript The content inside <var> tag is often styled differently by browsers to indicate that it is a var 2 min read
  • HTML 5 <wbr> Tag The <wbr> tag in HTML stands for word break opportunity and is used to define the position within the text which is treated as a line break by the browser. It is mostly used when the used word is too long and there are chances that the browser may break lines at the wrong place for fitting the 2 min read
  • HTML <xmp> Tag The <xmp> tag is used to create any content as letter format. Any text content between this <xmp> tag will display as the user type in the code section, same width, same position ending everything will be displayed as a replica of typed format or style. Note: It is not supported in html5 2 min read
Article Tags :
  • HTML
  • Web Technologies
  • HTML-Tags
Like three90RightbarBannerImg Explore More We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy Got It ! Lightbox Improvement Suggest changes Suggest Changes Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal. geeksforgeeks-suggest-icon Create Improvement Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all. geeksforgeeks-improvement-icon Suggest Changes min 4 words, max CharLimit:2000

What kind of Experience do you want to share?

Interview Experiences Admission Experiences Career Journeys Work Experiences Campus Experiences Competitive Exam Experiences

Từ khóa » Html Col Class