+ 1

Pls I need help understanding the Id, class and tittle attributes what do they actually mean? what are their functions? when do we use them?

12th Jul 2016, 5:16 PM
Denewbie
Denewbie - avatar
6 odpowiedzi
+ 3
ID: used to IDentify one element (good for styling a single element); Class: used to CLASSify a group of elements (good for styling an element with elements inside it, ex. div, article) Title: used inside the head tag to name the page(not shown on-screen) hope this helps!
13th Jul 2016, 12:32 AM
Hannah T
Hannah T - avatar
0
thanks but I saw a title attribute inside the body tag which goes like this <h3 title="hello html">titled heading tag </h3> why is that so?
13th Jul 2016, 7:50 AM
Denewbie
Denewbie - avatar
0
The attribute title in a tag, for example, <h3 title="some text">Your text here</h3> used for displaying a tooltip when we hover mouse pointer on the h3 heading text. On mobile device sometimes it doesn't work. You can try to type the above code in any text editor on desktop and see the result in web browser. Then try to point over on the text.
13th Jul 2016, 1:05 PM
Azwan Abdullah
Azwan Abdullah - avatar
0
Thanks
13th Jul 2016, 1:13 PM
Denewbie
Denewbie - avatar
0
ID is too helping to come to certain location in the website. u just adding at the end of the URL: #the_name_of_the_id. like in Wikipedia...
15th Jul 2016, 8:56 AM
Shalom Ori Danino
Shalom Ori Danino - avatar
0
thanks
15th Jul 2016, 9:23 AM
Denewbie
Denewbie - avatar