HTML:- Table tag

<!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:-
NameInternal 1Internal 2Internal 3Internal 4
Rajesh56698591
Franklin88879592
Merbin81888789
Deepa88596267
Khan57454451
Ramesh40384956

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 HTML:- Table tag Reviewed by Network security on April 30, 2019 Rating: 5

No comments:

Useful Information

Powered by Blogger.