<table> <tr> <th></th> <th scope="col">Column 1</th> <th scope="col">Column 2</th> </tr> <tr> <th scope="row">Row Header</th> <td>Table Data</td> <td>Table Data</td> </tr> </table>
<table> <!-- Table Head --> <thead> <tr> <th></th> <th scope="col">Column 1</th> <th scope="col">Column 2</th> </tr> </thead> <!-- Table Body --> <tbody> <tr> <th scope="row">Row Header</th> <td>Table Data</td> <td>Table Data</td> </tr> </tbody> <!-- Table Footer --> <tfoot> <tr> <th>Table Footer</th> <td> </td> <td> </td> </tr> </tfoot> </table>
<!-- Column Span --> <td colspan="2">This column spans 2 columns</td> <!-- Row Span --> <td rowspan="2">This row spans 2 rows</td>
<!-- Method 1: header tag --> <header> <!-- Navigation or introductory content --> </header> <!-- Method 2: div tag with header id --> <div id="header> <!-- Navigation or introductory content --> </div>
<footer> <!-- footer content --> </footer>
<section> <article> <!-- body content --> </article> </section>
<aside> <!-- aside content --> </aside>
<figure> <img src="image-link"> <figcaption>Image Description</figcaption> </figure>
<audio controls> <source src="audio-file-link/url" type="audio/mp3"> </audio>
<video src="video-file-link/url" controls> Video not supported </video> <!-- Attaching Gifs --> <embed src="gif-file-link/url"/>
3 ways of adding CSS to HTML: Inline Styles, Internal Stylesheet & External Stylesheet.
min-width: 300px;
max-width: 600px;
min-height: 300px;
min-height: 300px;
box-sizing: border-box;
border: 1px solid black;
border: border-width border-style border-color;
border-radius: 5px;
overflow: scroll;
element-name { } .class-name { } #id-name { } [attribute-name]{ } :Pseudo-class-name { }
!important
- override any style no matter how specific it is.* { margin: 0; padding: 0; }
font-family: Garamond;
font-weight: bold;
font-style: italic;
text-align: right;
text-transform: uppercase;
text-transform: uppercase;
color: red;
background-color: blue;
opacity: 0.5;
background-image: url('image-link / filepath');
visibility: hidden;
position: static;
z-index: 1;
display: inline;
float: right;
clear: left;