cours/docs/snippets/html/base.html

89 lines
1.1 KiB
HTML
Executable File

// #region base
<!DOCTYPE html>
<html lang="fr" dir="ltr">
<head>
<meta charset="UTF-8" />
<title>Document</title>
</head>
<body>
[Contenu du site]
</body>
</html>
// #endregion base
// #region structure
<!DOCTYPE html>
<html lang="fr" dir="ltr">
<head>
<meta charset="UTF-8" />
<title>Document</title>
</head>
<body>
<header>
<nav></nav>
</header>
<main>
<section>
<h1>Titre principal</h1>
<article>
<header>
<h2>Titre secondaire</h2>
</header>
</article>
</section>
</main>
<aside>
<h2></h2>
</aside>
<footer></footer>
</body>
</html>
// #endregion structure
// #region full
<!DOCTYPE html>
<html lang="fr" dir="ltr">
<body>
<header>
<nav>
<a href="/">accueil</a>
</nav>
</header>
<main>
<section>
<h1>Titre principal</h1>
<article>
<header>
<h2>Titre secondaire</h2>
</header>
<p>Lorem <strong>ipsum</strong> dolor sit amet.</p>
</article>
</section>
</main>
<aside>
<h2></h2>
<ul>
<li>item 1</li>
<li>item 2</li>
</ul>
</aside>
<footer></footer>
</body>
</html>
// #endregion full