XML technologies / HTML & XHTML / Alphabetical list of HTML and XHTML elements / center

(Excerpt from "HTML & XHTML ─ kurz & gut" by Jennifer Niederst Robbins)

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

   

center

HTML 4.01

<center> ... </center>

Centers its content horizontally within the available page width or enclosing element. Its use is strongly discouraged. Use stylesheets to center elements instead.

Notes

Deprecated in HTML 4.01/XHTML. Not available in HTML 5.

Start/end tag

Required/required

Attributes

Core, internationalization, events

Example

<center>
  <h1>Einleitung</h1>
  <p>Es war einmal ein veraltetes HTML-Tag mit dem Namen "center"...</p>
</center>

 

> back to the alphabetical list of elements

   

 

 

 

back to top