-
Notifications
You must be signed in to change notification settings - Fork 0
/
1.08.Tables_In_HTML.html
42 lines (41 loc) · 1.25 KB
/
1.08.Tables_In_HTML.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<!Here we will study how to use tables in html.>
<!First learn which type of tags are used to create a table.>
<!"tr" tag- It creates rows(rows are vertical), in which we write th, which are the actual headings of rows>
<!Then we end the tr tag, then starts it again, now we will put data of those headings, by writing "td" tag>
<!We will end the "tr" tag then start it agin, and the cycle continues until as much data we want is not finished written>
<!"caption" tag is used to give a center heading for whole table and should be written just after "table" tag.>
<html>
<head>
<title>TABLES IN HTML</title>
</head>
<body>
<table>
<caption>My Favourite Aliens In Ben 10</caption>
<tr>
<th>Name</th>
<th>Abilities</th>
<th>Found In</th>
<th>Species</th>
</tr>
<tr>
<td>Alien X</td>
<td>Infinite Strength & time control</td>
<td>Forge Of Creation</td>
<td>Celestialsapien</td>
</tr>
<tr>
<td>Humungousaur</td>
<td>Super Strength & increase in size</td>
<td>Planet Terradino</td>
<td>Vaxasaurian</td>
</tr>
<tr>
<td>Big Chill</td>
<td>Cyrokinesis, Cold & Heat Resistence</td>
<td>Planet Kylmyys</td>
<td>Necrofriggian</td>
</tr>
</table>
</body>
</html>