Index

<sub> and <sup> tags can be treated as variants

This html code

<p>NO₂ Aₙ Mᵐᵉ Bib&#xf70d;&#xa7f3;ᵘᵉ Nᵃˡᵉ 1ᵉʳ 2&#xf70d;ᵐᵉ 1ˢᵗ 2ⁿᵈ 3ʳᵈ</p>

gives this result

NO₂ Aₙ Mᵐᵉ Bibꟳᵘᵉ Nᵃˡᵉ 1ᵉʳ 2ᵐᵉ 1ˢᵗ 2ⁿᵈ 3ʳᵈ 4ᵗʰ


Using the font-feature-settings CSS property as follows:

sub {
display: inline;
vertical-align: baseline;
font-size: 100%;
line-height: 100%;
font-feature-settings: "subs" on;
-ms-font-feature-settings: "subs" on;
-moz-font-feature-settings: "subs" on;
-o-font-feature-settings: "subs" on;
-webkit-font-feature-settings: "subs" on;
}
sup {
display: inline;
vertical-align: baseline;
font-size: 100%;
line-height: 100%;
font-feature-settings: "sups" on;
-moz-font-feature-settings: "sups" on;
-ms-font-feature-settings: "sups" on;
-o-font-feature-settings: "sups" on;
-webkit-font-feature-settings: "sups" on;
}


this html code

<p>NO<sub>2</sub> A<sub>n</sub> M<sup>me</sup> Bib<sup>èque</sup> N<sup>ale</sup> 1<sup>er</sup> 2<sup>ème</sup> 1<sup>st</sup> 2<sup>nd</sup> 3<sup>rd</sup> 4<sup>th</sup></p>

should give the same result

NO2 An Mme Bibèque Nale 1er 2ème 1st 2nd 3rd 4th