Superscript in HTML is created by enclosing the desired text within the <sup> tag. Superscript is especially useful for presenting mathematical exponents or writing ordinal numbers. The default cascading style sheet settings of the superscript tag for most web browsers are "vertical-align:super" and "font-size:smaller".Know More
Open an HTML compatible text file. Web browsers parse HTML in most file types, such as .html, .php and .asp; however, web browsers may ignore HTML in some file types, such as .txt. Make sure the HTML file contains <html> and <body> tags.
Enclose the desired text between <sup> and </sup> inside the <body></body> area. Make sure the ending tag contains a forward slash and each tag is within the less-than and greater-than brackets. Alternatively, superscript may be created using CSS. To do this, add the attribute style="vertical-align:super;font-size:smaller;" to the desired tag. This method, along with additional CSS, allows the superscript to be further customized The following two examples display "st" and "nd" as superscript: 1<sup>st</sup> option. 2<span style="vertical-align:super;font-size:smaller;">nd</span> option.
Navigate to the desired file, and open it with a web browser. If the HTML superscript text does not display, it may not have been entered correctly. Review the code for errors, and ensure other HTML tags are working properly in your web browser.
Sixteen colors can be referenced by name when using HTML 4.01. The colors are black, silver, gray, white, red, maroon, purple, fuchsia, lime, green, olive, yellow, blue, navy, aqua and teal.Full Answer >
The correct HTML tag for inserting a line break is the term br encased inside of brackets. This tag will insert a single line break, and is supported by the most common browsers, including Internet Explorer, Firefox, Google Chrome, Opera and Safari.Full Answer >
A HyperText MarkUp Language (or HTML) link refers to a hyperlink within a web page that allows a user to navigate to another page or site. A variety of elements on a page can be defined as an HTML link, including text, images or icons.Full Answer >