Tuesday, 15 September 2015

frontend - The Address Element HTML5 -


How to use HTML 5 specific tags address ? With semantic markup.

This is a

  & lt; Address & gt; New York & lt; Br> +7 (495) 204-27-22 & lt; Br> Paris & lt; Br> +375 (29) 658-77-46 & lt; Br> +375 (17) 292-923-23 & lt; / Address & gt;  

Or is this one?

  & lt; Address & gt; & Lt; P & gt; New York & lt; Br> +7 (495) 204-27-22 & lt; / P & gt; & Lt; P & gt; Paris & lt; Br> +375 (29) 658-77-46 & lt; Br> +375 (17) 292-923-23 & lt; / P & gt;  The first one is valid only in html 4.  

Both of Html5 are valid through this operator Has visited both examples, you can just go there to see if you have something legitimate from now but you have to create a complete document example like this:

  & lt ;; DOCTYPE html public "- //W3C / DTT HTML 4.01 // N" "http://www.w3.org/TR/html4/strict.dtd"><!-- & lt ;! DOCTYPE html & gt; - & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; Test & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Address & gt; New York & lt; Br> +7 (495) 204-27-22 & lt; Br> Paris & lt; Br> +375 (29) 658-77-46 & lt; Br> +375 (17) 292-923-23 & lt; / Address & gt; & Lt; Address & gt; & Lt; P & gt; New York & lt; Br> +7 (495) 204-27-22 & lt; / P & gt; & Lt; P & gt; Paris & lt; Br> +375 (29) 658-77-46 & lt; Br> +375 (17) 292-923-23 & lt; / P & gt; & Lt; / Address & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

Checker will give you easy to read errors that you can fix.


No comments:

Post a Comment