- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
Advertisements
'; var adpushup = adpushup || {}; adpushup.que = adpushup.que || []; adpushup.que.push(function() { adpushup.triggerAd(ad_id); });
Web Design for Beginners: Build Websites in HTML & CSS 2022
68 Lectures 8 hours
Complete HTML/CSS Course 2022
Featured
47 Lectures 12.5 hours
There are 27 = 128 printable characters which can be represented by different 7-BIT ASCII codes. Another set of characters are not for HTML representation but they are devised to control hardware.
Following tables list down all the 7-BIT ASCII codes and their equivalent HTML Entity Codes.
If you want to see equivalent HEX, OCT and extended set of ASCII codes then check next chapter.
7-BIT Printable ASCII Characters
ASCII Characters | Description | HTML Entity Codes |
---|---|---|
space |   | |
! | exclamation mark | ! |
" | quotation mark | " |
# | number sign | # |
$ | dollar sign | $ |
% | percent sign | % |
& | ampersand | & |
' | apostrophe | ' |
( | left parenthesis | ( |
) | right parenthesis | ) |
* | asterisk | * |
+ | plus sign | + |
, | comma | , |
- | hyphen | - |
. | period | . |
/ | slash | / |
0 | digit 0 | 0 |
1 | digit 1 | 1 |
2 | digit 2 | 2 |
3 | digit 3 | 3 |
4 | digit 4 | 4 |
5 | digit 5 | 5 |
6 | digit 6 | 6 |
7 | digit 7 | 7 |
8 | digit 8 | 8 |
9 | digit 9 | 9 |
: | colon | : |
; | semicolon | ; |
< | less-than | < |
= | equals-to | = |
> | greater-than | > |
? | question mark | ? |
@ | at sign | @ |
A | uppercase A | A |
B | uppercase B | B |
C | uppercase C | C |
D | uppercase D | D |
E | uppercase E | E |
F | uppercase F | F |
G | uppercase G | G |
H | uppercase H | H |
I | uppercase I | I |
J | uppercase J | J |
K | uppercase K | K |
L | uppercase L | L |
M | uppercase M | M |
N | uppercase N | N |
O | uppercase O | O |
P | uppercase P | P |
Q | uppercase Q | Q |
R | uppercase R | R |
S | uppercase S | S |
T | uppercase T | T |
U | uppercase U | U |
V | uppercase V | V |
W | uppercase W | W |
X | uppercase X | X |
Y | uppercase Y | Y |
Z | uppercase Z | Z |
[ | left square bracket | [ |
\ | backslash | \ |
] | right square bracket | ] |
^ | caret | ^ |
_ | underscore | _ |
` | grave accent | ` |
a | lowercase a | a |
b | lowercase b | b |
c | lowercase c | c |
d | lowercase d | d |
e | lowercase e | e |
f | lowercase f | f |
g | lowercase g | g |
h | lowercase h | h |
i | lowercase i | i |
j | lowercase j | j |
k | lowercase k | k |
l | lowercase l | l |
m | lowercase m | m |
n | lowercase n | n |
o | lowercase o | o |
p | lowercase p | p |
q | lowercase q | q |
r | lowercase r | r |
s | lowercase s | s |
t | lowercase t | t |
u | lowercase u | u |
v | lowercase v | v |
w | lowercase w | w |
x | lowercase x | x |
y | lowercase y | y |
z | lowercase z | z |
{ | left curly brace | { |
| | vertical bar | | |
} | right curly brace | } |
~ | tilde | ~ |
7-BIT ASCII Device Control Characters
ASCII Characters | Description | HTML Entity Codes |
---|---|---|
NUL | null character | � |
SOH | start of header |  |
STX | start of text |  |
ETX | end of text |  |
EOT | end of transmission |  |
ENQ | enquiry |  |
ACK | acknowledge |  |
BEL | bell (ring) |  |
BS | backspace |  |
HT | horizontal tab | 	 |
LF | line feed | |
VT | vertical tab |  |
FF | form feed |  |
CR | carriage return | |
SO | shift out |  |
SI | shift in |  |
DLE | data link escape |  |
DC1 | device control 1 |  |
DC2 | device control 2 |  |
DC3 | device control 3 |  |
DC4 | device control 4 |  |
NAK | negative acknowledge |  |
SYN | synchronize |  |
ETB | end transmission block |  |
CAN | cancel |  |
EM | end of medium |  |
SUB | substitute |  |
ESC | escape |  |
FS | file separator |  |
GS | group separator |  |
RS | record separator |  |
US | unit separator |  |
DEL | delete (rubout) |  |
Previous Page Print PageNext Page
Advertisements
';adpushup.triggerAd(ad_id);});
FAQs
What is ASCII code in HTML? ›
ASCII is a 7-bit character set containing 128 characters. It contains the numbers from 0-9, the upper and lower case English letters from A to Z, and some special characters. The character sets used in modern computers, in HTML, and on the Internet, are all based on ASCII.
How do I display ASCII in HTML? ›The HTML <pre> tag represents preformatted text in an HTML document. The <pre> element can be used for displaying ASCII art. It can also be useful for displaying blocks of computer code, and even displaying the contents of an email.
What is the ASCII code for A to Z? ›The ASCII value of the lowercase alphabet is from 97 to 122. And, the ASCII value of the uppercase alphabet is from 65 to 90.
What are HTML symbols? ›What Are HTML Symbols? HTML symbols are like mathematical operators that allow users to enter technical symbols and currency symbols that are not present on a regular keyboard. These codes start with an ampersand and end with a semicolon.
Is HTML Unicode or ASCII? ›An HTML document is a sequence of Unicode characters.
What is %5E in HTML? ›Character | From Windows-1252 | From UTF-8 |
---|---|---|
[ | %5B | %5B |
\ | %5C | %5C |
] | %5D | %5D |
^ | %5E | %5E |
To display the ASCII values in C of any character variable, we use the %d format specifier in the printf() statement. Let us take a look at how it works. In the above example, we printed the ASCII value in C of the letter "z" by using the %d format specifier in the printf() statement.
How do I show Unicode in HTML? ›You can enter any Unicode character in an HTML file by taking its decimal numeric character reference and adding an ampersand and a hash at the front and a semi-colon at the end, for example — should display as an em dash (—). This is the method used in the Unicode test pages.
What is ASCII vs Unicode? ›Unicode is the universal character encoding used to process, store and facilitate the interchange of text data in any language while ASCII is used for the representation of text such as symbols, letters, digits, etc. in computers.
What are the 256 characters of ASCII? ›...
Extended ASCII.
Character | Code | Representation Binary |
---|---|---|
A | 65 | 01000001 |
What is 10 ASCII code? ›
ASCII | Decimal | Octal |
---|---|---|
backspace | 8 | 10 |
horizontal tab | 9 | 11 |
linefeed | 10 | 12 |
vertical tab | 11 | 13 |
In the Windows-1252 character set, ASCII code 194 is represented by the character  also known as the latin capital letter a with circumflex.
What are the 12 basic HTML tags? ›A few of the basic tags that can be seen in almost all the HTML documents are <HTML>, <! Doctype html>, <head>, <span>, <body>, <p>, <div>, <u>, <sub>, <sup>, <strong>, <em>, <hr>, <br>, <li>, <ol>, <ul>, <a href =…>, header tags like h1, h2, h3, .., <img src=””/>, etc.
What are the 5 basic HTML tags? ›...
List of HTML 5 Tags.
Tag | Description |
---|---|
<footer> | It defines a footer for a section. |
<header> | It defines a header for a section. |
<main> | It defines the main content of a document. |
<mark> | It specifies the marked or highlighted content. |
The default character encoding in HTML-5 is UTF-8.
Is UTF-8 and ASCII same? ›For characters represented by the 7-bit ASCII character codes, the UTF-8 representation is exactly equivalent to ASCII, allowing transparent round trip migration. Other Unicode characters are represented in UTF-8 by sequences of up to 6 bytes, though most Western European characters require only 2 bytes3.
What is a HTML format? ›HTML is an acronym for Hypertext Markup Language. HTML files are text-only documents that contain highly interactive content and are designed specifically for digital viewing. This means they're optimal as an on-screen viewing file rather than a printed format.
What is %3F in a URL? ›URLs frequently employ potentially conflicting characters such as question marks, ampersands, and pound signs. Fortunately, it is possible to encode such characters via their escaped hexadecimal ASCII representations. For example, we would write ? as %3F .
What is %E2 in URL? ›%E2%80%8B is the code for a "ZERO-WIDTH SPACE" character.
What is %20 in a URL? ›It's used to place characters in URLs that aren't typically allowed. The encoding is a percent sign followed by an ASCII value (in hexadecimal). So %20 is a space, %30 is the number 0, %3b is semicolon and so on.
How do you write ASCII format? ›
- Select File > Save As, and then.
- Name the file your-name-resume.txt (or whatever.txt), with.
- (In Notepad), “Text Documents (*.txt) selected as the “File of Type” or as “Save as Type“
It can be observed that ASCII value of digits [0 – 9] ranges from [48 – 57].
What is ASCII code table? ›The ASCII table contains letters, numbers, control characters, and other symbols. Each character is assigned a unique 7-bit code. ASCII is an acronym for American Standard Code for Information Interchange.
What is &# 10094 in HTML? ›Symbol Name: | Heavy Left-Pointing Angle Quotation Mark Ornament |
---|---|
Html Entity: | |
Hex Code: | ❮ |
Decimal Code: | ❮ |
Unicode Group: | Dingbats |
The character encoding should be specified for every HTML page, either by using the charset parameter on the Content-Type HTTP response header (e.g.: Content-Type: text/html; charset=utf-8 ) and/or using the charset meta tag in the file.
How do I type Unicode? ›Inserting Unicode characters
To insert a Unicode character, type the character code, press ALT, and then press X. For example, to type a dollar symbol ($), type 0024, press ALT, and then press X. For more Unicode character codes, see Unicode character code charts by script.
UTF-16 binary encoding
Recall that UTF-8 encodes each ASCII character in just one byte. UTF-16 must encode these same characters in either two or four bytes. This means that an English text file encoded with UTF-16 would be at least double the size of the same file encoded with UTF-8.
UTF-8 VS ASCII – What's the Difference? UTF-8 extends the ASCII character set to use 8-bit code points, which allows for up to 256 different characters. This means that UTF-8 can represent all of the printable ASCII characters, as well as the non-printable characters.
Is UTF-16 same as Unicode? ›UTF-16 is an encoding of Unicode in which each character is composed of either one or two 16-bit elements. Unicode was originally designed as a pure 16-bit encoding, aimed at representing all modern scripts.
Why is ASCII 128 and not 256? ›In the ASCII character set, each binary value between 0 and 127 is given a specific character. Most computers extend the ASCII character set to use the full range of 256 characters available in a byte. The upper 128 characters handle special things like accented characters from common foreign languages.
Why ASCII is a 7-bit code? ›
The committee eventually decided on a 7-bit code for ASCII. 7 bits allow for 128 characters. While only American English characters and symbols were chosen for this encoding set, 7 bits meant minimized costs associated with transmitting this data (as opposed to say, 8 bits).
What character is ASCII 129? ›It's the ASCII character LF, Line Feed. Some systems (e.g. Windows) use the combination CR+LF, , for line break, some systems (e.g. Linux) use only LF as line break, some systems (e.g. Macintosh) use only CR as line break.
What ASCII is 255? ›The ASCII character 255 is actually a non-breaking space, or NBSP!
What ASCII 22? ›The delete control character (also called DEL or rubout) is the last character in the ASCII repertoire, with the code 127. It is supposed to do nothing and was designed to erase incorrect characters on paper tape. It is denoted as ^? in caret notation and is U+007F in Unicode.
What ASCII 72? ›Character | Hex | Decimal |
---|---|---|
( | 28 | 72 |
) | 29 | 73 |
* | 2a | 74 |
+ | 2b | 75 |
In the 7-bit ASCII character set, ASCII code 67 is represented by the character C also known as the uppercase c.
What are the 8 basic HTML tags? ›- Title tag. Title tags are used to set up those clickable headlines that you see in the SERP: ...
- Meta description tag. ...
- Heading (H1-H6) tags. ...
- Image alt text. ...
- Schema markup. ...
- HTML5 semantic tags. ...
- Meta robots tag. ...
- Canonical tag.
There are four required tags in HTML. These are html, title, head and body. The table below shows you the opening and closing tag, a description and an example. These are the tags you put at the beginning and end of an HTML file.
What are the 10 most common HTML tags? ›
- <title> … ...
- <body> … ...
- <h1> … </h1> — A section heading. ...
- <p> … </p> — A paragraph. ...
- <a> … </a> — A link. ...
- <img> — An image. The img element lets you insert images into your web pages. ...
- <div> … </div> — A block-level container for content. ...
- <span> … </span> — An inline container for content.
- 4.1. 1 The html element.
- 1 The head element.
- 2 The title element.
- 3 The base element.
- 4 The link element.
- 5 The meta element.
There are two kinds of HTML tags: paired and unpaired. Paired tags require an opening tag that turns a formatting feature on and a closing tag that turns the feature off. Paired tags must surround the text you want formatted with that feature.
What are the basic HTML codes? ›Tag | Description |
---|---|
<h1> to <h6> | Defines HTML headings |
<p> | Defines a paragraph |
<br> | Inserts a single line break |
<hr> | Defines a thematic change in the content |
ASCII (American Standard Code for Information Interchange) is the most common character encoding format for text data in computers and on the internet. In standard ASCII-encoded data, there are unique values for 128 alphabetic, numeric or special additional characters and control codes.
What is ASCII code example? ›What is ascii code example? It is a code for representing 128 English characters as numbers, with each letter assigned a number from 0 to 127. For example, the ASCII code for uppercase M is 77. Most computers use ASCII codes to represent text, which makes it possible to transfer data from one computer to another.
What is ASCII code and its types? ›The ASCII system translates alphanumeric characters and symbols into a computer-readable code. The original ASCII was English-only. There are now two types of ASCII codes; the standard code that uses a seven-bit encoding system, and an extended code that uses an eight-bit system. It is pronounced ASK-y.
What is ASCII file format? ›ASCII (American Standard Code for Information Interchange) ASCII is the most common format for text files in computers and on the Internet. In an ASCII file, each alphabetic, numeric, or special character is represented with a 7 number (a string of seven 0s or 1s). 128 possible characters are defined.
What is 7-bit ASCII code? ›7-bit encoding is a reference to the Ascii character set — pronounced “Askey” and standing for “American Standard Code for Information Interchange” — which is a mapping of English alphabet characters, numbers and symbols to 7-bit numerical values in the range 0 to 127.
What is 10 Ascii code? ›ASCII | Decimal | Octal |
---|---|---|
backspace | 8 | 10 |
horizontal tab | 9 | 11 |
linefeed | 10 | 12 |
vertical tab | 11 | 13 |
What is 32 Ascii code? ›
Code 32 (decimal) is a nonprinting spacing character.
What is 72 in Ascii code? ›In the 7-bit ASCII character set, ASCII code 72 is represented by the character H also known as the uppercase h.
Why Ascii code is used? ›What is ASCII used for? ASCII is used to translate computer text to human text. All computers speak in binary, a series of 0 and 1. However, just like English and Spanish can use the same alphabet but have completely different words for similar objects, computers also had their own version of languages.
How can I learn Ascii code? ›To identify a character's ASCII value, it is common to look it up on an ASCII table. The ASCII table pairs each character to its assigned value between 0 and 127.
How do ASCII codes work? ›It is a code that uses numbers to represent characters. Each letter is assigned a number between 0 and 127. A upper and lower case character are assigned different numbers. For example the character A is assigned the decimal number 65, while a is assigned decimal 97 as shown below int the ASCII table.
Are HTML files ASCII or binary? ›Any of the 256-bit patterns can be used in any byte of a binary file. ASCII files are used for simple word editing, but they are also the basis for all web pages. HTML is written in ASCII because each character has a specific and unique meaning that can be easily read by web browsers.
Is UTF 8 and ASCII same? ›For characters represented by the 7-bit ASCII character codes, the UTF-8 representation is exactly equivalent to ASCII, allowing transparent round trip migration. Other Unicode characters are represented in UTF-8 by sequences of up to 6 bytes, though most Western European characters require only 2 bytes3.
How do I create an ASCII file? ›- Select File > Save As, and then.
- Name the file your-name-resume.txt (or whatever.txt), with.
- (In Notepad), “Text Documents (*.txt) selected as the “File of Type” or as “Save as Type“