
During lab 4 which was one of the most difficult labs for me out of the 4 because it involved using tables and I have forgotten most of the tables command but this lab has refreshed my memory. First we started off by creating a new html page. After this i decided to do the same thing as last lab and change the background color and font color using the background-color style and font-color style. To create the table you first start by writing the table tag, <table>. After the table tag its <tr> which is table row. After this its the <tbody> which is the body of the table which includes <th> or <td> and, <th> stands for the table heading while <td> stands for the table data that you input. In this lab we had to create 3 columns with 16 rows of colors name, their hex# and the hue which displayed each color. The first column and second column were the easiest because it was just inputting the name and the hex number of the colors. An example of it can be the first row which is LightSalmon:
<tr>
<td>LightSalmon</td>
<td>#FFA07A</td>
<td bgcolor="#FFA07A"></td>
</tr>
This is the first color in the table. As you can see the tag <tr> opens and closes </tr>. Each <td></td> was the different columns of the table and its the information you would input. Finally using the CSS style of bgcolor it allowed us to fill the last box as the color it is and display the color. As a web designer learning to make tables and how to fill them up correctly is important because a web site will need a menu bar and creating one will now be easier because you have the skills to create and fill up a table.
Comments
Post a Comment