Wie kriege ich in HTML einen Text in die Mitte?

1 Antwort

Mit Hilfe von CSS:

<!DOCTYPE html>
<html>
<head>
  <style>
    body {
      text-align: center;
    }
  </style>
</head>
<body>
  <p>Hier ist der mittig ausgerichtete Text.</p>
</body>
</html>


Woher ich das weiß:Studium / Ausbildung – Hochschulabschluss in Informatik (MSc)