I have the following HTML structure:
<address>
<div>Address Line One</div>
<div>Address Line Two</div>
<div>Address Line Three</div>
<div>Post Code</div>
</address>
Since the data I have is does not consistently have regions or localities, I cannot reliably use the properties addressRegion
and addressLocality
as defined at schema.org. Instead, I think I should be using the streetAddress
property for everything except the post code.
My question is whether this is valid RDFa markup?:
<address property="address" typeof="PostalAddress">
<div property="streetAddress">Address Line One</div>
<div property="streetAddress">Address Line Two</div>
<div property="streetAddress">Address Line Three</div>
<div property="postalCode">Post Code</div>
</address>
If not, is there another way to do this without changing the structure of the HTML?