Category: References

  • Deprecated Tags & Attributes

    In this article we have created list of deprecated tags and attributes, few of these tags and attributes will still give you the result you want but it has been deprecated by the officials, rather than using mentioned tags and attributes we can use the mentioned alternatives.

    Deprecated tags & attributes are those tags that are no longer valid to use and have been replaced by more modern, standard-compliant elements or CSS techniques. Eventhough most browsers support deprecated tags, it is not recommended to use them as they are likely to be removed in future versions.

    A complete list of deprecated HTML tags and attributes is given here. All the tags have been ordered alphabetically along with their equivalent tag or alternate CSS option.

    HTML Deprecated Tags

    Following is the list of deprecated HTML tags and alternative options if available.

    TagDescriptionAlternate
    <applet>Used to embed the Java applet.<object>
    <acronym>Used for indicating an acronym.<abbr>
    <basefont>Used to set the default text-color, font-size.font
    <bgsound>Used to play soundtrack in the background.
    <big>Used to increase the font size.font-size
    <blink>Used to enclose a text to make it blink.CSS or JavaScript
    <center>Used to set the alignment of the text.text-align
    <dir>Used to make a list of directory files/folders.
    <embed>Used for embedding external applications.<object>
    <font>Used to change the color, size and style of a text. To know more about the font tag visit this page.font-family & font-size
    <frameset>Used to specify the number of rows and columns in frameset wit their pixels.<iframe>
    <isindex>Used for querying a document through a text field
    <ilayer>Used to create a layer that occupies space in the containing text flow.
    <keygen>Used to process Web forms with certificate management systems
    <listing>Uintended as a way to render HTML code on a page.<pre>
    <layer>Used to position and animate (through scripting) elements in a page
    <menu>Used for creating a menu list.
    <menuitem>Used for defining a menu item for a menu.
    <multicol>Used to create multiple columns of text .
    <nobr>Used to instruct the browser not to break the specified text.CSS
    <noembed>Used to handle browsers which do not support the <embed> tag.
    <noframes>Used to handle the browsers which do not support <frame> tag.
    <plaintext>Used to render all the text in the document.<pre>
    <param>Used for passing parameters to an embedded object using <object> tag.
    <s>Used to indicate that the text is no longer accurate or correct.text-decoration
    <strike>Used to strike a line through the text.text-decoration
    <spacer>Used to specify a whitespace.<pre> & <br>
    <tt>Used to specify teletype text.<pre> & <kbd>
    <u>Used to create underlined text.text-decoration
    <xmp>Used to render preformatted text.<pre>
    <frame>Used to divide your browser window into multiple sections where each section can load a separate HTML document. To know more about the frame tag visit this page.Use modern layout techniques.
    <marquee>Marquee is a scrolling piece of text displayed either horizontally across.CSS

    HTML Deprecated Attributes

    Following is the list of deprecated HTML attributes and alternative options if available.

    AttributeDescriptionAlternate
    alignUsed to specify the alignment of the text-content.text-align, float & vertical-align
    alinkUsed to specify the color of an active link.active
    backgroundUsed to specify a background image of the entire web page body.background-image
    bgcolorUsed to set the background color of an HTML element.background-color
    borderUsed to set the visible border width.border-width
    clearIndicates how the browser should display the line after the <br /> elementclear
    heightUsed to specify the height of the element.height
    hspaceUsed to specify the number of whitespaces on the left or right side of an object.padding
    languageUsed to specify the language of the elements content.type
    nowrapUsed to indicate that the text inside the cell should not wrap.white-space
    startUsed to specify the start value for numbering the list items.counter-reset
    textUsed to define a color for the text in the document.color
    typeUsed to specify the type of content associated with an element.list-style-type
    vlinkUsed to specify the color of a visited link.visited
    vspaceUsed to specify the number of whitespaces.padding
    widthUsed to specify width of the image element.width

    HTML Deprecated Webpage

    Following is the list of deprecated HTML webpage and alternative options if available.

    pageDescriptionAlternate
    Web SQL DatabaseUces a set of APIs to manipulate client-side databases using SQL.
  • Character Encodings

    Character encoding is a method of converting bytes into characters. To validate or display an HTML document properly, a program must choose a proper character encoding.

    HTML Charset Attribute

    The HTML charset attribute of meta tag is used to mention character encoding of webpage.

    <meta charset="UTF-8">

    The ASCII Character Set

    The most common character set or character encoding in use on computers is ASCII (The American Standard Code for Information Interchange), and this is probably the most widely used character set for encoding text electronically. ASCII encoding consist of 128 characters(0-127).

    • English Alphabets (A-Z and a-z)
    • Numbers(0-9)
    • Special Characters (@, #, $, %, etc)

    You can have a look at complete set of Printable ASCII Characters

    The ANSI Character Set

    ANSI character set is generally used in windows systems, it is also called as windows-1252. This includes

    • From 0 to 127 ANSI follows ASCII characters.
    • From 128 to 159 some extra special characters are added.
    • From 160 to 255 it’s identical to UTF-8.

    The ISO-8859-1 Character Set

    ISO-8859-1 was the default character set for HTML 4. This character set supported 256 different character codes.

    • Same as ASCII for the first 128 characters
    • Does not use the characters from 128 to 159
    • Same as ANSI and UTF-8 from 160 to 255

    The UTF-8 Character Set

    The HTML5 specifications recommends developers to use UTF-8 encodings in webpages, because UTF-8 covers all character and symbols in the world. The characters of UTF-8 are.

    • Identical to ASCII for 0 to 127 characters
    • Characters 128 to 159 are empty
    • Uses same characters as ANSI and 8859-1 from 160 to 255
    • Characters from other language are specified using 256 to 1000

    The International Standards Organization created a range of character sets to deal with different national characters. For the documents in English and most other Western European languages, the widely supported encoding ISO-8859-1 is used.

    ISO Character Sets

    Here is the list of Character Set being used around the world along with their description.

    Character SetDescription
    ISO-8859-1Latin alphabet part 1Covering North America,Western Europe, Latin America, theCaribbean, Canada, Africa
    ISO-8859-2Latin alphabet part 2Covering Eastern Europe
    ISO-8859-3Latin alphabet part 3Covering SE Europe, Esperanto, miscellaneous others
    ISO-8859-4Latin alphabet part 4Covering Scandinavia/Baltics (and others not in ISO-8859-1)
    ISO-8859-5Latin/Cyrillic alphabet part 5
    ISO-8859-6Latin/Arabic alphabet part 6
    ISO-8859-7Latin/Greek alphabet part 7
    ISO-8859-8Latin/Hebrew alphabet part 8
    ISO-8859-9Latin 5 alphabet part 9Same as ISO-8859-1 except Turkish characters replace Icelandic ones
    ISO-8859-10Latin 6 Latin 6 Lappish, Nordic, and Eskimo
    ISO-8859-15The same as ISO-8859-1 but with more characters added
    ISO-2022-JPLatin/Japanese alphabet part 1
    ISO-2022-JP-2Latin/Japanese alphabet part 2
    ISO-2022-KRLatin/Korean alphabet part 1

    The Unicode Consortium was then set up to devise a way to show all characters of different languages, rather than have these different incompatible character codes for different languages.

    Therefore, if you want to create documents that use characters from multiple character sets, you will be able to do so using the single Unicode character encodings.

    Unicode therefore specifies encodings that can deal with a string in special ways so as to make enough space for the huge character set it encompasses. These are known as UTF8, UTF-16, and UTF-32.

    UTF Character Sets

    Character SetDescription
    UTF-8A Unicode Translation Format that comes in 8-bit units that is, it comes in bytes. A character in UTF8 can be from 1 to 4 bytes long, making UTF8 variable width.
    UTF-16A Unicode Translation Format that comes in 16-bit units that is, it comes in shorts. It can be 1 or 2 shorts long, making UTF16 variable width.
    UTF-32A Unicode Translation Format that comes in 32-bit units that is, it comes in longs. It is a fixed-width format and is always 1 “long” in length.

    The first 256 characters of Unicode character sets correspond to the 256 characters of ISO-8859-1. By default, HTML 4 processors should support UTF-8, and XML processors are supposed to support UTF-8 and UTF-16; therefore all XHTML-compliant processors should also support UTF-16.

  • ISO language Codes

    HTML ISO Language 639 is used as a standardized nomenclature to identify languages. Every language is assigned with two-letter and three-letter lowercase abbreviation. The ISO 639-1 also known as part 1 ISO, defines the two-letter codes for languages and ISO 639-3 ( Part 3 ISO ) defines the three-letter codes for all known natural languages.

    ISO stands for International Organization for Standardization, which is a independent, non governmental organization for standardization.

    Examples of ISO language codes

    In HTML, language code is declared inside <html> tag as follows:

    <html lang="en"><!--- other tags --></html>

    In XHTML, language code is declared inside <html> tag as follows:

    <html lang="en" xml:lang="en"><!--- other tags --></html>

    The following is a draft list of language code correspondences between ISO codes, Microsoft codes, and Macintosh codes. Source of this information is Unicode Consortium.

    Language Codes ISO 639, Microsoft

    Following are the language codes that are listed below

    LanguageISO CodeWindows NameWin Code
    Abkhazianab
    Afaraa
    AfrikaansafLANG_AFRIKAANS0x36
    AlbaniansqLANG_ALBANIAN0x1c
    Amharicam(no constant defined)0x5e
    ArabicarLANG_ARABIC0x01
    ArmenianhyLANG_ARMENIAN0x2b
    AssameseasLANG_ASSAMESE0x4d
    Aymaraay
    AzerbaijaniazLANG_AZERI0x2c
    Bashkirba
    BasqueeuLANG_BASQUE0x2d
    Bengali (Bangla)bnLANG_BENGALI0x45
    Bhutanidz
    Biharibh
    Bislamabi
    Bretonbr
    BulgarianbgLANG_BULGARIAN0x02
    Burmesemy(no constant defined)0x55
    Byelorussian (Belarusian)beLANG_BELARUSIAN0x23
    Cambodiankm(no constant defined)0x53
    CatalancaLANG_CATALAN0x03
    Cherokee(no constant defined)0x5c
    Chewa
    Chinese (Simplified)zhLANG_CHINESE (SUBLANG_CHINESE_SIMPLIFIED)0x04 (0x0804)
    Chinese (Traditional)zhLANG_CHINESE (SUBLANG_CHINESE_TRADITIONAL)0x04 (0x0404)
    Corsicanco
    CroatianhrLANG_CROATIAN0x1a
    CzechcsLANG_CZECH0x05
    DanishdaLANG_DANISH0x06
    DivehiLANG_DIVEHI0x65
    DutchnlLANG_DUTCH0x13
    Edo(no constant defined)0x66
    EnglishenLANG_ENGLISH0x09
    Esperantoeo
    EstonianetLANG_ESTONIAN0x25
    FaeroesefoLANG_FAEROESE0x38
    FarsifaLANG_FARSI0x29
    Fijifj
    FinnishfiLANG_FINNISH0x0b
    FlemishLANG_DUTCH (SUBLANG_DUTCH_BELGIAN)0x13 (0x0813)
    FrenchfrLANG_FRENCH0x0c
    Frisianfy(no constant defined)0x62
    Fulfulde(no constant defined)0x67
    GalicianglLANG_GALICIAN0x56
    Gaelic (Scottish)gd(no constant defined)0x3c (0x043c)
    Gaelic (Manx)gv
    GeorgiankaLANG_GEORGIAN0x37
    GermandeLANG_GERMAN0x07
    GreekelLANG_GREEK0x08
    Greenlandickl
    Guaranign(no constant defined)0x74
    GujaratiguLANG_GUJARATI0x47
    Hausaha(no constant defined)0x68
    Hawaiian(no constant defined)0x75
    Hebrewhe, iw*LANG_HEBREW0x0d
    HindihiLANG_HINDI0x39
    HungarianhuLANG_HUNGARIAN0x0e
    Ibibio(no constant defined)0x69
    IcelandicisLANG_ICELANDIC0x0f
    Igbo(no constant defined)0x70
    Indonesianid, in*LANG_INDONESIAN0x21
    Interlinguaia
    Interlingueie
    Inuktitutiu(no constant defined)0x5d
    Inupiakik
    Irishga(no constant defined)0x3c (0x083c)
    ItalianitLANG_ITALIAN0x10
    JapanesejaLANG_JAPANESE0x11
    Javanesejv
    KannadaknLANG_KANNADA0x4b
    Kanuri(no constant defined)0x71
    KashmiriksLANG_KASHMIRI0x60
    KazakhkkLANG_KAZAK0x3f
    Kinyarwanda (Ruanda)rw
    KirghizkyLANG_KYRGYZ0x40
    Kirundi (Rundi)rn
    KonkaniLANG_KONKANI0x57
    KoreankoLANG_KOREAN0x12
    Kurdishku
    Laothianlo(no constant defined)0x54
    Latinla(no constant defined)0x76
    Latvian (Lettish)lvLANG_LATVIAN0x26
    Limburgish ( Limburger)li
    Lingalaln
    LithuanianltLANG_LITHUANIAN0x27
    MacedonianmkLANG_MACEDONIAN0x2f
    Malagasymg
    MalaymsLANG_MALAY0x3e
    MalayalammlLANG_MALAYALAM0x4c
    LANG_MANIPURI0x58
    Maltesemt(no constant defined)0x3a
    Maorimi
    MarathimrLANG_MARATHI0x4e
    Moldavianmo
    MongolianmnLANG_MONGOLIAN0x50
    Nauruna
    NepalineLANG_NEPALI0x61
    NorwegiannoLANG_NORWEGIAN0x14
    Occitanoc
    OriyaorLANG_ORIYA0x48
    Oromo (Afan, Galla)om(no constant defined)0x72
    Papiamentu(no constant defined)0x79
    Pashto (Pushto)ps(no constant defined)0x63
    PolishplLANG_POLISH0x15
    PortugueseptLANG_PORTUGUESE0x16
    PunjabipaLANG_PUNJABI0x46
    Quechuaqu
    Rhaeto-Romancerm(no constant defined)0x17
    RomanianroLANG_ROMANIAN0x18
    RussianruLANG_RUSSIAN0x19
    Sami (Lappish)(no constant defined)0x3b
    Samoansm
    Sangrosg
    SanskritsaLANG_SANSKRIT0x4f
    SerbiansrLANG_SERBIAN (SUBLANG_SERBIAN_LATIN or SUBLANG_SERBIAN_CYRILLIC)0x1a (0x081a or 0x0c1a)
    Serbo-Croatiansh
    Sesothost
    Setswanatn
    Shonasn
    SindhisdLANG_SINDHI0x59
    Sinhalesesi(no constant defined)0x5b
    Siswatiss
    SlovakskLANG_SLOVAK0x1b
    SlovenianslLANG_SLOVENIAN0x24
    Somaliso(no constant defined)0x77
    SpanishesLANG_SPANISH0x0a
    Sundanesesu
    Swahili (Kiswahili)swLANG_SWAHILI0x41
    SwedishsvLANG_SWEDISH0x1d
    SyriacLANG_SYRIAC0x5a
    Tagalogtl(no constant defined)0x64
    Tajiktg(no constant defined)0x28
    Tamazight(no constant defined)0x5f
    TamiltaLANG_TAMIL0x49
    TatarttLANG_TATAR0x44
    TeluguteLANG_TELUGU0x4a
    ThaithLANG_THAI0x1e
    Tibetanbo(no constant defined)0x51
    Tigrinyati(no constant defined)0x73
    Tongato
    Tsongats(no constant defined)0x31
    TurkishtrLANG_TURKISH0x1f
    Turkmentk(no constant defined)0x42
    Twitw
    Uighurug
    UkrainianukLANG_UKRAINIAN0x22
    UrduurLANG_URDU0x20
    UzbekuzLANG_UZBEK0x43
    Venda(no constant defined)0x33
    VietnameseviLANG_VIETNAMESE0x2a
    Volap?kvo
    Welshcy(no constant defined)0x52
    Wolofwo
    Xhosaxh(no constant defined)0x34
    Yi(no constant defined)0x78
    Yiddishyi, ji*(no constant defined)0x3d
    Yorubayo(no constant defined)0x6a
    Zuluzu(no constant defined)0x35

    Language Codes ISO 639, Macintosh

    Let’s look at the following language codes that are listed below

    LanguageISO CodeMac NameMac Code
    Abkhazianab
    Afaraa
    AfrikaansaflangAfricaans141
    AlbaniansqlangAlbanian36
    AmharicamlangAmharic85
    ArabicarlangArabic12
    ArmenianhylangArmenian51
    AssameseaslangAssamese68
    AymaraaylangAymara134
    AzerbaijaniazlangAzerbaijani(Cyrllic), langAzerbaijanAr(Arabic)49(C), 50(A)
    Bashkirba
    BasqueeulangBasque129
    Bengali (Bangla)bnlangBengali67
    BhutanidzlangDzongkha137
    Biharibh
    Bislamabi
    BretonbrlangBreton142
    BulgarianbglangBulgarian44
    BurmesemylangBurmese77
    Byelorussian (Belarusian)belangByelorussian46
    CambodiankmlangKhmer78
    CatalancalangCatalan130
    Cherokee
    ChewalangChewa92
    Chinese (Simplified)zhlangSimpChinese33
    Chinese (Traditional)zhlangTradChinese19
    Corsicanco
    CroatianhrlangCroatian18
    CzechcslangCzech38
    DanishdalangDanish7
    Divehi
    DutchnllangDutch4
    Edo
    EnglishenlangEnglish0
    EsperantoeolangEsperanto94
    EstonianetlangEstonian27
    FaeroesefolangFaeroese30
    FarsifalangFarsi, langPersian31
    Fijifj
    FinnishfilangFinnish13
    FlemishlangFlemish34
    FrenchfrlangFrench1
    Frisianfy
    Fulfulde
    GaliciangllangGalician140
    Gaelic (Scottish)gdlangScottishGaelic144
    Gaelic (Manx)gvlangManxGaelic145
    GeorgiankalangGeorgian52
    GermandelangGerman2
    GreekellangGreek (monotonic), langGreekPoly (polytonic)14(m), 148(p)
    Greenlandickl
    GuaranignlangGuarani133
    GujaratigulangGujarati69
    Hausaha
    Hawaiian
    Hebrewhe, iw*langHebrew10
    HindihilangHindi21
    HungarianhulangHungarian26
    Ibibio
    IcelandicislangIcelandic15
    Igbo
    Indonesianid, in*langIndonesian81
    Interlinguaia
    Interlingueie
    InuktitutiulangInuktitut143
    Inupiakik
    IrishgalangIrishGaelic (normal), langIrishGaelicScr (dots above)35, 146
    ItalianitlangItalian3
    JapanesejalangJapanese11
    JavanesejvlangJavaneseRom138
    KannadaknlangKannada73
    Kanuri
    KashmirikslangKashmiri61
    KazakhkklangKazakh48
    Kinyarwanda (Ruanda)rwlangKiryarwanda (langRuanda)90
    KirghizkylangKirghiz54
    Kirundi (Rundi)rnlangRundi91
    Konkani
    KoreankolangKorean23
    KurdishkulangKurdish60
    LaothianlolangLao79
    LatinlalangLatin131
    Latvian (Lettish)lvlangLatvian28
    Limburgish (Limburger)li
    Lingalaln
    LithuanianltlangLithuanian24
    MacedonianmklangMacedonian43
    MalagasymglangMalagasy93
    MalaymslangMalayRoman(Latin), langMalayArabic(Arabic)83(L), 84(A)
    MalayalammllangMalayalam72
    LANG_MANIPURI0x58
    MaltesemtlangMaltese16
    Maorimi
    MarathimrlangMarathi66
    MoldavianmolangMoldavian53
    MongolianmnlangMongolian(Mongolian), langMongolianCyr(Cyrillic)57(M), 58(C)
    Nauruna
    NepalinelangNepali64
    NorwegiannolangNorwegian9
    Occitanoc
    OriyaorlangOriya71
    Oromo (Afan, Galla)omlangOromo (langGalla)87
    Papiamentu
    Pashto (Pushto)pslangPashto59
    PolishpllangPolish25
    PortugueseptlangPortuguese8
    PunjabipalangPunjabi70
    QuechuaqulangQuechua132
    Rhaeto-Romancerm
    RomanianrolangRomanian37
    RussianrulangRussian32
    Sami (Lappish)langSami (langLappish)29
    Samoansm
    Sangrosg
    SanskritsalangSanskrit65
    SerbiansrlangSerbian42
    Serbo-Croatiansh
    Sesothost
    Setswanatn
    Shonasn
    SindhisdlangSindhi62
    SinhalesesilangSinhalese76
    Siswatiss
    SlovaksklangSlovak39
    SloveniansllangSlovenian40
    SomalisolangSomali88
    SpanisheslangSpanish6
    SundanesesulangSundaneseRom139
    Swahili (Kiswahili)swlangSwahili89
    SwedishsvlangSwedish5
    Syriac
    TagalogtllangTagalog82
    TajiktglangTajiki55
    Tamazight
    TamiltalangTamil74
    TatarttlangTatar135
    TelugutelangTelugu75
    ThaithlangThai22
    TibetanbolangTibetan63
    TigrinyatilangTigrinya86
    TongatolangTongan147
    Tsongats
    TurkishtrlangTurkish17
    TurkmentklangTurkmen56
    Twitw
    UighuruglangUighur136
    UkrainianuklangUkrainian45
    UrduurlangUrdu20
    UzbekuzlangUzbek47
    Venda
    VietnamesevilangVietnamese80
    Volap?kvo
    WelshcylangWelsh128
    Wolofwo
    Xhosaxh
    Yi
    Yiddishyi, ji*langYiddish41
    Yorubayo
    Zuluzu

  • URL Encoding

    URL encoding is the practice of translating unprintable characters or characters with special meaning within URLs to a representation that is unambiguous and universally accepted by web browsers and servers. These characters include −

    • ASCII control characters − Unprintable characters typically used for output control. Character ranges 00-1F hex (0-31 decimal) and 7F (127 decimal). A complete encoding table is given below.
    • Non-ASCII control characters − These are characters beyond the ASCII character set of 128 characters. This range is part of the ISO-Latin character set and includes the entire “top half” of the ISO-Latin set 80-FF hex (128-255 decimal). A complete encoding table is given below.
    • Reserved characters − These are special characters such as the dollar sign, ampersand, plus, common, forward slash, colon, semi-colon, equals sign, question mark, and “at” symbol. All of these can have different meanings inside a URL so need to be encoded. A complete encoding table is given below.
    • Unsafe characters − These are space, quotation marks, less than symbol, greater than symbol, pound character, percent character, Left Curly Brace, Right Curly Brace, Pipe, Backslash, Caret, Tilde, Left Square Bracket, Right Square Bracket, Grave Accent. These character present the possibility of being misunderstood within URLs for various reasons. These characters should also always be encoded. A complete encoding table is given below.

    The encoding notation replaces the desired character with three characters: a percent sign and two hexadecimal digits that correspond to the position of the character in the ASCII character set.

    Example

    One of the most common special characters is a white space. You can’t type a space in a URL directly. A space position in the character set is 20 hexadecimals. So you can use %20 in place of a space when passing your request to the server.

    http://www.example.com/new%20pricing.htm
    

    This URL actually retrieves a document named “new pricing.htm” from the www.example.com

    ASCII Control Characters Encoding

    This includes the encoding for character ranges 00-1F hex (0-31 decimal) and 7F (127 decimal)

    DecimalHex ValueCharacterURL Encode
    000 %00
    101 %01
    202 %02
    303 %03
    404 %04
    505 %05
    606 %06
    707 %07
    808backspace%08
    909tab%09
    100alinefeed%0a
    110b %0b
    120c %0c
    130dcarriage return%0d
    140e %0e
    150f %0f
    1610 %10
    1711 %11
    1812 %12
    1913 %13
    2014 %14
    2115 %15
    2216 %16
    2317 %17
    2418 %18
    2519 %19
    261a %1a
    271b %1b
    281c %1c
    291d %1d
    301e %1e
    311f %1f
    1277f %7f

    Non-ASCII control characters encoding

    This includes the encoding for the entire “top half” of the ISO-Latin set 80-FF hex (128255 decimal.)

    DecimalHex ValueCharacterURL Encode
    12880€%80
    12981%81
    13082‚%82
    13183ƒ%83
    13284„%84
    13385…%85
    13486†%86
    13587‡%87
    13688ˆ%88
    13789‰%89
    1388aŠ%8a
    1398b‹%8b
    1408cŒ%8c
    1418d%8d
    1428eŽ%8e
    1438f%8f
    14490%90
    14591‘%91
    14692’%92
    14793“%93
    14894”%94
    14995•%95
    15096–%96
    15197—%97
    15298˜%98
    15399™%99
    1549aš%9a
    1559b›%9b
    1569cœ%9c
    1579d%9d
    1589ež%9e
    1599fŸ%9f
    160a0 %a0
    161a1¡%a1
    162a2¢%a2
    163a3£%a3
    164a4¤%a4
    165a5¥%a5
    166a6¦%a6
    167a7§%a7
    168a8¨%a8
    169a9©%a9
    170aaª%aa
    171ab«%ab
    172ac¬%ac
    173ad­%ad
    174ae®%ae
    175af¯%af
    176b0°%b0
    177b1±%b1
    178b2²%b2
    179b3³%b3
    180b4´%b4
    181b5µ%b5
    182b6%b6
    183b7·%b7
    184b8¸%b8
    185b9¹%b9
    186baº%ba
    187bb»%bb
    188bc¼%bc
    189bd½%bd
    190be¾%be
    191bf¿%bf
    192c0À%c0
    193c1Á%c1
    194c2Â%c2
    195c3Ã%c3
    196c4Ä%c4
    197c5Å%c5
    198c6Æ%v6
    199c7Ç%c7
    200c8È%c8
    201c9É%c9
    202caÊ%ca
    203cbË%cb
    204ccÌ%cc
    205cdÍ%cd
    206ceÎ%ce
    207cfÏ%cf
    208d0Ð%d0
    209d1Ñ%d1
    210d2Ò%d2
    211d3Ó%d3
    212d4Ô%d4
    213d5Õ%d5
    214d6Ö%d6
    215d7×%d7
    216d8Ø%d8
    217d9Ù%d9
    218daÚ%da
    219dbÛ%db
    220dcÜ%dc
    221ddÝ%dd
    222deÞ%de
    223dfß%df
    224e0à%e0
    225e1á%e1
    226e2â%e2
    227e3ã%e3
    228e4ä%e4
    229e5å%e5
    230e6æ%e6
    231e7ç%e7
    232e8è%e8
    233e9é%e9
    234eaê%ea
    235ebë%eb
    236ecì%ec
    237edí%ed
    238eeî%ee
    239efï%ef
    240f0ð%f0
    241f1ñ%f1
    242f2ò%f2
    243f3ó%f3
    244f4ô%f4
    245f5õ%f5
    246f6ö%f6
    247f7÷%f7
    248f8ø%f8
    249f9ù%f9
    250faú%fa
    251fbû%fb
    252fcü%fc
    253fdý%fd
    254feþ%fe
    255ffÿ%ff

    Reserved Characters Encoding

    Following is the table to be used to encode reserved characters.

    DecimalHex ValueCharURL Encode
    3624$%24
    3826&%26
    432b&plus;%2b
    442c,%2c
    472f/%2f
    583a:%3a
    593b;%3b
    613d=%3d
    633f?%3f
    6440@%40

    Unsafe Characters Encoding

    Following is the table to be used to encode unsafe characters.

    DecimalHex ValueCharURL Encode
    3220space%20
    3422%22
    603c<%3c
    623e>%3e
    3523#%23
    3725%%25
    1237b{%7b
    1257d}%7d
    1247c|%7c
    925c\%5c
    945e^%5e
    1267e~%7e
    915b[%5b
    935d]%5d
    9660`%60
  • MIME Media Types

    MIME (Multi-purpose Internet Mail Extension) media types were originally devised so that e-mails could include information other than plain text. MIME media types indicate the following things −

    • How different parts of a message, such as text and attachments, are combined into the message.
    • The way in which each part of the message is specified.
    • The way different items are encoded for transmission so that even software that was designed to work only with ASCII text can process the message.

    Now MIME types are not just for use with e-mail; they have been adopted by Web servers as a way to tell Web browsers what type of material was being sent to them so that they can cope with that kind of messages correctly.

    MIME content types consist of two parts −

    • A main type
    • A sub-type

    The main type is separated from the subtype by a forward slash character. For example, text/html for HTML.

    This chapter is organized for the main types −

    • text
    • image
    • multipart
    • audio
    • video
    • message
    • model
    • application

    For example, the text main type contains types of plain text files, such as −

    • text/plain for plain text files
    • text/html for HTML files
    • text/rtf for text files using rich text formatting

    MIME types are officially supposed to be assigned and listed by the Internet Assigned Numbers Authority (IANA).

    Many of the popular MIME types in this list (all those begin with “x-“) are not assigned by the IANA and do not have official status. You can see the list of official MIME types at http://www.iana.org/assignments/media-types/. Those preceded with .vnd are vendorspecific.

    When specifying the MIME type of a content-type field you can also indicate the character set for the text being used. If you do not specify a character set, the default is US-ASCII. For example −

    content-type:text/plain; charset=iso-8859-1

  • Character Entities

    HTML Entities

    HTML entities are used to display special characters on the webpage that are reserved in HTML or have special meaning. HTML entities are also useful to display characters that are not available on the standard keyword.

    An HTML entity starts with the ampersand sign (&) and ends with a semicolon (;).

    Example

    For example, the less than and greater than have special meaning in HTML, and they must be replaced with HTML entities to display them on the webpage.

    • To display less than (<), use the &lt;
    • To display greater than (>), use the &gt;

    HTML Character Entities

    HTML character entities represent special characters in HTML and begin with an ampersand (&) and end with a semicolon (;). These character entities allow you to display the characters on the webpages that cannot be displayed in the normal way as they have special meanings in HTML such as less than (<), greater than (>), Ampersand sing (&), and more.

    The following table lists five special characters with their entities that every browser supports:

    SymbolDescriptionEntity NameNumber Code
    Quotation mark&quot;&#34;
    Apostrophe&apos;&#39;
    &Ampersand&amp;&#38;
    <Less than&lt;&#60;
    >Greater than&gt;&#62;

    HTML Non-breaking Space Entity

    A non-breaking space does not break into a new line. HTML non-breaking space can be represented using &nbsp; entity. It is useful when you want to display multiple spaces on the webpage because HTML trims the multiple spaces into a single space if you type it normally.

    Note:

    • Two words that are separated by &amp;nbsp will stick together even at the end of a line.
    • If you write 5 spaces in your text using the space bar, the browser will only add 1 space. To add real spaces to your text, you can use the &amp;nbsp character entity.

    Example of HTML Entities

    The following example demonstrates how you can display special characters using HTML character entities:

    <!DOCTYPE html><html lang="en"><head><title>HTML Character Entities Example</title></head><body><h1>HTML Character Entities Example</h1><p>Some common HTML character entities are:</p><ul><li>Quotation mark: <code>&quot;Hello World&quot;</code></li><li>Apostrophe: <code>&apos;This is Kelly's Laptop.&apos;</code></li><li>Ampersand: <code>&amp;This &amp; that.</code></li><li>Less-than sign: <code>&lt;</code></li><li>Greater-than sign: <code>&gt;</code></li></ul><p>Here all symbols (displaying directly):</p><p>Quotation mark: &quot;  |  Apostrophe: &apos;  |  Ampersand: &amp;  |  Less-than: &lt;  |  Greater-than: &gt;</p></body></html>

    There is also a long list of special characters in HTML 4.0. In order for these to appear in your document, you can use either the numerical codes or the entity names. For example, to insert a copyright symbol, you can use either of the following:

    &copy; 2007
    or
    &#169; 2007
    

    ISO 8859-1 Symbol Entities

    Following are the ISO 8859-1 symbol entities that are listed below:

    ResultDescriptionEntity NameNumber Code
     non-breaking space&nbsp;&#160;
    ¡inverted exclamation mark&iexcl;&#161;
    ¤currency&curren;&#164;
    ¢cent&cent;&#162;
    £pound&pound;&#163;
    ¥yen&yen;&#165;
    ¦broken vertical bar&brvbar;&#166;
    §section&sect;&#167;
    ¨spacing diaeresis&uml;&#168;
    ©copyright&copy;&#169;
    ªfeminine ordinal indicator&ordf;&#170;
    «angle quotation mark (left)&laquo;&#171;
    ¬negation&not;&#172;
    ­soft hyphen&shy;&#173;
    ®registered trademark&reg;&#174;
    trademark&trade;&#8482;
    ¯spacing macron&macr;&#175;
    °degree&deg;&#176;
    ±plus-or-minus &plusmn;&#177;
    ²superscript 2&sup2;&#178;
    ³superscript 3&sup3;&#179;
    ´spacing acute&acute;&#180;
    µmicro&micro;&#181;
    paragraph&para;&#182;
    ·middle dot&middot;&#183;
    ¸spacing cedilla&cedil;&#184;
    ¹superscript 1&sup1;&#185;
    ºmasculine ordinal indicator&ordm;&#186;
    »angle quotation mark (right)&raquo;&#187;
    ¼fraction 1/4&frac14;&#188;
    ½fraction 1/2&frac12;&#189;
    ¾fraction 3/4&frac34;&#190;
    ¿inverted question mark&iquest;&#191;
    ×multiplication&times;&#215;
    ÷division&divide;&#247;

    ISO 8859-1 Character Entities

    Following are the ISO 8859-1 character entities that are listed below:

    ResultDescriptionEntity NameNumber Code
    Àcapital a, grave accent&Agrave;&#192;
    Ácapital a, acute accent&Aacute;&#193;
    Âcapital a, circumflex accent&Acirc;&#194;
    Ãcapital a, tilde&Atilde;&#195;
    Äcapital a, umlaut mark&Auml;&#196;
    Åcapital a, ring&Aring;&#197;
    Æcapital ae&AElig;&#198;
    Çcapital c, cedilla&Ccedil;&#199;
    Ècapital e, grave accent&Egrave;&#200;
    Écapital e, acute accent&Eacute;&#201;
    Êcapital e, circumflex accent&Ecirc;&#202;
    Ëcapital e, umlaut mark&Euml;&#203;
    Ìcapital i, grave accent&Igrave;&#204;
    Ícapital i, acute accent&Iacute;&#205;
    Îcapital i, circumflex accent&Icirc;&#206;
    Ïcapital i, umlaut mark&Iuml;&#207;
    Ðcapital eth, Icelandic&ETH;&#208;
    Ñcapital n, tilde&Ntilde;&#209;
    Òcapital o, grave accent&Ograve;&#210;
    Ócapital o, acute accent&Oacute;&#211;
    Ôcapital o, circumflex accent&Ocirc;&#212;
    Õcapital o, tilde&Otilde;&#213;
    Öcapital o, umlaut mark&Ouml;&#214;
    Øcapital o, slash&Oslash;&#216;
    Ùcapital u, grave accent&Ugrave;&#217;
    Úcapital u, acute accent&Uacute;&#218;
    Ûcapital u, circumflex accent&Ucirc;&#219;
    Ücapital u, umlaut mark&Uuml;&#220;
    Ýcapital y, acute accent&Yacute;&#221;
    Þcapital THORN, Icelandic&THORN;&#222;
    ßsmall sharp s, German&szlig;&#223;
    àsmall a, grave accent&agrave;&#224;
    ásmall a, acute accent&aacute;&#225;
    âsmall a, circumflex accent&acirc;&#226;
    ãsmall a, tilde&atilde;&#227;
    äsmall a, umlaut mark&auml;&#228;
    åsmall a, ring&aring;&#229;
    æsmall ae&aelig;&#230;
    çsmall c, cedilla&ccedil;&#231;
    èsmall e, grave accent&egrave;&#232;
    ésmall e, acute accent&eacute;&#233;
    êsmall e, circumflex accent&ecirc;&#234;
    ësmall e, umlaut mark&euml;&#235;
    ìsmall i, grave accent&igrave;&#236;
    ísmall i, acute accent&iacute;&#237;
    îsmall i, circumflex accent&icirc;&#238;
    ïsmall i, umlaut mark&iuml;&#239;
    ðsmall eth, Icelandic&eth;&#240;
    ñsmall n, tilde&ntilde;&#241;
    òsmall o, grave accent&ograve;&#242;
    ósmall o, acute accent&oacute;&#243;
    ôsmall o, circumflex accent&ocirc;&#244;
    õsmall o, tilde&otilde;&#245;
    ösmall o, umlaut mark&ouml;&#246;
    øsmall o, slash&oslash;&#248;
    ùsmall u, grave accent&ugrave;&#249;
    úsmall u, acute accent&uacute;&#250;
    ûsmall u, circumflex accent&ucirc;&#251;
    üsmall u, umlaut mark&uuml;&#252;
    ýsmall y, acute accent&yacute;&#253;
    þsmall thorn, Icelandic&thorn;&#254;
    ÿsmall y, umlaut mark&yuml;&#255;

    Other Entities Supported by Browsers

    Following are the other entities that are supported by browsers:

    ResultDescriptionEntity NameNumber Code
    Œcapital ligature OE&OElig;&#338;
    œsmall ligature oe&oelig;&#339;
    Šcapital S with caron&Scaron;&#352;
    šsmall S with caron&scaron;&#353;
    Ÿcapital Y with diaeres&Yuml;&#376;
    ˆmodifier letter circumflex accent&circ;&#710;
    ˜small tilde&tilde;&#732;
    en space&ensp;&#8194;
    em space&emsp;&#8195;
    thin space&thinsp;&#8201;
    zero width non-joiner&zwnj;&#8204;
    zero width joiner&zwj;&#8205;
    left-to-right mark&lrm;&#8206;
    right-to-left mark&rlm;&#8207;
    en dash&ndash;&#8211;
    em dash&mdash;&#8212;
    left single quotation mark&lsquo;&#8216;
    right single quotation mark&rsquo;&#8217;
    single low-9 quotation mark&sbquo;&#8218;
    left double quotation mark&ldquo;&#8220;
    right double quotation mark&rdquo;&#8221;
    double low-9 quotation mark&bdquo;&#8222;
    dagger&dagger;&#8224;
    double dagger&Dagger;&#8225;
    horizontal ellipsis&hellip;&#8230;
    per mille &permil;&#8240;
    single left-pointing angle quotation&lsaquo;&#8249;
    single right-pointing angle quotation&rsaquo;&#8250;
    euro&euro;&#8364;
  • Color Names

    HTML color names are the simplest way to define the color for the HTML elements, as they are predefined names for the colors, such as redgreenblue, etc. By using these HTML color names, you can apply colors without having knowledge of RGB and hexadecimal color codes.

    HTML Color Names

    Standard Color Names

    The table below lists the 16 color names introduced in HTML 3.2, along with their hex codes and color samples:

    Color NameHex ValueColor
    aqua#00ffff
    black#000000
    blue#0000ff
    fuchsia#ff00ff
    green#008000
    gray#808080
    lime#00ff00
    maroon#800000
    navy#000080
    olive#808000
    purple#800080
    red#ff0000
    silver#c0c0c0
    teal#008080
    white#ffffff
    yellow#ffff00

    Extended Color Names

    The following table lists colors, known as extended colors, that are not part of the HTML or XHTML specifications but are supported by most major browsers, along with their hex codes and color samples:

    Color NameHex ValueColor
    aliceblue#f0f8ff
    antiquewhite#faebd7
    aquamarine#7fffd4
    azure#f0ffff
    beige#f5f5dc
    bisque#ffe4c4
    blanchedalmond#ffebcd
    blueviolet#8a2be2
    brown#a52a2a
    burlywood#deb887
    cadetblue#5f9ea0
    chartreuse#7fff00
    chocolate#d2691e
    coral#ff7f50
    cornflowerblue#6495ed
    cornsilk#fff8dc
    crimson#dc143c
    cyan#00ffff
    darkblue#00008b
    darkcyan#008b8b
    darkgoldenrod#b8860b
    darkgray#a9a9a9
    darkgreen#006400
    darkkhaki#bdb76b
    darkmagenta#8b008b
    darkolivegreen#556b2f
    darkorange#ff8c00
    darkorchid#9932cc
    darkred#8b0000
    darksalmon#e9967a
    darkseagreen#8fbc8f
    darkslateblue#483d8b
    darkslategray#2f4f4f
    darkturquoise#00ced1
    darkviolet#9400d3
    deeppink#ff1493
    deepskyblue#00bfff
    dimgray#696969
    dodgerblue#1e90ff
    firebrick#b22222
    floralwhite#fffaf0
    forestgreen#228b22
    gainsboro#dcdcdc
    ghostwhite#f8f8ff
    gold#ffd700
    goldenrod#daa520
    gray#808080
    greenyellow#adff2f
    honeydew#f0fff0
    hotpink#ff69b4
    indianred#cd5c5c
    indigo#4b0082
    ivory#fffff0
    khaki#f0e68c
    lavender#e6e6fa
    lavenderblush#fff0f5
    lawngreen#7cfc00
    lemonchiffon#fffacd
    lightblue#add8e6
    lightcoral#f08080
    lightcyan#e0ffff
    lightgoldenrodyellow#fafad2
    lightgreen#90ee90
    lightgrey#d3d3d3
    lightpink#ffb6c1
    lightsalmon#ffa07a
    lightseagreen#20b2aa
    lightskyblue#87cefa
    lightslategray#778899
    lightsteelblue#b0c4de
    lightyellow#ffffe0
    limegreen#32cd32
    linen#faf0e6
    magenta#ff00ff
    mediumblue#0000cd
    mediumorchid#ba55d3
    mediumpurple#9370db
    midnightblue#191970
    mistyrose#ffe4e1
    moccasin#ffe4b5
    oldlace#fdf5e6
    orange#ffa500
    orchid#da70d6
    peachpuff#ffdab9
    peru#cd853f
    pink#ffc0cb
    plum#dda0dd
    purple#800080
    rosybrown#bc8f8f
    royalblue#4169e1
    salmon#fa8072
    sandybrown#f4a460
    seagreen#2e8b57
    sienna#a0522d
    skyblue#87ceeb
    slateblue#6a5acd
    steelblue#4682b4
    tan#d2b48c
    thistle#d8bfd8
    tomato#ff6347
    violet#ee82ee
    wheat#f5deb3
    whitesmoke#f5f5f5
    yellow#ffff00
    yellowgreen#9acd32
  • ASCII Table Lookup

    ASCII stands for American Standard Code for Information Interchange. There are 128 standard ASCII codes, each of which can be represented by a 7-digit binary number: 0000000 through 1111111.

    Extended ASCII adds an additional 128 characters that vary between computers, programs and fonts.

    7 Bit ASCII Codes

    DECOCTHEXBINSymbolHTML CodeDescription
    00000000000000NUL&#000;Null char
    10010100000001SOH&#001;Start of Heading
    20020200000010STX&#002;Start of Text
    30030300000011ETX&#003;End of Text
    40040400000100EOT&#004;End of Transmission
    50050500000101ENQ&#005;Enquiry
    60060600000110ACK&#006;Acknowledgment
    70070700000111BEL&#007;Bell
    80100800001000BS&#008;Back Space
    90110900001001HT&#009;Horizontal Tab
    100120A00001010LF&#010;Line Feed
    110130B00001011VT&#011;Vertical Tab
    120140C00001100FF&#012;Form Feed
    130150D00001101CR&#013;Carriage Return
    140160E00001110SO&#014;Shift Out / X-On
    150170F00001111SI&#015;Shift In / X-Off
    160201000010000DLE&#016;Data Line Escape
    170211100010001DC1&#017;Device Control 1 (oft. XON)
    180221200010010DC2&#018;Device Control 2
    190231300010011DC3&#019;Device Control 3 (oft. XOFF)
    200241400010100DC4&#020;Device Control 4
    210251500010101NAK&#021;Negative Acknowledgement
    220261600010110SYN&#022;Synchronous Idle
    230271700010111ETB&#023;End of Transmit Block
    240301800011000CAN&#024;Cancel
    250311900011001EM&#025;End of Medium
    260321A00011010SUB&#026;Substitute
    270331B00011011ESC&#027;Escape
    280341C00011100FS&#028;File Separator
    290351D00011101GS&#029;Group Separator
    300361E00011110RS&#030;Record Separator
    310371F00011111US&#031;Unit Separator
    320402000100000 &#32;Space
    330412100100001!&#33;Exclamation mark
    340422200100010&#34;Double quotes
    350432300100011#&#35;Number
    360442400100100$&#36;Dollar
    370452500100101%&#37;Procenttecken
    380462600100110&&#38;Ampersand
    390472700100111&#39;Single quote
    400502800101000(&#40;Open parenthesis
    410512900101001)&#41;Close parenthesis
    420522A00101010*&#42;Asterisk
    430532B00101011&plus;&#43;Plus
    440542C00101100,&#44;Comma
    450552D00101101&#45;Hyphen
    460562E00101110.&#46;Period, dot or full stop
    470572F00101111/&#47;Slash or divide
    4806030001100000&#48;Zero
    4906131001100011&#49;One
    5006232001100102&#50;Two
    5106333001100113&#51;Three
    5206434001101004&#52;Four
    5306535001101015&#53;Five
    5406636001101106&#54;Six
    5506737001101117&#55;Seven
    5607038001110008&#56;Eight
    5707139001110019&#57;Nine
    580723A00111010:&#58;Colon
    590733B00111011;&#59;Semicolon
    600743C00111100<&#60;Less than
    610753D00111101=&#61;Equals
    620763E00111110>&#62;Greater than
    630773F00111111?&#63;Question mark
    641004001000000@&#64;At symbol
    651014101000001A&#65;Uppercase A
    661024201000010B&#66;Uppercase B
    671034301000011C&#67;Uppercase C
    681044401000100D&#68;Uppercase D
    691054501000101E&#69;Uppercase E
    701064601000110F&#70;Uppercase F
    711074701000111G&#71;Uppercase G
    721104801001000H&#72;Uppercase H
    731114901001001I&#73;Uppercase I
    741124A01001010J&#74;Uppercase J
    751134B01001011K&#75;Uppercase K
    761144C01001100L&#76;Uppercase L
    771154D01001101M&#77;Uppercase M
    781164E01001110N&#78;Uppercase N
    791174F01001111O&#79;Uppercase O
    801205001010000P&#80;Uppercase P
    811215101010001Q&#81;Uppercase Q
    821225201010010R&#82;Uppercase R
    831235301010011S&#83;Uppercase S
    841245401010100T&#84;Uppercase T
    851255501010101U&#85;Uppercase U
    861265601010110V&#86;Uppercase V
    871275701010111W&#87;Uppercase W
    881305801011000X&#88;Uppercase X
    891315901011001Y&#89;Uppercase Y
    901325A01011010Z&#90;Uppercase Z
    911335B01011011[&#91;Opening bracket
    921345C01011100\&#92;Backslash
    931355D01011101]&#93;Closing bracket
    941365E01011110^&#94;Caret – circumflex
    951375F01011111_&#95;Underscore
    961406001100000`&#96;Grave accent
    971416101100001a&#97;Lowercase a
    981426201100010b&#98;Lowercase b
    991436301100011c&#99;Lowercase c
    1001446401100100d&#100;Lowercase d
    1011456501100101e&#101;Lowercase e
    1021466601100110f&#102;Lowercase f
    1031476701100111g&#103;Lowercase g
    1041506801101000h&#104;Lowercase h
    1051516901101001i&#105;Lowercase i
    1061526A01101010j&#106;Lowercase j
    1071536B01101011k&#107;Lowercase k
    1081546C01101100l&#108;Lowercase l
    1091556D01101101m&#109;Lowercase m
    1101566E01101110n&#110;Lowercase n
    1111576F01101111o&#111;Lowercase o
    1121607001110000p&#112;Lowercase p
    1131617101110001q&#113;Lowercase q
    1141627201110010r&#114;Lowercase r
    1151637301110011s&#115;Lowercase s
    1161647401110100t&#116;Lowercase t
    1171657501110101u&#117;Lowercase u
    1181667601110110v&#118;Lowercase v
    1191677701110111w&#119;Lowercase w
    1201707801111000x&#120;Lowercase x
    1211717901111001y&#121;Lowercase y
    1221727A01111010z&#122;Lowercase z
    1231737B01111011{&#123;Opening brace
    1241747C01111100|&#124;Vertical bar
    1251757D01111101}&#125;Closing brace
    1261767E01111110~&#126;Equivalency sign (tilde)
    1271777F01111111&#127;Delete

    Extended ASCII Codes

    Below is set of additional 128 Extended ASCII Codes according to ISO 8859-1, also called ISO Latin-1.

    DECOCTHEXBINSymbolHTMLCodeDescription
    1282008010000000€&#128;Euro sign
    1292018110000001   
    1302028210000010‚&#130;Single low-9 quotation mark
    1312038310000011ƒ&#131;Latin small letter f with hook
    1322048410000100„&#132;Double low-9 quotation mark
    1332058510000101…&#133;Horizontal ellipsis
    1342068610000110†&#134;Dagger
    1352078710000111‡&#135;Double dagger
    1362108810001000ˆ&#136;Modifier letter circumflex accent
    1372118910001001‰&#137;Per mille sign
    1382128A10001010Š&#138;Latin capital letter S with caron
    1392138B10001011‹&#139;Single left-pointing angle quotation
    1402148C10001100Œ&#140;Latin capital ligature OE
    1412158D10001101   
    1422168E10001110Ž&#142;Latin capital letter Z with caron
    1432178F10001111   
    1442209010010000   
    1452219110010001‘&#145;Left single quotation mark
    1462229210010010’&#146;Right single quotation mark
    1472239310010011“&#147;Left double quotation mark
    1482249410010100”&#148;Right double quotation mark
    1492259510010101•&#149;Bullet
    1502269610010110–&#150;En dash
    1512279710010111—&#151;Em dash
    1522309810011000˜&#152;Small tilde
    1532319910011001™&#153;Trade mark sign
    1542329A10011010š&#154;Latin small letter S with caron
    1552339B10011011›&#155;Single right-pointing angle quotation mark
    1562349C10011100œ&#156;Latin small ligature oe
    1572359D10011101   
    1582369E10011110ž&#158;Latin small letter z with caron
    1592379F10011111Ÿ&#159;Latin capital letter Y with diaeresis
    160240A010100000 &#160;Non-breaking space
    161241A110100001&#161;Inverted exclamation mark
    162242A210100010&#162;Cent sign
    163243A310100011&#163;Pound sign
    164244A410100100&#164;Currency sign
    165245A510100101&#165;Yen sign
    166246A610100110&#166;Pipe, Broken vertical bar
    167247A710100111&#167;Section sign
    168250A810101000&#168;Spacing diaeresis – umlaut
    169251A910101001&#169;Copyright sign
    170252AA10101010&#170;Feminine ordinal indicator
    171253AB10101011&#171;Left double angle quotes
    172254AC10101100&#172;Not sign
    173255AD10101101&#173;Soft hyphen
    174256AE10101110&#174;Registered trade mark sign
    175257AF10101111&#175;Spacing macron – overline
    176260B010110000&#176;Degree sign
    177261B110110001&#177;Plus-or-minus sign
    178262B210110010&#178;Superscript two – squared
    179263B310110011&#179;Superscript three – cubed
    180264B410110100&#180;Acute accent – spacing acute
    181265B510110101&#181;Micro sign
    182266B610110110&#182;Pilcrow sign – paragraph sign
    183267B710110111&#183;Middle dot – Georgian comma
    184270B810111000&#184;Spacing cedilla
    185271B910111001&#185;Superscript one
    186272BA10111010&#186;Masculine ordinal indicator
    187273BB10111011&#187;Right double angle quotes
    188274BC10111100&#188;Fraction one quarter
    189275BD10111101&#189;Fraction one half
    190276BE10111110&#190;Fraction three quarters
    191277BF10111111&#191;Inverted question mark
    192300C011000000&#192;Latin capital letter A with grave
    193301C111000001&#193;Latin capital letter A with acute
    194302C211000010&#194;Latin capital letter A with circumflex
    195303C311000011&#195;Latin capital letter A with tilde
    196304C411000100&#196;Latin capital letter A with diaeresis
    197305C511000101&#197;Latin capital letter A with ring above
    198306C611000110&#198;Latin capital letter AE
    199307C711000111&#199;Latin capital letter C with cedilla
    200310C811001000&#200;Latin capital letter E with grave
    201311C911001001&#201;Latin capital letter E with acute
    202312CA11001010&#202;Latin capital letter E with circumflex
    203313CB11001011&#203;Latin capital letter E with diaeresis
    204314CC11001100&#204;Latin capital letter I with grave
    205315CD11001101&#205;Latin capital letter I with acute
    206316CE11001110&#206;Latin capital letter I with circumflex
    207317CF11001111&#207;Latin capital letter I with diaeresis
    208320D011010000&#208;Latin capital letter ETH
    209321D111010001&#209;Latin capital letter N with tilde
    210322D211010010&#210;Latin capital letter O with grave
    211323D311010011&#211;Latin capital letter O with acute
    212324D411010100&#212;Latin capital letter O with circumflex
    213325D511010101&#213;Latin capital letter O with tilde
    214326D611010110&#214;Latin capital letter O with diaeresis
    215327D711010111&#215;Multiplication sign
    216330D811011000&#216;Latin capital letter O with slash
    217331D911011001&#217;Latin capital letter U with grave
    218332DA11011010&#218;Latin capital letter U with acute
    219333DB11011011&#219;Latin capital letter U with circumflex
    220334DC11011100&#220;Latin capital letter U with diaeresis
    221335DD11011101&#221;Latin capital letter Y with acute
    222336DE11011110&#222;Latin capital letter THORN
    223337DF11011111&#223;Latin small letter sharp s – ess-zed
    224340E011100000&#224;Latin small letter a with grave
    225341E111100001&#225;Latin small letter a with acute
    226342E211100010&#226;Latin small letter a with circumflex
    227343E311100011&#227;Latin small letter a with tilde
    228344E411100100&#228;Latin small letter a with diaeresis
    229345E511100101&#229;Latin small letter a with ring above
    230346E611100110&#230;Latin small letter ae
    231347E711100111&#231;Latin small letter c with cedilla
    232350E811101000&#232;Latin small letter e with grave
    233351E911101001&#233;Latin small letter e with acute
    234352EA11101010&#234;Latin small letter e with circumflex
    235353EB11101011&#235;Latin small letter e with diaeresis
    236354EC11101100&#236;Latin small letter i with grave
    237355ED11101101&#237;Latin small letter i with acute
    238356EE11101110&#238;Latin small letter i with circumflex
    239357EF11101111&#239;Latin small letter i with diaeresis
    240360F011110000&#240;Latin small letter eth
    241361F111110001&#241;Latin small letter n with tilde
    242362F211110010&#242;Latin small letter o with grave
    243363F311110011&#243;Latin small letter o with acute
    244364F411110100&#244;Latin small letter o with circumflex
    245365F511110101&#245;Latin small letter o with tilde
    246366F611110110&#246;Latin small letter o with diaeresis
    247367F711110111&#247;Division sign
    248370F811111000&#248;Latin small letter o with slash
    249371F911111001&#249;Latin small letter u with grave
    250372FA11111010&#250;Latin small letter u with acute
    251373FB11111011&#251;Latin small letter u with circumflex
    252374FC11111100&#252;Latin small letter u with diaeresis
    253375FD11111101&#253;Latin small letter y with acute
    254376FE11111110&#254;Latin small letter thorn
    255377FF11111111&#255;Latin small letter y with diaeresis

  • ASCII Codes Reference

    ASCII stands for American Standard Code for Information Interchange. There are 27 = 128 printable characters which can be represented by different 7-BIT ASCII codes, each of which can be represented by a 7-digit binary number from 0000000 to 1111111.

    Extended ASCII adds an additional 128 characters that vary between computers, programs and fonts.

    HTML Codes – Table of ASCII characters and symbols

    The below table can be used as reference for ASCII characters. There are types of ASCII characters as mentioned below.

    • Device Control Characters: The characters from 0 to 31 are ASCII device control characters.
    • Printable characters: The characters from 32 to 127 are actual printable characters.

    ASCII Device Control Characters

    Following are the 7-BIT ASCII device control characters that are listed below:

    DECOCTHEXBINSymbolHTML CodeDescription
    00000000000000NUL&#000;Null char
    10010100000001SOH&#001;Start of Heading
    20020200000010STX&#002;Start of Text
    30030300000011ETX&#003;End of Text
    40040400000100EOT&#004;End of Transmission
    50050500000101ENQ&#005;Enquiry
    60060600000110ACK&#006;Acknowledgment
    70070700000111BEL&#007;Bell
    80100800001000BS&#008;Back Space
    90110900001001HT&#009;Horizontal Tab
    100120A00001010LF&#010;Line Feed
    110130B00001011VT&#011;Vertical Tab
    120140C00001100FF&#012;Form Feed
    130150D00001101CR&#013;Carriage Return
    140160E00001110SO&#014;Shift Out / X-On
    150170F00001111SI&#015;Shift In / X-Off
    160201000010000DLE&#016;Data Line Escape
    170211100010001DC1&#017;Device Control 1 (oft. XON)
    180221200010010DC2&#018;Device Control 2
    190231300010011DC3&#019;Device Control 3 (oft. XOFF)
    200241400010100DC4&#020;Device Control 4
    210251500010101NAK&#021;Negative Acknowledgement
    220261600010110SYN&#022;Synchronous Idle
    230271700010111ETB&#023;End of Transmit Block
    240301800011000CAN&#024;Cancel
    250311900011001EM&#025;End of Medium
    260321A00011010SUB&#026;Substitute
    270331B00011011ESC&#027;Escape
    280341C00011100FS&#028;File Separator
    290351D00011101GS&#029;Group Separator
    300361E00011110RS&#030;Record Separator
    310371F00011111US&#031;Unit Separator

    Printable ASCII Characters

    Following are the ASCII characters that are listed below:

    DECOCTHEXBINSymbolHTML CodeDescription
    320402000100000 &#32;Space
    330412100100001!&#33;Exclamation mark
    340422200100010&#34;Double quotes
    350432300100011#&#35;Number
    360442400100100$&#36;Dollar
    370452500100101%&#37;Procenttecken
    380462600100110&&#38;Ampersand
    390472700100111&#39;Single quote
    400502800101000(&#40;Open parenthesis
    410512900101001)&#41;Close parenthesis
    420522A00101010*&#42;Asterisk
    430532B00101011&plus;&#43;Plus
    440542C00101100,&#44;Comma
    450552D00101101&#45;Hyphen
    460562E00101110.&#46;Period, dot or full stop
    470572F00101111/&#47;Slash or divide
    4806030001100000&#48;Zero
    4906131001100011&#49;One
    5006232001100102&#50;Two
    5106333001100113&#51;Three
    5206434001101004&#52;Four
    5306535001101015&#53;Five
    5406636001101106&#54;Six
    5506737001101117&#55;Seven
    5607038001110008&#56;Eight
    5707139001110019&#57;Nine
    580723A00111010:&#58;Colon
    590733B00111011;&#59;Semicolon
    600743C00111100<&#60;Less than
    610753D00111101=&#61;Equals
    620763E00111110>&#62;Greater than
    630773F00111111?&#63;Question mark
    641004001000000@&#64;At symbol
    651014101000001A&#65;Uppercase A
    661024201000010B&#66;Uppercase B
    671034301000011C&#67;Uppercase C
    681044401000100D&#68;Uppercase D
    691054501000101E&#69;Uppercase E
    701064601000110F&#70;Uppercase F
    711074701000111G&#71;Uppercase G
    721104801001000H&#72;Uppercase H
    731114901001001I&#73;Uppercase I
    741124A01001010J&#74;Uppercase J
    751134B01001011K&#75;Uppercase K
    761144C01001100L&#76;Uppercase L
    771154D01001101M&#77;Uppercase M
    781164E01001110N&#78;Uppercase N
    791174F01001111O&#79;Uppercase O
    801205001010000P&#80;Uppercase P
    811215101010001Q&#81;Uppercase Q
    821225201010010R&#82;Uppercase R
    831235301010011S&#83;Uppercase S
    841245401010100T&#84;Uppercase T
    851255501010101U&#85;Uppercase U
    861265601010110V&#86;Uppercase V
    871275701010111W&#87;Uppercase W
    881305801011000X&#88;Uppercase X
    891315901011001Y&#89;Uppercase Y
    901325A01011010Z&#90;Uppercase Z
    911335B01011011[&#91;Opening bracket
    921345C01011100\&#92;Backslash
    931355D01011101]&#93;Closing bracket
    941365E01011110^&#94;Caret – circumflex
    951375F01011111_&#95;Underscore
    961406001100000`&#96;Grave accent
    971416101100001a&#97;Lowercase a
    981426201100010b&#98;Lowercase b
    991436301100011c&#99;Lowercase c
    1001446401100100d&#100;Lowercase d
    1011456501100101e&#101;Lowercase e
    1021466601100110f&#102;Lowercase f
    1031476701100111g&#103;Lowercase g
    1041506801101000h&#104;Lowercase h
    1051516901101001i&#105;Lowercase i
    1061526A01101010j&#106;Lowercase j
    1071536B01101011k&#107;Lowercase k
    1081546C01101100l&#108;Lowercase l
    1091556D01101101m&#109;Lowercase m
    1101566E01101110n&#110;Lowercase n
    1111576F01101111o&#111;Lowercase o
    1121607001110000p&#112;Lowercase p
    1131617101110001q&#113;Lowercase q
    1141627201110010r&#114;Lowercase r
    1151637301110011s&#115;Lowercase s
    1161647401110100t&#116;Lowercase t
    1171657501110101u&#117;Lowercase u
    1181667601110110v&#118;Lowercase v
    1191677701110111w&#119;Lowercase w
    1201707801111000x&#120;Lowercase x
    1211717901111001y&#121;Lowercase y
    1221727A01111010z&#122;Lowercase z
    1231737B01111011{&#123;Opening brace
    1241747C01111100|&#124;Vertical bar
    1251757D01111101}&#125;Closing brace
    1261767E01111110~&#126;Equivalency sign (tilde)
    1271777F01111111&#127;Delete

    Extended ASCII Codes

    Below is set of additional 128 Extended ASCII Codes according to ISO 8859-1, also called ISO Latin-1.

    DECOCTHEXBINSymbolHTMLCodeDescription
    1282008010000000€&#128;Euro sign
    1292018110000001   
    1302028210000010‚&#130;Single low-9 quotation mark
    1312038310000011ƒ&#131;Latin small letter f with hook
    1322048410000100„&#132;Double low-9 quotation mark
    1332058510000101…&#133;Horizontal ellipsis
    1342068610000110†&#134;Dagger
    1352078710000111‡&#135;Double dagger
    1362108810001000ˆ&#136;Modifier letter circumflex accent
    1372118910001001‰&#137;Per mille sign
    1382128A10001010Š&#138;Latin capital letter S with caron
    1392138B10001011‹&#139;Single left-pointing angle quotation
    1402148C10001100Œ&#140;Latin capital ligature OE
    1412158D10001101   
    1422168E10001110Ž&#142;Latin capital letter Z with caron
    1432178F10001111   
    1442209010010000   
    1452219110010001‘&#145;Left single quotation mark
    1462229210010010’&#146;Right single quotation mark
    1472239310010011“&#147;Left double quotation mark
    1482249410010100”&#148;Right double quotation mark
    1492259510010101•&#149;Bullet
    1502269610010110–&#150;En dash
    1512279710010111—&#151;Em dash
    1522309810011000˜&#152;Small tilde
    1532319910011001™&#153;Trade mark sign
    1542329A10011010š&#154;Latin small letter S with caron
    1552339B10011011›&#155;Single right-pointing angle quotation mark
    1562349C10011100œ&#156;Latin small ligature oe
    1572359D10011101   
    1582369E10011110ž&#158;Latin small letter z with caron
    1592379F10011111Ÿ&#159;Latin capital letter Y with diaeresis
    160240A010100000 &#160;Non-breaking space
    161241A110100001¡&#161;Inverted exclamation mark
    162242A210100010¢&#162;Cent sign
    163243A310100011£&#163;Pound sign
    164244A410100100¤&#164;Currency sign
    165245A510100101¥&#165;Yen sign
    166246A610100110¦&#166;Pipe, Broken vertical bar
    167247A710100111§&#167;Section sign
    168250A810101000¨&#168;Spacing diaeresis – umlaut
    169251A910101001©&#169;Copyright sign
    170252AA10101010ª&#170;Feminine ordinal indicator
    171253AB10101011«&#171;Left double angle quotes
    172254AC10101100¬&#172;Not sign
    173255AD10101101­&#173;Soft hyphen
    174256AE10101110®&#174;Registered trade mark sign
    175257AF10101111¯&#175;Spacing macron – overline
    176260B010110000°&#176;Degree sign
    177261B110110001±&#177;Plus-or-minus sign
    178262B210110010²&#178;Superscript two – squared
    179263B310110011³&#179;Superscript three – cubed
    180264B410110100´&#180;Acute accent – spacing acute
    181265B510110101µ&#181;Micro sign
    182266B610110110&#182;Pilcrow sign – paragraph sign
    183267B710110111·&#183;Middle dot – Georgian comma
    184270B810111000¸&#184;Spacing cedilla
    185271B910111001¹&#185;Superscript one
    186272BA10111010º&#186;Masculine ordinal indicator
    187273BB10111011»&#187;Right double angle quotes
    188274BC10111100¼&#188;Fraction one quarter
    189275BD10111101½&#189;Fraction one half
    190276BE10111110¾&#190;Fraction three quarters
    191277BF10111111¿&#191;Inverted question mark
    192300C011000000À&#192;Latin capital letter A with grave
    193301C111000001Á&#193;Latin capital letter A with acute
    194302C211000010Â&#194;Latin capital letter A with circumflex
    195303C311000011Ã&#195;Latin capital letter A with tilde
    196304C411000100Ä&#196;Latin capital letter A with diaeresis
    197305C511000101Å&#197;Latin capital letter A with ring above
    198306C611000110Æ&#198;Latin capital letter AE
    199307C711000111Ç&#199;Latin capital letter C with cedilla
    200310C811001000È&#200;Latin capital letter E with grave
    201311C911001001É&#201;Latin capital letter E with acute
    202312CA11001010Ê&#202;Latin capital letter E with circumflex
    203313CB11001011Ë&#203;Latin capital letter E with diaeresis
    204314CC11001100Ì&#204;Latin capital letter I with grave
    205315CD11001101Í&#205;Latin capital letter I with acute
    206316CE11001110Î&#206;Latin capital letter I with circumflex
    207317CF11001111Ï&#207;Latin capital letter I with diaeresis
    208320D011010000Ð&#208;Latin capital letter ETH
    209321D111010001Ñ&#209;Latin capital letter N with tilde
    210322D211010010Ò&#210;Latin capital letter O with grave
    211323D311010011Ó&#211;Latin capital letter O with acute
    212324D411010100Ô&#212;Latin capital letter O with circumflex
    213325D511010101Õ&#213;Latin capital letter O with tilde
    214326D611010110Ö&#214;Latin capital letter O with diaeresis
    215327D711010111×&#215;Multiplication sign
    216330D811011000Ø&#216;Latin capital letter O with slash
    217331D911011001Ù&#217;Latin capital letter U with grave
    218332DA11011010Ú&#218;Latin capital letter U with acute
    219333DB11011011Û&#219;Latin capital letter U with circumflex
    220334DC11011100Ü&#220;Latin capital letter U with diaeresis
    221335DD11011101Ý&#221;Latin capital letter Y with acute
    222336DE11011110Þ&#222;Latin capital letter THORN
    223337DF11011111ß&#223;Latin small letter sharp s – ess-zed
    224340E011100000à&#224;Latin small letter a with grave
    225341E111100001á&#225;Latin small letter a with acute
    226342E211100010â&#226;Latin small letter a with circumflex
    227343E311100011ã&#227;Latin small letter a with tilde
    228344E411100100ä&#228;Latin small letter a with diaeresis
    229345E511100101å&#229;Latin small letter a with ring above
    230346E611100110æ&#230;Latin small letter ae
    231347E711100111ç&#231;Latin small letter c with cedilla
    232350E811101000è&#232;Latin small letter e with grave
    233351E911101001é&#233;Latin small letter e with acute
    234352EA11101010ê&#234;Latin small letter e with circumflex
    235353EB11101011ë&#235;Latin small letter e with diaeresis
    236354EC11101100ì&#236;Latin small letter i with grave
    237355ED11101101í&#237;Latin small letter i with acute
    238356EE11101110î&#238;Latin small letter i with circumflex
    239357EF11101111ï&#239;Latin small letter i with diaeresis
    240360F011110000ð&#240;Latin small letter eth
    241361F111110001ñ&#241;Latin small letter n with tilde
    242362F211110010ò&#242;Latin small letter o with grave
    243363F311110011ó&#243;Latin small letter o with acute
    244364F411110100ô&#244;Latin small letter o with circumflex
    245365F511110101õ&#245;Latin small letter o with tilde
    246366F611110110ö&#246;Latin small letter o with diaeresis
    247367F711110111÷&#247;Division sign
    248370F811111000ø&#248;Latin small letter o with slash
    249371F911111001ù&#249;Latin small letter u with grave
    250372FA11111010ú&#250;Latin small letter u with acute
    251373FB11111011û&#251;Latin small letter u with circumflex
    252374FC11111100ü&#252;Latin small letter u with diaeresis
    253375FD11111101ý&#253;Latin small letter y with acute
    254376FE11111110þ&#254;Latin small letter thorn
    255377FF11111111ÿ&#255;Latin small letter y with diaeresis
  • Fonts Reference

    Fonts are specific to platform. You will have a different look and feel of a web page on different machines running different operating systems, like Windows, Linux, or Mac iOS. Here we are giving a list of fonts that are available in various operating systems.

    HTML <font> tag is deprecated in version 4.0 onwards, and now all fonts are set by using CSS.

    Syntax

    Here is the simple syntax for setting the font of a body of a web page:

    To set font using CSS class:

    body{font-family:"new century schoolbook";}

    To set font using inline CSS i.e., with HTML tag:

    <body style = "font-family:new century schoolbook;">

    HTML font Tag

    HTML<font> tag is deprecated in latest versions of HTML. In older versions, a font tag can be used to add style, size, and color to the text on your website. You can use a <basefont&gt tag to set all of your text to the same size, face, and color. HTML font tags have three attributes called size, color, and face to customize your fonts.

    Web safe fonts

    CSS3 has adapted font combinations technology. If the browser doesn’t support the first font, then it tries the next font. Here is the list of CSS Web Safe Fonts.

    Example of HTML Fonts

    Let’s look at the basic example of the usage of the fonts in the HTML document

    Open Compiler

    <!DOCTYPE html><html><head><title>Font Setting Using CSS</title></head><body><p>
    
      Change any of the style and try it.
    </p><div style="font-family:verdana;">
      This is demo for font family
    </div><br /><div style="font-size:120%;">
      This is demo for font size
    </div><br /><div style="font-size:14pt;">
      This is demo for font size
    </div></body></html>

    When we run the above code, the output window will pop up, displaying the text with different fonts displayed on the webpage.

    Fonts for Microsoft Systems

    Following are the fonts for Microsoft Systems listed below −

    FontFontFont
    Andale MonoArialArial Bold
    Arial ItalicArial Bold ItalicArial Black
    Comic Sans MSComic Sans MS BoldCourier New
    Courier New BoldCourier New ItalicCourier New Bold Italic
    GeorgiaGeorgia BoldGeorgia Italic
    Georgia Bold ItalicImpactLucida Console
    Lucida Sans UnicodeMarlettMinion Web
    SymbolTimes New RomanTimes New Roman Bold
    Times New Roman ItalicTimes New Roman Bold ItalicTahoma
    Trebuchet MSTrebuchet MS BoldTrebuchet MS Italic
    Trebuchet MS Bold ItalicVerdanaVerdana Bold
    Verdana ItalicVerdana Bold ItalicWebdings

    You can check example fonts here Microsoft Fonts Examples.

    Fonts for Macintosh Systems

    Following is the list of fonts supported by Macintosh System 7 and higher versions.

    FontFontFont
    American TypewriterAndale MonoApple Chancery
    ArialArial BlackBrush Script
    BaskervilleBig CaslonComic Sans MS
    CopperplateCourier NewGill Sans
    FuturaHerculanumImpact
    Lucida GrandeMarker FeltOptima
    Trebuchet MSVerdanaWebdings
    PalatinoSymbolTimes
    OsakaPapyrusTimes New Roman
    TextileZapf DingbatsZapfino
    TechnoHoefler TextSkia
    Hoefler Text OrnamentsCapitalsCharcoal
    GadgetSand

    You can check example fonts here Mac Fonts Examples.

    Fonts for Unix Systems

    Following is the list of fonts supported by most Unix System variants

    FontFontFont
    CharterCleanCourier
    FixedHelveticaLucida
    Lucida brightLucida TypewriterNew Century Schoolbook
    SymbolTerminalTimes
    Utopia

    You can check example fonts here Unix Fonts Examples.