Beispiel:Textabsätze-mit-Blockelementen.html

Aus SELFHTML-Wiki
Wechseln zu: Navigation, Suche
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<title>Blockelemente innerhalb von p-Elementen</title>
<script>
</script>
<style>
p {
  color: green;
}
div {
  color: red;
  border:thin solid transparent;
}
</style>

</head>

<body>
<h1>Blockelemente innerhalb von p-Elementen</h1>

<p> 
  Dies ist ein Text 
  <div> mit einem div</div>
  und noch etwas Text.
</p>

<h2>CSS</h2>
<pre>
p {
	color: green;
}

div {
	color: red;
	border:thin solid;
}
</pre>

</body>

</html>