Showing posts with label character. Show all posts
Showing posts with label character. Show all posts

How to Display Mathematical Symblos, Greek Letters etc in HTML

When i was writing a post, i found it difficult to display some mathematical symbols in the post. At last, i solved it and found that there are easy to remember mnemonics for most of the symbols we come across. Sometimes you can get them only from the 'charmap' (enter charmap in 'Run' in your windows OS). There are escape sequences in HTML which will help you to include mathematical symbols and other Greek letters which are often used as variables or notation for some processes. To display these symbols in a webpage, simple mnemonics or corresponding code can be used. These informations are directly available in HTML4.0 website.


How To Make a Text Subscript or Superscript Using HTML Code

To make a text superscript or subscript in a webpage using HTML language, there are two tags provided in the language.

Superscript

To make a text or some characters superscript, the HTML tag <sup> is used. For example, suppose we have to display 2n+1. To display it, we have to use the following code:

2<sup>n+1</sup>

We have to enclose the characters to be made superscript in <sup> and </sup>

The ASCII Character Set or ASCII Chart

ASCII stands for American Standard Code for Information Interchange. ASCII is a 7 bit alphanumeric code used in computers. Each character is assigned with a positive integer (in between 0 and 127). This is the most popular coding system. The following is the ASCII chart of characters and corresponding integer value.