HOME | PHP Tutorial | CSS
facebook icon
AgerNic.com
WEB DEVELOPER SITE, HTML, CSS, PHP
PHP Tutorial

PHP forms
HTML Tutorial

CSS Tutorial

HTML Table Color


HTML Tutorial » HTML Table Color

For HTML Table we can add color to the frame as well as the background

Syntax
<table bgcolor="color_name or hex_number or rgb_number">

Note: The bgcolor attribute of <table> is not supported in HTML5. Use CSS instead.


HTML Table color - examples


Example:
Example 1 HTML Table rowspan:

<!DOCTYPE html>
<html>
<head>
<title>HTML Table color</title>
</head>
<body>
<table style="background:#FFFFCC; width:100%; border:thick #FF3333">
<tr>
<td style="border:1px solid #006699; witdh:100%;"> January </td>
<td style="border:1px solid #FF3333; witdh:100%;"> 12 </td>
<td style="border:1px solid #FF3333; witdh:100%;"> 08 </td>
<td rowspan="3" style="border:1px solid #00FF66; witdh:100%; background:#00FF66"> 23 </td>
</tr>
<tr>
<td style="border:1px solid #006699; witdh:100%;"> February </td>
<td rowspan="2" style="border:1px solid #FF3333; witdh:100%; background:#FFAAAA"> 14 </td>
<td style="border:1px solid #FF3333; witdh:100%;"> 09 </td>
</tr>
<tr>
<td style="border:1px solid #006699; witdh:100%;"> March </td>
<td style="border:1px solid #FF3333; witdh:100%;"> 06 </td>
</tr>
</table>
</body>
</html>
Note: Browser Support All

html table color HTML Table Color - html tutorial

3050. HTML Attributes: What they are and How to use
Learn about HTML attributes with this HTML tutorial.
https://www.quackit.com/html/tutorial/html_attributes.cfm

2185. HTML Tutorial - Code-Format, Computer-Code-Tag
Wie man mit dem Computer formatiertem Code schreibt. Einfaches und praktisches Besipiel zum HTML-Code-Tag
https://tutorialehtml.com/de/html-computercode/

2155. HTML Tutorial - titles and headings
Titluri in HTML, Headings, tipuri si dimensiuni
https://tutorialehtml.com/en/html-tutorial-titles-and-headings/

3061. HTML Links: How to create Links to other Web Pages
Learn about HTML links with this HTML tutorial.
https://www.quackit.com/html/tutorial/html_links.cfm

3066. HTML Website Templates
Learn about HTML website templates with this HTML tutorial.
https://www.quackit.com/html/tutorial/html_website_templates.cfm

2143. HTML Tutorial - <pre> ( preformatting ) Tag
Pre tag notepad formatting
https://tutorialehtml.com/en/html-tutorial-pre-preformatting/

Your add here
PHP md5() function

PHP htmlspecialchars_decode() function

PHP strip_tags() function

PHP htmlentities() function

PHP ucwords() function

PHP printf() function

PHP htmlspecialchars() function

PHP rtrim() function

PHP str_split() function

PHP html_entity_decode() function

PHP str_repeat() function

PHP ucfirst() function

PHP implode() function

PHP substr() function

PHP trim() function

PHP strtoupper() function

SQL like syntax and example
CSS Padding, top, bottom, left, right
Travel & Turism
CSS Button Border
How do I get PHP errors to display - PHP error_reporting()
CSS Table