Replies: 2 comments 5 replies
-
To relate the link (url) to the targeted content you also have to specify what that content is. Meaning your examples need a bit more markup for what you want to express:
You should take note that properties have intended types (and their subtypes) they are supposed to be used with, as mentioned on their pages:
|
Beta Was this translation helpful? Give feedback.
-
I'd think you need itemscope attributes as well, and itemprop to indicate that the href attribute value is a property of the item. So maybe like <span itemscope itemtype="https://schema.org/WebPage">
<a href="https://www.seizurerobots.com/" itemprop="url">
Killer Japanese Seizure Robots
<meta itemprop="accessibilityHazard" content="flashing">
</a>
</span> i.e. there is an item that has that URL and has an accessibility hazard. This needs the I also put in an Try it at https://validator.schema.org/. |
Beta Was this translation helpful? Give feedback.
-
Following this stackoverflow question, i am interested in marking outgoing links (anchor elements) in an HTML page to specify hazards or other content warnings. My understanding is to do e.g.:
Is this the intended way?
This assumes that the added property is understood to relate to the linked content and not to the link element itself (although technically the link element could itself be flashing or contain explicit text)
Beta Was this translation helpful? Give feedback.
All reactions