How to make a table in HTML?

 Adding a table in HTML is easy. I am going to teach it to you by adding style to the border as well!!

Let's get started!!

This is the code-



<html>

<head>

<title> MY NAME </title>

</head>

<body style="background-color:pink">

Hello everyone!! my name is Esha Rautela!!<br><hr>

I study in grade 8.<br><hr> 

:)<hr>

 <img src="C:\Users\eshar\OneDrive\Desktop\HTML.png" width="200px" height="150px"><hr>

  <h2><i>LIST OF ELECTRONIC DEVICES</h2>

<ul>

<li>Phone</li>

<li>Laptop</li>

<li>Tab</li>

<li>T.V</li>

<li>Xbox 360</li>

<li>Xbox 1s </li>

<li>Xbox 1x</li>

<li>Oven</li>

<li>Microwave</li>

<li>Toaster</li>

<li>A.C</li>

</ul><hr>

<iframe width="560" height="315" src="https://www.youtube.com/embed/gU2HqP4NxUs" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

<hr>

<table border="10" bgcolor="pink" bordercolor="red" style="border-style: dashed" width="400" height="300" align="center">

     <thead>

        <tr>

<th bgcolor="orange">NAME <b></th>

<th bgcolor="orange">SAVING(per month)<b></th>

    </tr> 

     </thead> 

     <tbody>

        <tr> 

        <td>Esha</td>

        <td>$200</td>

        </tr>

<tr> 

        <td>Kritin</td>

        <td>$180</td>

        </tr>

<tr> 

        <td>Shanti</td>

        <td>$150</td>

        </tr>

<tr> 

        <td>Tarun</td>

        <td>$190</td>

        </tr>

</body>

</html>








Comments

Popular posts from this blog

LIST THE REASONS FOR THE FAILURE OF 1857 REVOLT.

Twist and Turn pop-up card

How to add video in HTML?