Hi what do u mean by saying "to provide an english translation when the text is most over.
…moused over?coz when i mouse over the text,i cant see the english translation!
But how is span different from id? I can single stuff out with both of them for CSS, but apparently I can also do that with class too. None of these courses, and none of the books i read, ever clearly explain a difference between any of these. What makes each of them unique? In what specific situations would I use them in, and which ones should i absolutely not?
Start by thinking only HTML. Forget styles and go back to the days when all we had to identify page fragments was the anchor element. Oh, you don’t remember those days. Well, it was before
id even existed, and CSS was in its infancy.
The goal of HTML has always been semantics right from the start. A SPAN element had meaning in that it was set apart from other inline text but did not interfere with normal flow. A typical concern of the day was language differeniation so span was used to contain language change. Guess what? The same applies to this day.
<span lang="es" title="good luck">buena suerte</span>
When CSS was introduced we dressed up spans like this with dashed underlines, &c.
Thanks for this answer, definitely so nice to see it with examples !
Very helpful way of explaining this concept, thanks!
Great explanation for the newbie!! Thanks a bunch!!