Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
*
{
margin: 0;
padding: 0;
}
body
{
background: rgb(2,0,36);
background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(145,105,228,0.9416360294117647) 0%, rgba(0,212,255,1) 57%);
color: white;
}
header
{
box-sizing: border-box;
background: MediumSlateBlue;
padding: 20px;
}
ul
{
list-style: none;
}
ul li
{
display: inline-block;
}
header, nav, ul, li, a
{
font-weight: bold;
font-size: 20px;
color: white;
text-decoration: none;
font-family: cursive;
padding-right: 30px;
}
header, nav, ul, li, a:hover
{
background-color: SkyBlue;
color: red;
}
h1, h2
{
text-align: center;
font-weight: bold;
font-family: cursive;
line-height: 115px;
}
.search
{
box-sizing: border-box;
border: 1px solid black;
border-radius: 20px;
background-color: AliceBlue;
color: black;
margin: auto;
padding: 20px;
width: 70%;
}
table, th, td
{
border: 2px solid black;
border-collapse: collapse;
padding: 20px;
margin: auto;
border-style: solid;
}
.code
{
height: 40px;
font-size: 30px;
font-weight: bolder;
text-decoration: underline;
text-align: center;
background-color: MediumOrchid;
text-transform: capitalize;
font-family: cursive;
}
.Description
{
font-family: cursive;
font-weight: bold;
font-size: 18px;
background-color: orchid;
}
td
{
font-size: 15px;
font-family: cursive;
}
h5
{
text-align: center;
padding: 30px;
}
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta name="viewport" content="width=device-width intial-scale=1.0">
<meta charset="utf-8">
<title>My First Cheat Sheet: Html table Refrences</title>
<link rel="stylesheet" type= "text/css" href="styles.css">
</head>
<body>
<header>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</header>
<main>
<h1>HTML Table Refrences</h1>
<div id="tags">
<div class="search">search the table</div>
<h2>Table Tags</h2>
<!--table tags start here-->
<table>
<thead>
<tr>
<th class="code">Tag</th>
<th class="code">Name</th>
<th class="code">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="Description">&lt;table&gt;</td>
<td>Table</td>
<td>The wrapper element for all HTML tables.</td>
</tr>
<tr>
<td class="Description">&lt;thead&gt;</td>
<td>Table Head</td>
<td>The set of rows defining the column headers in a table.</td>
</tr>
<tr>
<td class="Description">&lt;tbody&gt;</td>
<td>Table body</td>
<td>The set of rows containing actual table data.</td>
</tr>
<tr>
<td class="Description">&lt;tr&gt;</td>
<td>Table row</td>
<td>The table row container.</td>
</tr>
<tr>
<td class="Description">&lt;td&gt;</td>
<td>Table data</td>
<td>Put All Data in this Tag</td>
</tr>
<tr>
<td class="Description">&lt;tfoot&gt;</td>
<td>Table Foot</td>
<td>The set of rows defining the footer in a table.</td>
</tr>
</tbody>
</table>
</div>
<br>
<br><br><br>
<hr>
<section id="attributes">
<h2>Table attributes</h2>
<table>
<thead>
<tr>
<th class="code">Attribute</th>
<th class="code">Name</th>
<th class="code">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="Description">ColSpan</td>
<td>Column Span</td>
<td>Defines how many columns a td element should span.</td>
</tr>
<tr>
<td class="Description">rowSpan</td>
<td>RowSpan</td>
<td>Defines how many rows a td element should span.</td>
</tr>
</tbody>
</table>
<br><br><br><br><br>
</section>
</main>
<footer>
<h5>Made By Amanpreet Kaur &copy; 2020</h5>
</footer>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.