Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>OK, the first thing to note is that <del><code>&lt;i&gt;</code> has been deprecated, and shouldn't be used</del> <code>&lt;i&gt;</code> has not been deprecated, but I still do not recommend using it—see the comments for details. This is because it goes entirely against keeping presentation in the presentation layer, which you've pointed out. Similarly, <code>&lt;span class="italic"&gt;</code> seems to break the mold too.</p> <p>So now we have two real ways of doing things: <code>&lt;em&gt;</code> and <code>&lt;span class="footnote"&gt;</code>. Remember that <code>em</code> stands for <em>emphasis</em>. When you wish to apply emphasis to a word, phrase or sentence, stick it in <code>&lt;em&gt;</code> tags regardless of whether you want italics or not. If you want to change the styling in some other way, use CSS: <code>em { font-weight: bold; font-style: normal; }</code>. Of course, you can also apply a class to the <code>&lt;em&gt;</code> tag: if you decide you want certain emphasised phrases to show up in red, give them a class and add it to the CSS:</p> <pre><code>Fancy some &lt;em class="special"&gt;shiny&lt;/em&gt; text? em { font-weight: bold; font-style: normal; } em.special { color: red; } </code></pre> <p>If you're applying italics for some other reason, go with the other method and give the section a class. That way, you can change its styling whenever you want without adjusting the HTML. In your example, footnotes should not be emphasised—in fact, they should be de-emphasised, as the point of a footnote is to show unimportant but interesting or useful information. In this case, you're much better off applying a class to the footnote and making it look like one in the presentation layer—the CSS.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload