frontend - The Address Element HTML5 -
how use html 5 specific tag address correctly? semantic markup.
this one
<address> new york<br> +7 (495) 204-27-22<br> paris<br> +375 (29) 658-77-46<br> +375 (17) 292-91-23 </address>
or one?
<address> <p> new york<br> +7 (495) 204-27-22 </p> <p> paris<br> +375 (29) 658-77-46<br> +375 (17) 292-91-23 </p>
in html 4 first 1 valid. in html5 both valid. ran both examples through validator http://validator.w3.org/check can go there check if have valid on have make full document example this:
<!doctype html public "-//w3c//dtd html 4.01//en" "http://www.w3.org/tr/html4/strict.dtd"><!-- <!doctype html> --> <html> <head> <title> test </title> </head> <body> <address> new york<br> +7 (495) 204-27-22<br> paris<br> +375 (29) 658-77-46<br> +375 (17) 292-91-23 </address> <address> <p> new york<br> +7 (495) 204-27-22 </p> <p> paris<br> +375 (29) 658-77-46<br> +375 (17) 292-91-23 </p> </address> </body> </html>
the checker give easy read errors can fix.
Comments
Post a Comment