+ 2

Why tag <p algin> doesn't work in html5

When I was study html I have read that tag p algin doesn't work in html5 Can anyone tell me why ??

25th May 2019, 12:28 AM
MuHakimi - avatar
4 Answers
+ 13
Actually it’s <p align=“”> text </p> NOT <p algin> https://code.sololearn.com/WhW66SjoeCNv/?ref=app
25th May 2019, 3:30 AM
+ 7
I'm pretty sure it works. And it's not algin, its align... Example: <p align="center">text</p>
25th May 2019, 12:31 AM
Bodan Talev
Bodan Talev - avatar
+ 3
Well let me tell u the whole thing about it. Paragraph tag <p>: is used to show block of paragraph in the webpage . The align attribute of paragraph tag is used to align it in the webpage Syntx : <p align=" --"> ##content </p> U can set the value of align as center , left or right. The paragraph will be aligned to that side. Thanks
25th May 2019, 2:33 AM
Prince PS[Not_Active]
Prince PS[Not_Active] - avatar
+ 2
Try this ... <p style="text-align:center"> content </p>
25th May 2019, 7:22 AM
Ginfio - avatar