@brasspetals
Posted
Hi, Vanza! Another excellent job! š
To your questions:
- I think the alt text is fine, especially since the all the location information is in the next section.
- When it comes to the HTML on the location page, I think using
p
tags, as you've done here is just fine. You could change the.area__wrapper
div to anaddress
element for slight semantic improvement, but I'm not sure it's necessary.
Hope your exams go/went well! Looking forward to your next solution!
Marked as helpful
@vanzasetia
Posted
@brasspetals Hello, Anna! It's great to see your comment again on my solution. Thank you for answering my questions! š
Regarding the address
element, the spec said the following:
The address
element must not be used to represent arbitrary addresses (e.g. postal addresses), unless those addresses are in fact the relevant contact information. (The p
element is the appropriate element for marking up postal addresses in general.)
So, based on the information, I should only use address
for the contact person such as email and phone number. However, if the location information is related to the contact person, then it is okay to use address
.
For example, if the location is related to the contact person.
<address>
<p>Contact John</p>
<a href="mailto:[email protected]">[email protected]</a>
<p>London, United Kingdom</p>
</address>
In this case, the location is not related to any contact person. So, I guess using p
is fine.
@brasspetals
Posted
@vanzasetia Ack! I suppose the few times I've used it has also been in conjunction with some other contact info like a telephone number. Yeah, according to the spec, it wouldn't work here. š So much for being helpful! š