在 HTML 中顯示下標文字
使用 <sub> 標籤建立下標文字。HTML <sub> 標籤用於定義下標文字,例如,
x<sub>1</sub>+ x<sub>2</sub>
示例
你可以嘗試執行以下程式碼以在 HTML 中顯示下標文字 −
<!DOCTYPE html> <html> <head> <title>HTML sub Tag</title> </head> <body> Value of x<sub>1</sub> + x<sub>2</sub> = 17 </body> </html>
廣告