tables
Tables are very useful. We use them to store tabular data so it is easy to read!
-we use <table> tag create table.
-table need have row and column:
-we use <tr></tr> create a table row and <td></td> for create a table column
-To make our table look a little more like a table, we'll use the <thead> and
<tbody>
tags. These go within the<table>
tag and stand for table head and table body, respectively.-we are use <thead> tag for the hold the heading for each column.
-table is missing a title. We want to add a title row that goes all the way across the top.we need to use the colspan attribute
-ex:
<th colspan="2">aaaaaaaaa</th>
-added some styling to the table to make it a bit easier to read.we are use style such as
border-collapse:collapse
color:red
colspan="2"
padding:5px ; border-bottom;border-left
-we use <div></div> allows you to divide your page into containers.This will come in handy when you see your code or orther people understand your code easily than.and also easier to edit code.
-<span > allows to control styling for smaller parts of your page, such as text
Không có nhận xét nào:
Đăng nhận xét