HTML Flashcards
Bold the text AND/OR semantically show strong words
3 ways
What’s the difference?
&lstrong> &l/strong> &lb> &l/b> b is just bold Strong also has semantic meaning mostly for screen readers It's not always thickened.
fontWeight=”bold”
Italicize the text AND/OR semantically show emphasis
3 ways
What’s the difference?
&li> &l/i> &lem> &l/em> i is just italicize emphasis also has semantic meaning mostly for screen readers It's not always italicized. But best to use CSS fontStyle="italic"
Highlight text
&lmark> &l/mark>
Smaller Text
&lsmall> &l/small>
Line through text AND/OR semantically show deleted text
3 ways
What’s the difference?
&del> &l/del>
&ls> &l/s>
h2 {
text-decoration: line-through;
}
&lsdel> has semantic meaning as deleted text
It’s not always crossed.
Internet comment says to use CSS line through
Underline AND/OR show inserted text
3 ways
what’s the difference?
&lu> &l/u>
&lins> &l/ins>
textDecoration=”underline”
ins has semantic meaning as inserted text
It’s not always underlined.
Subscript text
&lsub> &l/sub>
SuperScript text
&lsup> &l/sup>