Computer Science, asked by natasha2510, 19 days ago

.
Find out the HTML statement to display a table in the center of the window with red borders of thickness?​

Answers

Answered by kalpanawalekar20
1

Answer:

hopefully this will help you

Explanation:

This tag is also essential for displaying information in rows and columns on your page. It is meant primarily for displaying formatted data. It can also be used to create the layout of a web page, but that use is being phased out in favor of using Cascading Style Sheets (CSS) for formatting.

The downside to using tables is that they are somewhat complicated to use and understand. The use of an HTML editor is extremely helpful when using tables. Nonetheless, understanding how tables are structured will help you fix any problems.

Answered by aniketaryan960
0

Answer:

<!DOCTYPE html>

<html lang="en">

<head>

   <meta charset="UTF-8">

   <meta http-equiv="X-UA-Compatible" content="IE=edge">

   <meta name="viewport" content="width=device-width, initial-scale=1.0">

   <title>Table</title>

   <style>

       table{

           border: 1px solid red;

       }

       tr{

           border: 1px solid red;

       }

       th{

           border: 1px solid red;

       }

       h2{

           text-align: center;

       }

   </style>

</head>

<body>

   <h2>A Table</h2>

   <table style="width: 100%;" class="table">

       <tr class="tr">

           <th class="th">Company</th>

           <th class="th">Country</th>

           <th class="th">Contact</th>

       </tr>

       <tr class="tr">

           <th class="th">Tesla</th>

           <th class="th">Elon Musk</th>

           <th class="th">U.S.A.</th>

       </tr>

       <tr class="tr">

           <th class="th">Blue Orign</th>

           <th class="th">Jeff Bezos</th>

           <th class="th">U.S.A.</th>

       </tr>

   </table>

</body>

</html>

If you copy paste this to your html file you will see this on the attached file

Explanation:

Attachments:
Similar questions