The <center> element

The center element is used to center content (e.g. text, images, horizontal rules)

snippet
<html>
<head></head>
<body>
Normal horizontal rule
<hr width="90%">

center aligned horizontal rule
<center>
<hr width="50%">
</center>
<body>
<html>

Output
Normal horizontal rule
center aligned horizontal rule

Related Tutorial
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 https://twitter.com/RookieNerdTutor https://plus.google.com/b/117136517396468545840 #
Contents +