Introduction to the application of HTML tags superscript sup and subscript sub

Introduction to the application of HTML tags superscript sup and subscript sub
HTML tag: superscript

In HTML, the <sup> tag defines superscript text. For example, if you want to display 2 oxygen ions, you need to write it as 2O<sup>2-</sup> in the HTML code. 2O2-

The content contained in the <sup> tag and its closing tag </sup> will be displayed at half the character height of the current text flow, but with the same font and size as the text in the current text flow.

Tip: This tag is useful for adding footnotes to documents and for indicating exponential values ​​in equations. If used in conjunction with the <a> tag, it can create nice hyperlinked footnotes.

HTML tag: subscript

In HTML, the <SUB> tag defines subscript text. For example: if you want to display: H20, where 2 is the subscript, you need to write it as: H<SUB>2</SUB>0 in the HTML code. H2O

The content contained in the <SUB> tag and its closing tag </SUB> will be displayed at half the character height of the current text flow, but with the same font and size as the text in the current text flow.

<<:  Solve the problem that line-height=height element height but text is not vertically centered

>>:  Vue uses calculated properties to complete the production of dynamic sliders

Recommend

Solution to the paging error problem of MySQL one-to-many association query

The query data in the xml price inquiry contains ...

JavaScript adds prototype method implementation for built-in objects

The order in which objects call methods: If the m...

Implementation example of nginx access control

About Nginx, a high-performance, lightweight web ...

Detailed explanation of how to use the Vue date time picker component

This article example shares the specific code of ...

CSS easily implements fixed-ratio block-level containers

When designing H5 layout, you will usually encoun...

MySQL recursion problem

MySQL itself does not support recursive syntax, b...

Vue custom v-has instruction, steps for button permission judgment

Table of contents Application Scenario Simply put...

Use of Linux stat command

1. Command Introduction The stat command is used ...

Tips for importing csv, excel or sql files into MySQL

1. Import csv file Use the following command: 1.m...

Analyze several common solutions to MySQL exceptions

Table of contents Preface 1. The database name or...

Implementation of postcss-pxtorem mobile adaptation

Execute the command to install the plugin postcss...

The principle and application of ES6 deconstruction assignment

Table of contents Array destructuring assignment ...

Use iptables and firewalld tools to manage Linux firewall connection rules

Firewall A firewall is a set of rules. When a pac...