0
What is html I'd and class ?
Pls help me. And full explain
4 odpowiedzi
+ 2
Please take a look at the forum rules:
https://www.sololearn.com/Content-Creation-Guidelines/
https://www.sololearn.com/Discuss/1316935/?ref=app
Please always tag the language you're asking about.
https://code.sololearn.com/W3uiji9X28C1/?ref=app
This might help:
https://www.wikihow.com/Search-the-Internet
+ 5
The HTML class attribute specifies one or more class names for an element
Classes are used by CSS and JavaScript to select and access specific elements
The class attribute can be used on any HTML element
The class name is case sensitive
Different HTML elements can point to the same class name
JavaScript can access elements with a specific class name with the getElementsByClassName() method
The id attribute is used to specify a unique id for an HTML element
The value of the id attribute must be unique within the HTML document
The id attribute is used by CSS and JavaScript to style/select a specific element
The value of the id attribute is case sensitive
The id attribute is also used to create HTML bookmarks
JavaScript can access an element with a specific id with the getElementById() method
(Quoted from W3school)
BTW W3schools has a lot of ressources about HTML. Please look at it.