- From: Peter Wootton <peter.wootton@bathroomtakeaway.co.uk>
- Date: Thu, 7 Nov 2019 11:12:56 +0000
- To: "Michael[tm] Smith" <mike@w3.org>
- CC: "public-evangelist@w3.org" <public-evangelist@w3.org>
- Message-ID: <06bc981f-5be9-4b40-83d3-689c658b8695@bathroomtakeaway.co.uk>
ok, thanks for getting back to me, Michael. I suspect that you are indeed correct; although that way around does seem somewhat counter intuitive - as: inline elements should not contain block elements as per the HTML spec. I recall reading somewhere that it may not play along nicely with Microdata. I'm pretty sure I had a guide lying that stated this. However, i do have a feeling it may be out of date; I'll see if I can dig it out though. - Peter On 07/11/2019 06:07, Michael[tm] Smith wrote: Peter Wootton <peter.wootton@bathroomtakeaway.co.uk><mailto:peter.wootton@bathroomtakeaway.co.uk>, 2019-11-06 15:58 +0000: Archived-At: <https://www.w3.org/mid/b3806292-c17b-9e33-010a-d0e059b1bab9@bathroomtakeaway.co.uk><https://www.w3.org/mid/b3806292-c17b-9e33-010a-d0e059b1bab9@bathroomtakeaway.co.uk> I wanted to bring your consideration that I consider that part of the QA tips found here http://www.w3.org/QA/Tips/good-titles could be both wrong and misleading. I believe that having links within <h1> tags is semantically incorrect. Did I miss something or is that indeed the case. Can you give further clarification on this? The HTML spec doesn’t prohibit links within h1 elements: https://html.spec.whatwg.org/multipage/sections.html#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements ...and the W3C HTML checker (validator) at https://validator.w3.org/nu/ doesn’t emit any errors or warnings for headings that contain links. So as far as the authoritative/normative requirements in the HTML spec itself, and the behavior of the W3C HTML checker, neither the spec nor the checker considers links within headings to be semantically incorrect. That said, I can imagine it might be possible that some other best-practice guides may recommend against using links in headings. If you have any best-practices guides you could point us to which make such a recommendation, then I think somebody could look into updating the http://www.w3.org/QA/Tips/good-titles article to try to make sure it aligns with the existing best-practice consensus. –Mike -- Kind regards, Peter Wootton Outreach Manager Phone: +44(0)333 305 8200 Email: peter.wootton@bathroomtakeaway.co.uk<mailto:peter.wootton@bathroomtakeaway.co.uk> Web: www.bathroomtakeaway.com<http://bit.ly/2JWf9jy>
Received on Thursday, 7 November 2019 11:13:03 UTC