Beispiel:CSS-Einstieg-2.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 - 2</title>
    <style>
h1 { 
  color: red; 
  font: 300% cursive;
  margin: 0;
  padding: 0;
  background: 0 none;
}
h1, h2 { 
  background-color: #eee;
  border-radius: 10px; 
  border: thin solid red;
}
p {

}
    </style>
</head>
<body>

	<h1>CSS-Spielwiese</h1>
	<p>Dies ist ein Absatz.</p>
	<h2>Eine Unterüberschrift</h2>
	<p>Dies ist noch ein Absatz.</p>

</body>
</html>