27 lines
975 B
HTML
27 lines
975 B
HTML
<!DOCTYPE html>
|
|
<html lang="de">
|
|
|
|
<head>
|
|
<title>Übung: CSS lesen</title>
|
|
<meta charset="utf-8">
|
|
<link rel="stylesheet" type="text/css" href="style.css">
|
|
</head>
|
|
|
|
<body>
|
|
<h1>Cascading Stylesheets</h1>
|
|
<nav> <a href="#einleitung">Einleitung</a> | <a href="#syntax">Syntax</a> </nav>
|
|
<section id="einleitung">
|
|
<h2>Einleitung</h2>
|
|
<p>Mit Cascading Stylesheets (CSS) kann die Darstellung von HTML-Elementen definiert werden.</p>
|
|
<div class="hinweis">Hinweis: Damit unterstützt CSS die saubere Trennung zwischen Darstellung und
|
|
Inhalt/Struktur.</div>
|
|
</section>
|
|
<section id="syntax">
|
|
<h2>Syntax</h2>
|
|
<p>Eine CSS-Regel besteht aus einem Selektor und einem Deklarationsblock mit 1-n Deklarationen.</p>
|
|
<div class="hinweis">Hinweis: Deklarationen werden mit Semikolons getrennt.</div> <a
|
|
href="http://w3c.org/css">Weitere Infos im Standard...</a>
|
|
</section>
|
|
</body>
|
|
|
|
</html> |