Id | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Id

Hello To what corresponds id Thank https://code.sololearn.com/WI2l5SVUtHYO/?ref=app

27th Nov 2018, 8:53 PM
Axelle
5 Answers
+ 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)
27th Nov 2018, 9:28 PM
Uni
Uni - avatar
+ 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/
27th Nov 2018, 9:07 PM
Uni
Uni - avatar
+ 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.
27th Nov 2018, 9:55 PM
Janning⭐
Janning⭐ - avatar
+ 1
i understand thank
28th Nov 2018, 7:05 AM
Axelle
0
ok i see just html now i don’t see java i go to see it later thanks
27th Nov 2018, 9:26 PM
Axelle