0
Id
Hello To what corresponds id Thank https://code.sololearn.com/WI2l5SVUtHYO/?ref=app
5 Réponses
+ 13
Ok.
And this is javascript and not java 😉 I know it's not HTML but the reason why I show this to you is because they are strongly related (in this case we can say that the ID is whether for the Javascript part, whether for the CSS one)
+ 8
Id is actually something to refer to a peculiar element of the DOM. You might want to check the HTML and the Javascript tutorial ;)
https://www.sololearn.com/learn/JavaScript/2753/
+ 2
more narrowly focusing on id in HTML:
- id is a global attribute, which means it can be attached to any element
- it can have very specific effects or additional functionality in certain cases (example: creating a "jumping" effect when used with an anchor element somewhere else in the same page/file to target this element here)
in CSS:
- id is a selector that is used to apply a specific ruleset to a particular element or elements related to that element (when used with a CSS combinator)
- id has a higher specificity, so it's used to control which styles override other styles in the cascade
Hope this helps supplement the JS materials a bit.
+ 1
i understand thank
0
ok i see just html now i don’t see java i go to see it later
thanks