See also Specification HTML Standard #the-a-element Browser compatibility Loading BCD table
The only edge cases I see it failing with are multiple headings defined in the same HTML block with arbitrary content between them, or headings where the opening and closing tag are defined in separatehtml_blocktokens, both which should very rarely happen. ...
什么是 URL? - MDN Wiki会自动为标题增加相同名字的锚点,也可以通过指定标签的id属性来设置标识符。比如: 指定ID:<span id="diandian">...</span> 标题:==hello lu==生成的HTML是:<h2><span class="mw-headline" id="hello_lu">hello lu</span></h2> ...
The only edge cases I see it failing with are multiple headings defined in the same HTML block with arbitrary content between them, or headings where the opening and closing tag are defined in separate html_block tokens, both which should very rarely happen....
Tag omission None, both the starting and ending tag are mandatory. Permitted parents Any element that accepts flow content, but not other <a> elements. Implicit ARIA role link when href attribute is present, otherwise generic Permitted ARIA roles When href attribute is present: button checkbox...
The <a> HTML element (or anchor element), with its href attribute, creates a hyperlink to web pages, files, email addresses, locations in the same page, or anything else a URL can address.
The <a> HTML element (or anchor element), with its href attribute, creates a hyperlink to web pages, files, email addresses, locations in the same page, or anything else a URL can address. Content within each <a> should indicate the link's destination. If the href attribute is present...