-->
Showing posts with label background color. Show all posts
Showing posts with label background color. Show all posts

HTML with attributes

We can change the color of background of table ans shown in code.
----------------------------------------------------------------------------
<html>
<head>
<title>
understanding table tag with background color
</title>
</head>
<body>
<h1>we are going to creat table</h1>
<table border="1" width="100%" bordercolor="green" bgcolor="purple">
<tr>
<td>id</td>
<td>name</td>
<td>grade</td>
</tr>
<tr>
<td>001</td>
<td>Rajan</td>
<td>10</td>
</tr>
</table>
</body>
</html>

 

HTML to change the background color of page

<html>
<head><!-- for meta tag-->
<title>
changing background color of page
</title>
</head>
<body bgcolor="#A13265">
         <!--here, bgcolor is an attribute and can have value in RGB or we can give color name-->
         <!--A1=R,32=G,65=B-->
I am learning web-page.
</body>
</html>
-----------------------------------------------------------------------------------------------
or
--------------------------------------------------------------------------
<html>
<head><!-- for meta tag-->
<title>
changing background color of page
</title>
</head>
<body bgcolor="green">
         <!--here, bgcolor is an attribute and can have value in RGB or we can give color name-->
         <!--A1=R,32=G,65=B-->
I am learning web-page.
</body>
</html>