+ 1

Do you know why an align attribute of P is not supported in HTML 5 ?

<p align=“center"></p>

15th Feb 2022, 4:24 PM
Yonatan Getachew
Yonatan Getachew - avatar
7 Antworten
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.
17th Feb 2022, 9:14 AM
Viktor Tsybenko
+ 1
Are you sure about that? I am sorry I can't reply to your text.😊
15th Feb 2022, 4:34 PM
Yonatan Getachew
Yonatan Getachew - avatar
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.
15th Feb 2022, 5:06 PM
Yonatan Getachew
Yonatan Getachew - avatar
0
Viktor Tsybenko Thank you very much!
17th Feb 2022, 5:08 PM
Yonatan Getachew
Yonatan Getachew - avatar