author: | Pierre-Antoine Champin |
---|---|
date: | 2012 |
address: | Département Informatique, IUT Lyon 1 |
The following characters have special meaning in HTML, so a special code (entity) is needed to display them:
< | < | lower than |
> | > | greater than |
" | "e; | quote |
' | ' | apostrophe |
& | & | ampersand |
NB: other entities exist for many non-ASCII character, for example é for é, À for À, ç for ç...
However, HTML now supports unicode, so they are not strictly necessary (and they hinder readbility).
A table is composed of rows, which are in turn composed of cells.
the table | ||
a row | ||
a header cell | a data cell | another data cell |
---|
This is described with the following tags:
table | <table> |
row | <tr> |
header cell | <th> |
data cell | <td> |
<table> <tr> <th>Product</th> <th>Price</th> <th>Available</th> </tr> <tr> <td>Beer</td> <td>3€</td> <td>no</td> </tr> <tr> <td>Wine</td> <td>5€</td> <td>yes</td> </tr> </table>
Product | Price | Available |
---|---|---|
Beer | 3€ | no |
Wine | 5€ | yes |
<meta name="description" content="learn advanced tricks in HTML"> <meta name="author" content="Pierre-Antoine Champin"> <meta name="keywords" content="html web iut">
The robot meta tag can be used to provide instructions to search engines:
<meta name="robot" content="index,nofollow">
Metadata can be provided in different languages, specified with the lang attribute, with a language code as specified by BCP47.
<meta name="description" lang="en" content="learn advanced tricks in HTML"> <meta name="description" lang="fr" content="apprenez plus de toursen HTML">
Note
The lang attribute can be used on any HTML tag, including inside the body.
Different stylesheet can be specified for different media types:
<link rel="stylesheet" type="text/css" media="screen" href="sans-serif.css"> <link rel="stylesheet" type="text/css" media="print" href="serif.css">
NB: this can be specified directly in the CSS as well:
@media screen { * { font-family: sans-serif } }
aural |
braille |
handheld |
projection |
screen |
tty |
tv |
For more details, see CSS3 Media Queries
CSS allows to completely remove some elements. This can be used in media-specific stylesheets (for example, hiding a site menu in the print media):
@media print { ul.menu { display: none; } }
Table of Contents | t |
---|---|
Exposé | ESC |
Full screen slides | e |
Presenter View | p |
Source Files | s |
Slide Numbers | n |
Toggle screen blanking | b |
Show/hide slide context | c |
Notes | 2 |
Help | h |