Was ist was, wie schreibt man es — und wie sieht es im Browser aus.
<p>Das ist ein Absatz.</p>
<p>Noch ein Absatz.</p>
Das ist ein Absatz.
Noch ein Absatz.
<a href="https://google.com">
Zu Google
</a>
<h1>Überschrift 1</h1>
<h2>Überschrift 2</h2>
<h3>Überschrift 3</h3>
<h4>Überschrift 4</h4>
<div style="
background: #EEF2FF;
padding: 12px;
border-radius: 8px;
">
Ich bin eine Box!
</div>
<img
src="foto.jpg"
alt="Mein Foto"
width="160"
/>
alt wird angezeigt wenn Bild fehlt
<p>
Text mit
<span style="color:red">
roter Farbe
</span>
drin.
</p>
Text mit roter Farbe drin.
<button>
Klick mich!
</button>
<button disabled>
Deaktiviert
</button>
<form
action="/senden"
method="POST"
>
<!-- Felder hier -->
<button type="submit">
Absenden
</button>
</form>
<input
type="text"
placeholder="Dein Name"
/>
<input
type="email"
placeholder="E-Mail"
/>
<input type="checkbox" />
Ich stimme zu
<label for="name">
Dein Name:
</label>
<input
id="name"
type="text"
/>
Klick auf das Label → fokussiert das Feld
eigenschaft: wert;
p {
color: #E34C26;
}Hallo Welt!
div {
background-color: #EEF2FF;
}h1 { font-size: 32px; }
p { font-size: 16px; }
sm { font-size: 12px; }/* 100–900 */
p { font-weight: 400; }
b { font-weight: 700; }
h { font-weight: 900; }div {
margin: 16px;
/* oder getrennt: */
margin-top: 8px;
margin-bottom: 8px;
}div {
padding: 20px;
/* oder getrennt: */
padding-left: 24px;
padding-right: 24px;
}div {
border: 2px solid #264DE4;
/* ↑Stärke ↑Art ↑Farbe */
}div { border-radius: 8px; }
circle { border-radius: 50%; }
/* 50% = perfekter Kreis */div {
width: 120px;
height: 60px;
/* auch: 50%, 100%, auto */
}.box { display: block; }
.text { display: inline; }
.lay { display: flex; }
.grd { display: grid; }
.gone { display: none; }display: flex
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>Mein Profil</title>
<style>
body {
font-family: Arial, sans-serif;
background: #F0F4FF;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
margin: 0;
}
.karte {
background: white;
border-radius: 16px;
padding: 32px;
width: 320px;
box-shadow: 0 8px 32px
rgba(0, 0, 0, 0.12);
}
.avatar {
width: 68px;
height: 68px;
background: #264DE4;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 30px;
margin-bottom: 16px;
}
h1 {
font-size: 22px;
margin-bottom: 4px;
}
p {
color: #6B7280;
font-size: 14px;
}
.tags {
display: flex;
gap: 6px;
flex-wrap: wrap;
margin: 14px 0;
}
.tag {
background: #EEF2FF;
color: #264DE4;
padding: 3px 10px;
border-radius: 100px;
font-size: 12px;
font-weight: 600;
}
a {
display: inline-block;
background: #264DE4;
color: white;
padding: 10px 22px;
border-radius: 100px;
text-decoration: none;
font-weight: 700;
font-size: 14px;
}
</style>
</head>
<body>
<div class="karte">
<div class="avatar">👨💻</div>
<h1>Max Mustermann</h1>
<p>Frontend Entwickler · Wien</p>
<div class="tags">
<span class="tag">HTML</span>
<span class="tag">CSS</span>
<span class="tag">JavaScript</span>
</div>
<a href="mailto:max@example.com">
Kontakt
</a>
</div>
</body>
</html>