First init
This commit is contained in:
47
html-css-cheatsheet-starting/index.html
Normal file
47
html-css-cheatsheet-starting/index.html
Normal file
@@ -0,0 +1,47 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Codecademy HTML/CSS Cheatsheet</title>
|
||||
<link rel="stylesheet" href="./styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1>Codecademy HTML/CSS Cheatsheet</h1>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="#html">HTML</a></li>
|
||||
<li><a href="#css">CSS</a></li>
|
||||
<li><a href="#resources">Resources</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
<main>
|
||||
<section id="html">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Élément</th>
|
||||
<th>Description</th>
|
||||
<th>Exemple</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tr>
|
||||
<td id="column-1">Aze</td>
|
||||
<td id="column-2">Aze</td>
|
||||
<td id="column-3">Aze</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id="column-1">Aze</td>
|
||||
<td id="column-2">Aze</td>
|
||||
<td id="column-3">Aze</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id="column-1">Aze</td>
|
||||
<td id="column-2">Aze</td>
|
||||
<td id="column-3">Aze</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
21
html-css-cheatsheet-starting/styles.css
Normal file
21
html-css-cheatsheet-starting/styles.css
Normal file
@@ -0,0 +1,21 @@
|
||||
table {
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
th, td {
|
||||
border: 1px solid black;
|
||||
padding: 10px;
|
||||
width: 33vw;
|
||||
}
|
||||
|
||||
#column-1 {
|
||||
background-color: lightblue;
|
||||
}
|
||||
|
||||
#column-2 {
|
||||
background-color: lightgreen;
|
||||
}
|
||||
|
||||
#column-3 {
|
||||
background-color: lightcoral;
|
||||
}
|
||||
Reference in New Issue
Block a user