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: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: #ddd;
	border-radius: 0 16px; 
	border: medium solid brown;
	padding: 1rem 2rem;	
}
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>