+ 1
Do you know why an align attribute of P is not supported in HTML 5 ?
<p align=“center"></p>
7 Réponses
0
<P> is a block element. It means it gets all the available width (like width="100%") and its height depends on inner content.
"Align" property breaks "blockiness" of paragraph element.
And it's a good habit to use CSS file to stylize elements. It helps:
a) to maintain HTML code clean and easy to read;
b) to alter CSS properties easily when it's needed
P.S. "Align" as property was introduced in HTML version 2 as I remember and CSS was a dream those days. Now we have more powerful and controllable tools.
+ 1
Are you sure about that?
I am sorry I can't reply to your text.😊
0
David Dolejší Thanks, but I read “The align attribute of<p> is not supported in HTML 5 ” in attributes sub topic and google you can check there.
But it is supported thanks for your answer.
0
Viktor Tsybenko Thank you very much!