<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Center tag</title>
</head>
<body>
<center>This is the text display in center</center>
</body>
</html>
Output:-This is the text display in center.
Definition:-
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Center tag</title>
</head>
<body>
<center>This is the text display in center</center>
</body>
</html>
Output:-This is the text display in center.
Definition:-
Center tag
Uses of <center> tag
- This tag is used to center align text.
- This feature has been removed from the Web standards. Though some browsers may still support it. It is in the process of being dropped.
- Instead of this we can use css "text-align" property.
eg) style="text-align:center"
eg) style="text-align:center"
HTML:-Center tag
Reviewed by Network security
on
April 29, 2019
Rating:
No comments: