can you assign justified alignment to a paragraph in HTML
RIYAZ99:
answer
Answers
Answered by
11
Output.......
This is a text
This is also a text
This is a text
This is also a text
Attachments:
Answered by
19
Yes, you can align justified alignment paragraph in HTML.
Ex: HTML4
<html>
<body>
<p align="justify">Welcome to html demo class</p>
</body>
</html>
Note: HTML align attribute is not supported in HTML5. Try with CSS.
Ex:CSS3
<html>
<style>
p
{
text-align:justify;
}
</style>
<body>
<p>Welcome to html demo class</p>
</body>
</html>
Hope this helps!
Ex: HTML4
<html>
<body>
<p align="justify">Welcome to html demo class</p>
</body>
</html>
Note: HTML align attribute is not supported in HTML5. Try with CSS.
Ex:CSS3
<html>
<style>
p
{
text-align:justify;
}
</style>
<body>
<p>Welcome to html demo class</p>
</body>
</html>
Hope this helps!
Similar questions