January 2018
Intermediate to advanced
678 pages
20h 16m
English
dfn, abbr, and time ElementsIn this section, we introduce three elements that aren’t used all that often, but they are helpful if you want to manipulate definitions, abbreviations, dates, and times with CSS or JavaScript.
dfn ElementThe dfn element is for a word or expression that is to be defined. It’s not for the definition, but rather the thing that is being defined. So, in the following example, dfn tags surround “tooltip,” the word being defined, and not “is a pop-up …,” which is the definition.
<p> A <dfn>tooltip</dfn> is a pop-up box that provides information about the item that the mouse is hovering over. </p>
You might think that dfn stands for “definition.” It’s certainly possible that dfn stood for “definition” when HTML ...
Read now
Unlock full access