Beispiel:Bilder präsentieren-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">
		<title>Bildunterschriften mit figcaption präsentieren</title>
		<style>
			figure {
				position: relative;
				margin: 0;
				padding: .5em;
				width: 470px;
				border: thin solid gainsboro;
				background: white;
			}
			figcaption {
				padding: .5em;
				text-align: center;
			}
		</style>
	</head>
	<body>
		<h1>Bildunterschriften mit figcaption präsentieren</h1>

			<figure>
				<img src="//wiki.selfhtml.org/images/a/a6/Lauf-1.jpg" alt="Lauf an der Pegnitz - Nürnberger Tor">
				<figcaption>Lauf an der Pegnitz - Nürnberger Tor</figcaption>
			</figure>

	</body>
</html>