课程: HTML Essential Training (2020)
今天就学习课程吧!
今天就开通帐号,24,600 门业界名师课程任您挑!
Superscripts, subscripts, and small text
- Let's talk about another situation where you need to mark up certain bits of content as having a different meaning than the rest. Subscripts, superscripts, and small text. Subscripts are characters that are set below the normal baseline for text. Did you ever take a chemistry class and learn how to write the formula for water, H2O, where the two is lowered down than the H and the O? The two character is typeset as a subscript. It's set lower down. Superscripts are characters that are set above the normal baseline of text. Mathematical formulas have lots of superscripts, like five squared. Or in footnotes, the little marker for a footnote is a superscript. To mark up subscripts and superscripts, we'll use the sub and sup elements. H2O looks wrong like this. I'll wrap the two in its sub-element, and now it drops down below the baseline and gets a little smaller. Next, let's format this number for the footnote.…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。