When making a Web page with Dreamweaver, you sometimes need to enter something in the mathematical power form, such as the equation: y=2x3. The number in the upper-right corner of the equation should be called "superscript" when it is typesetting, or "subscript" if the number is in the lower-right corner of X.
The "superscript" corresponding HTML tag is sup ("subscript" corresponds to a sub label), and if you are proficient with HTML you can enter HTML code directly in Dreamweaver "Code View": Y=2x<sup>3</sup> It can also be done using a Dreamweaver visualization operation. For example, to complete this equation: y=2x3, you can enter the y=2x, then position the cursor after X, click Insert--"label", and the view automatically switches to Split view, and the tag selector appears. In the tag Selector, we select HTML tags--"formatting and layout"--"sup", as shown in the following figure:
After you make the above selections, click the Insert button in the tag selector and enter the superscript value 3 in the Contents box of the dialog box that appears, as shown in the following figure:
OK, and then click the Close button in the tag Selector to turn it off, and Dreamweaver inserts the superscript value entered into the location you just specified.
The method of inserting subscript is similar to this.