Beispiel:CSS-Einstieg-1.html

Aus SELFHTML-Wiki
Wechseln zu: Navigation, Suche
<!DOCTYPE html>
<html lang="de">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" media="screen" href="./Beispiel:SELFHTML-Beispiel-Grundlayout.css" >
    <title>CSS-Einstieg - 1</title>
    <style>
h1 {
	color: red;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

h1,
h2 {
	background-color: #eee;
	border-radius: 1em;
	padding-left: 1em;
}
p {

}
</style>
</head>
<body>
	<h1>Meine CSS-Spielwiese</h1>
	<p>Dies ist ein Absatz.</p>
	<h2>Eine Unterüberschrift</h2>
	<p>Dies ist noch ein Absatz.</p>

</body>
</html>