COMPUTER LECTURES

HOME About us HTML ONLINE CODE EDITOR CONTACT US
HTML | CENTER
This tag is used to keep text, images in centered position.

SYNTAX

OPENING TAG CLOSING TAG
<center> </center>

Center Tag in HTML

<center>This statement will be centered here..</center>

Example : center.html

<!DOCTYPE html>
<html>
<title>Computer lectures | Center</title>
<body>
<center>The content on the Computerlectures will be centered.</center>
</body>
</html>

The output on the web broswer

center