HOME | PHP Tutorial | CSS
facebook icon
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

<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 1 HTML Table rowspan:

<!DOCTYPE html>
<title>HTML Table color</title>
<table style="background:#FFFFCC; width:100%; border:thick #FF3333">
<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>
<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>
<td style="border:1px solid #006699; witdh:100%;"> March </td>
<td style="border:1px solid #FF3333; witdh:100%;"> 06 </td>
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.

2185. HTML Tutorial - Code-Format, Computer-Code-Tag
Wie man mit dem Computer formatiertem Code schreibt. Einfaches und praktisches Besipiel zum HTML-Code-Tag

2155. HTML Tutorial - titles and headings
Titluri in HTML, Headings, tipuri si dimensiuni

3061. HTML Links: How to create Links to other Web Pages
Learn about HTML links with this HTML tutorial.

3066. HTML Website Templates
Learn about HTML website templates with this HTML tutorial.

2143. HTML Tutorial - <pre> ( preformatting ) Tag
Pre tag notepad formatting

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