4 ms·
> sometimes I just want to design something basic without having to context switch to CSS. I want italic, I use the <i> tag. Just use the <em> tag.
by krainboltgreene 4y ago
> sometimes I just want to design something basic without having to context switch to CSS. I want italic, I use the <i> tag.
Just use the <em> tag.
- marssaxman 4y agobut... what if the browser chooses to render emphasis in some fashion other than italic? How then could I force my design opinions on the reader, despite the contrary configuration of their user-agent? Surely we can't allow the end-user to control their experience when it's the designer's intention which really matters.
- klodolph 4y agoWhat if I want text that’s italic but not emphasized?
- a9h74j 4y agoYes, e.g. what if you are quoting something with italics in the original text? For older texts in English, italics might easily indicate a word or phrase in a non-English language. Showing that with semantic "emphasis" might convey the wrong impression -- e.g. without a note such as "emphasis added". The OP addresses "idiom in another language" as one case, but if it is within a scholarly quotation, can one change the typography to a different convention?
- paulmooreparks 4y agoThen there's the matter of languages such as Japanese that use a different set of characters (katakana) both to indicate emphasis and to mark foreign loan-words. Would katakana characters still be enclosed in an <i> element? Would styling be modified accordingly?
- naniwaduni 4y agoPerhaps you could add emphasis dots (https://en.wikipedia.org/wiki/Emphasis_mark https://en.wikipedia.org/wiki/Emphasis_mark)!
- Someone 4y agoUse italic characters (https://unicode-search.net/unicode-namesearch.pl?term=ITALIC https://unicode-search.net/unicode-namesearch.pl?term=ITALIC) ;-)