Why tag <p algin> doesn't work in html5 | Sololearn: Learn to code for FREE!


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 ??

5/25/2019 12:28:03 AM


4 Answers

New Answer


Actually it’s <p align=“”> text </p> NOT <p algin> https://code.sololearn.com/WhW66SjoeCNv/?ref=app


I'm pretty sure it works. And it's not algin, its align... Example: <p align="center">text</p>


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


Try this ... <p style="text-align:center"> content </p>