HTML Colgroup Tag | How To Specify Table Background Style?
Có thể bạn quan tâm
Last Updated on April 26, 2023 by Roshan Parihar
HTML colgroup tag is used to specify table background styles.
The colgroup tag defines the column background of table with HTML col tag.
Syntax
Syntax <colgroup>Put colgroup element here...</colgroup>1 | <colgroup>Put colgroup element here...</colgroup> |
123456789101112131415 | <table border="1"><caption>Thisisthe table caption</caption><colgroup><col style="background-color:green"><col style="background-color:yellow"></colgroup><tr><th>Company Name</th><th>Description</th></tr><tr><td>Infosys</td><td>Infosys isasoftware company</td></tr></table> |
Output
Company Name | Description |
---|---|
Infosys | Infosys is a software company |
Resources and References of HTML colgroup tag
1. W3C Specification. 2. HTML living standard 3. W3C project using Github
Related
Related Posts:
- HTML blockquote tag
- HTML abbr tag
- HTML aside tag
- HTML <!DOCTYPE> tag
- HTML <a> Tag
- HTML br tag
Từ khóa » Html Colgroup Background Color
-
HTML Colgroup Tag - W3Schools
-
HTML Table Colgroup - W3Schools
-
Colgroup Background Color Not Override Tr Background Color
-
HTML:
Tag - TechOnTheNet -
: The Table Column Group Element - MDN Web Docs -
HTML |
Bgcolor Attribute - GeeksforGeeks -
HTML Colgroup Tag - Web4College
-
HTML Col, Colgroup Tutorial With Examples - O7planning
-
HTML Colgroup Tag - Dofactory
-
Set Background For Column Group In HTML And CSS
-
HTML
Tag - W3docs -
HTML Table Colgroup - ForgeGeek
-
What Is Colgroup Tag In HTML?
-
HTML - Colgroup Tag - Tutorialspoint