0

Syntax of open- tag with attributes

why we don't use in open tag the / symbol? e.x. <p align="center" /> instead of <p align="center"> ?

24th Apr 2017, 6:16 PM
Aristi Fotiou
Aristi Fotiou - avatar
2 Réponses
+ 8
HTML is quite tollerant, it accept even mistakes, but the rigth syntax is with / at the beginning of the closing tag for paragraphs.
24th Apr 2017, 6:39 PM
Emore Anzolin
Emore Anzolin - avatar
+ 7
<p align="center">ciao</p>
24th Apr 2017, 6:33 PM
Emore Anzolin
Emore Anzolin - avatar