I learn html on the w3 school website and I am in the "html link" chapter. I donβt understand why they suggest using the id attribute in the link tag instead of the title tag.
Example:
<p> <a href="#C4">See also Chapter 4.</a> </p> <h2><a id="C4">Chapter 4</a></h2> <p>This chapter explains ba bla bla</p>
My attempt:
<p> <a href="#C4">See also Chapter 4.</a> </p> <h2 id="C4">Chapter 4</h2> <p>This chapter explains ba bla bla</p>
Both work the same when I try them, but my attempt will take less time. Something is wrong in my attempt that I do not understand.
Before it was possible to associate it with any element id, you could reference the elements <a>on them name.
id
<a>
name
id name . , Netscape 4 ( , id, , , - ).
W3Schools ( ).
id ( (<section> ?), ).
<section>
, - , , , , a name. , , , a tag .
a
, .
W3Shools, , , , , . - W3C, -.
, head * er * head * ing *; , . .
W3Schools ( . http://www.w3fools.com/).
id , w3 HTML4.01 .
, () W3Schools, :
-, MDN, Mozilla. , Firefox, , , . , , , , , , <a>, name:
: HTML5, .
MDN , W3Schools.
-, WebPlatform.org, , W3Schools, W3C, , , , .
HTML-, :
id <a>, .[...], , ,[...], .
Source: https://habr.com/ru/post/1534168/More articles:How to add loaded values ββof cluster nodes (tree) in NEWICK format in R - rCSS for the jQuery plugin for 'Slick' pencils that do not affect my DOM, even though it is loaded - jqueryHow can you sort the Org clock table? - emacsPylint - How to Fix ID: Possibly Non-Member Errors? - pythonDetect if browser supports vbscript? - javascriptClang error while compiling in CodeRunner - clangAndroid library - how to build a jar of dependencies using gradle? - androidHow to use Prop from UTT to Agda - dependent-typeNetbeans tells me to remove the null comparison, but that breaks my code - javaHow do I addRules for the declarativeContent API with chrome.dart - dartAll Articles