HTML5 Inline Elements Flashcards
Inline Elements
Text level semantic elements
a
Anchor (hypertext link)
abbr
<abbr>ATF</abbr>
Abbreviation
b
Add visual attention (bold)
bdi
Text may be bidirectional (HTML5)
bdo
Force text direction (ltr left to right/rtl right to left)
br
Empty element.<br></br> in XHTML.
Line break
cite
<p>Passages of this article were inspired by <cite>The Complete Manual
of Typography</cite> by James Felici.</p>
Reference to the title of a work (citation)
code
Source code sample
data
data value=”12” Twelve /data
data value=”2011-11-12” Last Saturday /data
The value attribute contains the machine readable data
Machine readable measurable data (WHATWG)
del
del title=”retired” Peter Pan /del
May contain inline and block elements
Deleted text, indicates an edit made to a document
dfn
p dfn Script typefaces /dfn are based on handwriting. /p
First or defining instance of a term
em
Emphasized text. Used to draw attention to part of a sentence changing the meaning.
i
Alternative voice or mood from the surrounding sentence. Foreign word or technical term.
ins
ins Pippi Longstockings /ins
May contain inline and block elements
Text that has been added. Indicates an edit to the document.
kbd
Text entered by a user (technical documents)
mark
Contextually relevant text. Text that may benefit from being highlighted. (HTML5)
qt
Short, inline, quotation.
S
Incorrect text.
samp
Output from a program.
small
Addendum or side note to main text.
span
Generic phrase content
strong
Content of high importance.
sub
p H sub 2 /sub 0 /p
Subscript.
sup
p E=MC sup 2 /sup /p
Superscript.
time
time datetime=”2012-09-01T 20:00-05:00”
pubdate September 1, 2012, 8pm EST /time
The datetime attribute contains the machine readable info in YYYY-MM-DDThh:mm:ss:mili+-HH:MM
pubdate attribute is a WHATWG standard, not in HTML5 yet
Machine readable time format (HTML5).
u
Formal name or misspelled word.
var
Variable or parameter name in a technical document.
wbr
Indicates where a word should be split if necessary.