<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>HTML Table</title>
</head>
<body>
<table border="1">
<tr>
<th>Name</th>
<th>Internal 1</th>
<th>Internal 2</th>
<th>Internal 3</th>
<th>Internal 4</th>
</tr>
<tr>
<td>Rajesh</td>
<td>56</td>
<td>69</td>
<td>85</td>
<td>91</td>
</tr>
<tr>
<td>Franklin</td>
<td>88</td>
<td>87</td>
<td>95</td>
<td>92</td>
</tr>
<tr>
<td>Merbin</td>
<td>81</td>
<td>88</td>
<td>87</td>
<td>89</td>
</tr>
<tr>
<td>Deepa</td>
<td>88</td>
<td>59</td>
<td>62</td>
<td>67</td>
</tr>
<tr>
<td>Khan</td>
<td>57</td>
<td>45</td>
<td>44</td>
<td>51</td>
</tr>
<tr>
<td>Ramesh</td>
<td>40</td>
<td>38</td>
<td>49</td>
<td>56</td>
</tr>
</table>
</body>
</html>
Output:-
Used of:-
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>HTML Table</title>
</head>
<body>
<table border="1">
<tr>
<th>Name</th>
<th>Internal 1</th>
<th>Internal 2</th>
<th>Internal 3</th>
<th>Internal 4</th>
</tr>
<tr>
<td>Rajesh</td>
<td>56</td>
<td>69</td>
<td>85</td>
<td>91</td>
</tr>
<tr>
<td>Franklin</td>
<td>88</td>
<td>87</td>
<td>95</td>
<td>92</td>
</tr>
<tr>
<td>Merbin</td>
<td>81</td>
<td>88</td>
<td>87</td>
<td>89</td>
</tr>
<tr>
<td>Deepa</td>
<td>88</td>
<td>59</td>
<td>62</td>
<td>67</td>
</tr>
<tr>
<td>Khan</td>
<td>57</td>
<td>45</td>
<td>44</td>
<td>51</td>
</tr>
<tr>
<td>Ramesh</td>
<td>40</td>
<td>38</td>
<td>49</td>
<td>56</td>
</tr>
</table>
</body>
</html>
Output:-
Name | Internal 1 | Internal 2 | Internal 3 | Internal 4 |
---|---|---|---|---|
Rajesh | 56 | 69 | 85 | 91 |
Franklin | 88 | 87 | 95 | 92 |
Merbin | 81 | 88 | 87 | 89 |
Deepa | 88 | 59 | 62 | 67 |
Khan | 57 | 45 | 44 | 51 |
Ramesh | 40 | 38 | 49 | 56 |
Used of:-
Table tag
- This tag is very important in html.
- This tag has some attributes like border,width,height we will see these in details through different examples.
- <tr> tag is used to define a table row. It must write inside the <table> tag. A table can have more than one row.
- The <td> is defined as table data (cell), it must be written inside the <tr> tag.
HTML:- Table tag
Reviewed by Network security
on
April 30, 2019
Rating:
No comments: