The text align exactly in centre of the both left and right margins
___________
Answers
Answer:
hii mate
here is your answer
Explanation:
METHOD 1 :
Use CSS property text-align: center;
HERE IS YOUR CODE
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div class="container">
<p style="text-align: center;">align a text in the center of a webpage</p>
<p style="text-align: left;">align a text in the left of a webpage</p>
<p style="text-align: right;">align a text in the right of a webpage</p>
</div>
</body>
</html>
- with the CSS property text-align for the center, left and right alignment
METHOD 2 :
YOU CAN USE CENTER TAG TO ALIGN A TEXT, IMAGE, TABLE ETC IN CENTER
HERE IS YOUR CODE
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div class="container">
<center><p>align a text in the center of a webpage</p></center>
</div>
</body>
</html>
HOPE IT HELPS YOU
MARK IT AS BRAINLIEST