+ 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?
6 Answers
+ 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!
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?
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.
0
Thanks
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...
0
thanks