theme | background | title | info | class | highlighter | drawings | transition | mdc | |
---|---|---|---|---|---|---|---|---|---|
default |
HTML en pratique |
## Formation HTML
|
text-center |
shiki |
|
slide-left |
true |
Essayons de reproduire cette page
Ce qu'on va voir
<style>
ul {
color: unset;
list-style-type: none;
}
</style>
- Quelques balises importantes
- Un peu de CSS
- Un peu de référencement
- ...
layout: image-right image: https://cover.sli.dev
W3schools : Tags (balises) et
layouts
MDN : Eléments (balises) et layouts
<!-- Exemple de structure -->
<html>
<head></head>
<body>
<header></header>
<main>
<article>
<section></section>
<section></section>
</article>
</main>
</body>
</html>
Editeur dynamique ci-dessous ..
<footer>
<img>
<legend>
<meter>
<abbr><a><code><a><br><a>
Mais c'est pas très joli
<section id = "section-id">
Super !
</section>
<section class = "section-class">
wow...
</section>
<!-- <style> à mettre dans le <head> -->
<style>
section{
background: blue;
}
#section-id{
text-align: center;
}
.section-class{
margin-top: 45px;
}
</style>
<article>
<section></section>
<section></section>
</article>
<style>
article{
display: flex;
justify-content: space-between;
}
section{
flex: 1;
}
</style>
/* display: block; */
margin: auto;
/* display: inline; */
text-align: center;
<<< @/snippets/example.html html
<head>
<title>Titre de ma page</title>
<meta name="description" content="">
<meta property="og:image" content="">
<meta property="og:image:height" content="">
<meta property="og:image:width" content="">
<meta property="og:title" content="">
<meta property="og:description" content="">
<meta property="og:url" content="">
<meta property="og:type" content="">
<meta property="og:site_name" content="">
<meta property="og:locale" content="fr_FR">
<meta name="twitter:card" content="">
<meta name="twitter:site" content="">
<meta name="twitter:title" content="">
<meta name="twitter:description" content="">
<meta name="twitter:image" content="">
<meta name="twitter:image:alt" content="">
</head>