html table input

Solutions on MaxInterview for html table input by the best coders in the world

showing results for - "html table input"
Elias
04 Jan 2017
1<!DOCTYPE html>
2<html>
3<head>
4<style>
5table {
6  font-family: arial, sans-serif;
7  border-collapse: collapse;
8  width: 100%;
9}
10
11td, th {
12  border: 1px solid #dddddd;
13  text-align: left;
14  padding: 8px;
15}
16
17tr:nth-child(even) {
18  background-color: #dddddd;
19}
20</style>
21</head>
22<body>
23
24<h2>HTML Table</h2>
25
26<table>
27  <tr>
28    <th>Company</th>
29    <th>Founder</th>
30    <th>Country</th>
31  </tr>
32  <tr>
33    <td>Walmart</td>
34    <td>San Walton</td>
35    <td>USA</td>
36  </tr>
37  <tr>
38    <td>Gucci</td>
39    <td>Guccio Gucci</td>
40    <td>Italy</td>
41  </tr>
42  
43</table>
44
45</body>
46</html>
47