+ 7

What is the use class="selected"in html

28th Jun 2017, 3:23 AM
Akash Kumar
Akash Kumar - avatar
5 Antworten
+ 7
You can use the classes to apply CSS to a given element/elements. You can also use a class to select elements with Js.
28th Jun 2017, 3:29 AM
CHMD
CHMD - avatar
+ 3
There is no effect if you just put class="selected"in html file only. You need to define "selected" class in style tag or css file.
28th Jun 2017, 3:32 AM
Calviղ
Calviղ - avatar
+ 1
class="selected" is used for the next type of coding you'll learn after completing the HTML Course (The CSS one as stated above), which is why we don't see any difference yet while only using HTML.
20th Aug 2019, 12:59 PM
Christian Staff Johansen
Christian Staff Johansen - avatar
0
What is the use class="selected"in html
13th Sep 2018, 5:27 AM
Ashish Hegade
Ashish Hegade - avatar
0
I still couldn't understand it. Help any one please.
18th Oct 2018, 3:18 PM
Ubaidullah Anwar 🇵🇰
Ubaidullah Anwar 🇵🇰 - avatar