write an HTML code to show the working of various paragraph alignment tags
Answers
Answer: There are four types of paragraph alignment tags:
Explanation: Value Description
left Left-align text
right Right-align text
center Center-align text
justify Stretches the lines so that each line has equal width
Syntax
<p align="left/right/center/justify">
Example
A right-aligned paragraph:
<p align="right">This is some text in a paragraph.</p>
Following are the HTML code is given below
Explanation:
<html>
<head>
<title>Heading tags</title>
</head>
<p align="left"> hello </p>
<p align="right"> standard </p>
<p align="justify"> deviation </p>
</body>
<html>
We used <p> tag for the paragraph after that we used three alignment in the paragraph tag .
Left:Shift the text to the left position of the web page.
Right:Shift the text to the right position of the web page.
justify:Shift the text to the default position of the web page.
Output:
Following are the attachment of the output
Learn More:
- brainly.in/question/5874439