Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta name="author" content="Anas Singularity">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link href="css/style.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
</head>

<body>
Expand All @@ -19,6 +19,33 @@ <h1>Main Heading</h1>
<h3>sub heading</h3>
<p>Hello, World!</p>

<!-- Table head -->
<table border="1">
<thead>

<th>Name</th>
<th>Info</th>

</thead>
<tbody>
<tr>
<td>Steve</td>
<td>Apple</td>
</tr>
<tr>
<td>Bill</td>
<td>Microsoft</td>
</tr>
</tbody>
<tfoot><td colspan="2">Table footer</td></tfoot>
</table>
<br>
<!-- Radio Buttons-->
<div>Radio Buttons</div>
<form>
<input type="radio" name="Company" value="Apple"/>Apple<br>
<input type="radio" name="Company" value="Microsoft"/>Microsoft<br>
</form>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="js/script.js"></script>
</body>
Expand Down
15 changes: 15 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
th{
background-color: blueviolet;
color:white;
font-weight: bold;
}
table, th, tr, td, tfoot{
border-collapse: collapse;
border:1px solid black;

}
td, th{
width:300px;
text-align: center;
}

tr:nth-child(even) {background-color: #f2f2f2;}