How to justify text in html css
- how justify text in html
- how align text in html
- how center text in html
- how to justify text in html code
P align=justify
Text-justify: inter-word;...
Which HTML Attribute is used to justify the content ?
The HTML attribute is used to justify-content is the align attribute. The align attribute of <p> tag is used to justify the text on a web page.
This can be done by assigning the value to the aligned attribute as justified. The justification of the text aligns the text in such a way that it occupies equal horizontal space from both the left and right margins of a web page improving its appearance.
- This attribute is applicable to various HTML elements, such as , , , etc.
- This align attribute determines the horizontal alignment of the content within its container.
- This tag is outdated in HTML5.
Note: The align attribute is deprecated in HTML5, and styles should be used via CSS for better practices.
Syntax:
<p align="justify">Example 1:
Output:
Example 2:
Output:
In this way align attribute is used to justify the content on the web page.
- how to justify text in html without css
- how to justify text in html using notepad