SlideShare ist ein Scribd-Unternehmen logo
1 von 5
Downloaden Sie, um offline zu lesen
Special Characters
Special Characters in XHTML:
   Some common characters cannot be written directly into
    our code as the XHTML processor (browser) would
    confuse them for our markup (code).
   Sometimes we need to show a character that is not on
    the typical keyboard, such as a copyright symbol or a
    character from a foreign language.
   Another issue is that XHTML ignores multiple spaces,
    but there are occasions in which we want to display
    multiple consecutive spaces.
   We solve all these issues by using special characters.
Common Special Characters:
    Special Character       XHTML Code         Displays As

       Blank Space               
   Open or Close Quote          "               "

        Ampersand               &                &

         Less Than                &lt;               <

       Greater Than              &gt;                >


    The last four characters in this table would easily confuse the
 browser. Without using this method, how would it know whether we
   were writing XHTML code or whether we wanted to display the
                           character itself?
More Special Characters:
    Special Character      XHTML Code         Displays As

        Cent Sign              &cent;               ¢
    Copyright Symbol           &copy;              ©

    Trademark Symbol            &reg;              ®

       1/2 Fraction           &frac12;             ½

  Inverted Question Mark      &iquest;             ¿

  Small e, Acute Accent       &eacute;              é

   These are just a sample of the dozens of special characters
                       available to use.
Example Special Characters:
<body>
<p>3 extra spaces: &nbsp;&nbsp;&nbsp; here</p>
<p>quote: &quot;in quotes&quot;</p>
<p>ampersand: &amp;</p>
<p>less than: &lt;</p>
<p>greater than: &gt;</p>
<p>cent sign: &cent;</p>
<p>small e (acute): caf&eacute;</p>
</body>



                         3 extra spaces:      here
                         quote: "in quotes"
                         ampersand: &
                         less than: <
                         greater than: >
                         cent sign: ¢
                         small e (acute): café

Weitere ähnliche Inhalte

Was ist angesagt? (19)

The Basics of (X)HTML Tags
The Basics of (X)HTML TagsThe Basics of (X)HTML Tags
The Basics of (X)HTML Tags
 
SEO Structures by Yavor Milchev
SEO Structures by Yavor MilchevSEO Structures by Yavor Milchev
SEO Structures by Yavor Milchev
 
Basic html
Basic htmlBasic html
Basic html
 
Learning HTML
Learning HTMLLearning HTML
Learning HTML
 
Html basic
Html basicHtml basic
Html basic
 
KMUTNB - Internet Programming 3/7
KMUTNB - Internet Programming 3/7KMUTNB - Internet Programming 3/7
KMUTNB - Internet Programming 3/7
 
Html Ppt
Html PptHtml Ppt
Html Ppt
 
Lecture 2 introduction to html
Lecture 2  introduction to htmlLecture 2  introduction to html
Lecture 2 introduction to html
 
Html Ppt
Html PptHtml Ppt
Html Ppt
 
Htmltag.ppt
Htmltag.pptHtmltag.ppt
Htmltag.ppt
 
Intro Html
Intro HtmlIntro Html
Intro Html
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Eye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easilyEye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easily
 
New HTML5/CSS3 techniques
New HTML5/CSS3 techniquesNew HTML5/CSS3 techniques
New HTML5/CSS3 techniques
 
Learning Html
Learning HtmlLearning Html
Learning Html
 
Php
PhpPhp
Php
 
JSP Custom Tags
JSP Custom TagsJSP Custom Tags
JSP Custom Tags
 
Html basics
Html basicsHtml basics
Html basics
 

Andere mochten auch

Geol3 field assignment
Geol3 field assignmentGeol3 field assignment
Geol3 field assignmentLauraLopez2112
 
The reed flute cave
The reed flute caveThe reed flute cave
The reed flute caveEva Vovka
 
Kade karu ott 2
Kade karu ott 2Kade karu ott 2
Kade karu ott 2max97
 
TPA-AL Wiki Explained
TPA-AL Wiki ExplainedTPA-AL Wiki Explained
TPA-AL Wiki Explainedmendi2333
 
Chachies del boske nuboso
Chachies del boske nubosoChachies del boske nuboso
Chachies del boske nubosokuckling2010
 
Mūžizglītības programmas comenius apkašprogrammas
Mūžizglītības programmas comenius apkašprogrammasMūžizglītības programmas comenius apkašprogrammas
Mūžizglītības programmas comenius apkašprogrammasEva Vovka
 
Another world by Anna Sintija
Another world by Anna SintijaAnother world by Anna Sintija
Another world by Anna SintijaEva Vovka
 
Comenius Liiverpool
Comenius LiiverpoolComenius Liiverpool
Comenius LiiverpoolEva Vovka
 
Antivirusbok eva eileen margit
Antivirusbok eva eileen margitAntivirusbok eva eileen margit
Antivirusbok eva eileen margitEvaUnn39
 
Questionaire all-teachers-2011
Questionaire all-teachers-2011Questionaire all-teachers-2011
Questionaire all-teachers-2011Mihajlo Gajic
 
5.2 nesting and floating elements
5.2 nesting and floating elements5.2 nesting and floating elements
5.2 nesting and floating elementsBulldogs83
 
Hydroelectricity
HydroelectricityHydroelectricity
HydroelectricityEva Vovka
 
Type5 - Project3
Type5 - Project3Type5 - Project3
Type5 - Project3lalaleung
 
Luminare, inc
Luminare, incLuminare, inc
Luminare, incpatri2593
 
Špoģi-Syke
Špoģi-Syke  Špoģi-Syke
Špoģi-Syke Eva Vovka
 
Ecologic footprint
Ecologic footprintEcologic footprint
Ecologic footprintEva Vovka
 
Marathon Oil Corp. Industry Profile
Marathon Oil Corp. Industry ProfileMarathon Oil Corp. Industry Profile
Marathon Oil Corp. Industry ProfileLIS7205
 
3.2 introduction to css
3.2 introduction to css3.2 introduction to css
3.2 introduction to cssBulldogs83
 

Andere mochten auch (20)

Geol3 field assignment
Geol3 field assignmentGeol3 field assignment
Geol3 field assignment
 
The reed flute cave
The reed flute caveThe reed flute cave
The reed flute cave
 
Kade karu ott 2
Kade karu ott 2Kade karu ott 2
Kade karu ott 2
 
TPA-AL Wiki Explained
TPA-AL Wiki ExplainedTPA-AL Wiki Explained
TPA-AL Wiki Explained
 
Chachies del boske nuboso
Chachies del boske nubosoChachies del boske nuboso
Chachies del boske nuboso
 
Mūžizglītības programmas comenius apkašprogrammas
Mūžizglītības programmas comenius apkašprogrammasMūžizglītības programmas comenius apkašprogrammas
Mūžizglītības programmas comenius apkašprogrammas
 
Another world by Anna Sintija
Another world by Anna SintijaAnother world by Anna Sintija
Another world by Anna Sintija
 
Comenius Liiverpool
Comenius LiiverpoolComenius Liiverpool
Comenius Liiverpool
 
Antivirusbok eva eileen margit
Antivirusbok eva eileen margitAntivirusbok eva eileen margit
Antivirusbok eva eileen margit
 
Questionaire all-teachers-2011
Questionaire all-teachers-2011Questionaire all-teachers-2011
Questionaire all-teachers-2011
 
5.2 nesting and floating elements
5.2 nesting and floating elements5.2 nesting and floating elements
5.2 nesting and floating elements
 
Hydroelectricity
HydroelectricityHydroelectricity
Hydroelectricity
 
Type5 - Project3
Type5 - Project3Type5 - Project3
Type5 - Project3
 
Luminare, inc
Luminare, incLuminare, inc
Luminare, inc
 
Špoģi-Syke
Špoģi-Syke  Špoģi-Syke
Špoģi-Syke
 
Ecologic footprint
Ecologic footprintEcologic footprint
Ecologic footprint
 
Recycling
RecyclingRecycling
Recycling
 
Marathon Oil Corp. Industry Profile
Marathon Oil Corp. Industry ProfileMarathon Oil Corp. Industry Profile
Marathon Oil Corp. Industry Profile
 
Enviornmental injustice
Enviornmental injusticeEnviornmental injustice
Enviornmental injustice
 
3.2 introduction to css
3.2 introduction to css3.2 introduction to css
3.2 introduction to css
 

Ähnlich wie 6.1 special characters

Ähnlich wie 6.1 special characters (20)

week 3 slides.pptx
week 3 slides.pptxweek 3 slides.pptx
week 3 slides.pptx
 
Entities
EntitiesEntities
Entities
 
Entities
EntitiesEntities
Entities
 
Xhtml Css Presentation
Xhtml Css PresentationXhtml Css Presentation
Xhtml Css Presentation
 
Class 1 handout (2) html exercises
Class 1 handout (2) html exercisesClass 1 handout (2) html exercises
Class 1 handout (2) html exercises
 
html.pptx
html.pptxhtml.pptx
html.pptx
 
Lecture-2.pptx
Lecture-2.pptxLecture-2.pptx
Lecture-2.pptx
 
Basic Html Notes
Basic Html NotesBasic Html Notes
Basic Html Notes
 
Html introduction
Html introductionHtml introduction
Html introduction
 
Xml
XmlXml
Xml
 
Html Expression Web
Html Expression WebHtml Expression Web
Html Expression Web
 
Dynamic Web Pages Ch 1 V1.0
Dynamic Web Pages Ch 1 V1.0Dynamic Web Pages Ch 1 V1.0
Dynamic Web Pages Ch 1 V1.0
 
introduction to web technology
introduction to web technologyintroduction to web technology
introduction to web technology
 
Javascript
JavascriptJavascript
Javascript
 
Php Form
Php FormPhp Form
Php Form
 
Html entities
Html entitiesHtml entities
Html entities
 
Babitha5.php
Babitha5.phpBabitha5.php
Babitha5.php
 
Php
PhpPhp
Php
 
Babitha5.php
Babitha5.phpBabitha5.php
Babitha5.php
 
Babitha5.php
Babitha5.phpBabitha5.php
Babitha5.php
 

Mehr von Bulldogs83

7.2 external style sheets
7.2 external style sheets7.2 external style sheets
7.2 external style sheetsBulldogs83
 
7.1 xhtml validation
7.1 xhtml validation7.1 xhtml validation
7.1 xhtml validationBulldogs83
 
6.2 css link styling
6.2 css link styling6.2 css link styling
6.2 css link stylingBulldogs83
 
5.1 css box model
5.1 css box model5.1 css box model
5.1 css box modelBulldogs83
 
4.3 table styling
4.3 table styling4.3 table styling
4.3 table stylingBulldogs83
 
4.2 css classes
4.2 css classes4.2 css classes
4.2 css classesBulldogs83
 
4.1 advanced tables
4.1 advanced tables4.1 advanced tables
4.1 advanced tablesBulldogs83
 
3.1 xhtml tables
3.1 xhtml tables3.1 xhtml tables
3.1 xhtml tablesBulldogs83
 
3.2 introduction to css
3.2 introduction to css3.2 introduction to css
3.2 introduction to cssBulldogs83
 
2.1 adding images
2.1 adding images2.1 adding images
2.1 adding imagesBulldogs83
 
1.4 adding comments copy (2)
1.4 adding comments   copy (2)1.4 adding comments   copy (2)
1.4 adding comments copy (2)Bulldogs83
 
1.4 adding comments copy (2)
1.4 adding comments   copy (2)1.4 adding comments   copy (2)
1.4 adding comments copy (2)Bulldogs83
 
1.3 creating links
1.3 creating links1.3 creating links
1.3 creating linksBulldogs83
 
1.3 creating links
1.3 creating links1.3 creating links
1.3 creating linksBulldogs83
 
1.2 elements and attributes copy (3)
1.2 elements and attributes   copy (3)1.2 elements and attributes   copy (3)
1.2 elements and attributes copy (3)Bulldogs83
 
1.2 elements and attributes copy (3)
1.2 elements and attributes   copy (3)1.2 elements and attributes   copy (3)
1.2 elements and attributes copy (3)Bulldogs83
 
1.1 xhtml basics
1.1 xhtml basics1.1 xhtml basics
1.1 xhtml basicsBulldogs83
 

Mehr von Bulldogs83 (17)

7.2 external style sheets
7.2 external style sheets7.2 external style sheets
7.2 external style sheets
 
7.1 xhtml validation
7.1 xhtml validation7.1 xhtml validation
7.1 xhtml validation
 
6.2 css link styling
6.2 css link styling6.2 css link styling
6.2 css link styling
 
5.1 css box model
5.1 css box model5.1 css box model
5.1 css box model
 
4.3 table styling
4.3 table styling4.3 table styling
4.3 table styling
 
4.2 css classes
4.2 css classes4.2 css classes
4.2 css classes
 
4.1 advanced tables
4.1 advanced tables4.1 advanced tables
4.1 advanced tables
 
3.1 xhtml tables
3.1 xhtml tables3.1 xhtml tables
3.1 xhtml tables
 
3.2 introduction to css
3.2 introduction to css3.2 introduction to css
3.2 introduction to css
 
2.1 adding images
2.1 adding images2.1 adding images
2.1 adding images
 
1.4 adding comments copy (2)
1.4 adding comments   copy (2)1.4 adding comments   copy (2)
1.4 adding comments copy (2)
 
1.4 adding comments copy (2)
1.4 adding comments   copy (2)1.4 adding comments   copy (2)
1.4 adding comments copy (2)
 
1.3 creating links
1.3 creating links1.3 creating links
1.3 creating links
 
1.3 creating links
1.3 creating links1.3 creating links
1.3 creating links
 
1.2 elements and attributes copy (3)
1.2 elements and attributes   copy (3)1.2 elements and attributes   copy (3)
1.2 elements and attributes copy (3)
 
1.2 elements and attributes copy (3)
1.2 elements and attributes   copy (3)1.2 elements and attributes   copy (3)
1.2 elements and attributes copy (3)
 
1.1 xhtml basics
1.1 xhtml basics1.1 xhtml basics
1.1 xhtml basics
 

Kürzlich hochgeladen

Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWQuiz Club NITW
 
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...Nguyen Thanh Tu Collection
 
Indexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdfIndexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdfChristalin Nelson
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdfMr Bounab Samir
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...Nguyen Thanh Tu Collection
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDhatriParmar
 
How to Uninstall a Module in Odoo 17 Using Command Line
How to Uninstall a Module in Odoo 17 Using Command LineHow to Uninstall a Module in Odoo 17 Using Command Line
How to Uninstall a Module in Odoo 17 Using Command LineCeline George
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesVijayaLaxmi84
 
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxCLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxAnupam32727
 
6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroom6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroomSamsung Business USA
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptshraddhaparab530
 
Satirical Depths - A Study of Gabriel Okara's Poem - 'You Laughed and Laughed...
Satirical Depths - A Study of Gabriel Okara's Poem - 'You Laughed and Laughed...Satirical Depths - A Study of Gabriel Okara's Poem - 'You Laughed and Laughed...
Satirical Depths - A Study of Gabriel Okara's Poem - 'You Laughed and Laughed...HetalPathak10
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQuiz Club NITW
 
How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17Celine George
 
Comparative Literature in India by Amiya dev.pptx
Comparative Literature in India by Amiya dev.pptxComparative Literature in India by Amiya dev.pptx
Comparative Literature in India by Amiya dev.pptxAvaniJani1
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQuiz Club NITW
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseCeline George
 

Kürzlich hochgeladen (20)

Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITW
 
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
 
Chi-Square Test Non Parametric Test Categorical Variable
Chi-Square Test Non Parametric Test Categorical VariableChi-Square Test Non Parametric Test Categorical Variable
Chi-Square Test Non Parametric Test Categorical Variable
 
Indexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdfIndexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdf
 
Introduction to Research ,Need for research, Need for design of Experiments, ...
Introduction to Research ,Need for research, Need for design of Experiments, ...Introduction to Research ,Need for research, Need for design of Experiments, ...
Introduction to Research ,Need for research, Need for design of Experiments, ...
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdf
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
 
Mattingly "AI & Prompt Design" - Introduction to Machine Learning"
Mattingly "AI & Prompt Design" - Introduction to Machine Learning"Mattingly "AI & Prompt Design" - Introduction to Machine Learning"
Mattingly "AI & Prompt Design" - Introduction to Machine Learning"
 
How to Uninstall a Module in Odoo 17 Using Command Line
How to Uninstall a Module in Odoo 17 Using Command LineHow to Uninstall a Module in Odoo 17 Using Command Line
How to Uninstall a Module in Odoo 17 Using Command Line
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their uses
 
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxCLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
 
6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroom6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroom
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.ppt
 
Satirical Depths - A Study of Gabriel Okara's Poem - 'You Laughed and Laughed...
Satirical Depths - A Study of Gabriel Okara's Poem - 'You Laughed and Laughed...Satirical Depths - A Study of Gabriel Okara's Poem - 'You Laughed and Laughed...
Satirical Depths - A Study of Gabriel Okara's Poem - 'You Laughed and Laughed...
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
 
How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17
 
Comparative Literature in India by Amiya dev.pptx
Comparative Literature in India by Amiya dev.pptxComparative Literature in India by Amiya dev.pptx
Comparative Literature in India by Amiya dev.pptx
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 Database
 

6.1 special characters

  • 2. Special Characters in XHTML:  Some common characters cannot be written directly into our code as the XHTML processor (browser) would confuse them for our markup (code).  Sometimes we need to show a character that is not on the typical keyboard, such as a copyright symbol or a character from a foreign language.  Another issue is that XHTML ignores multiple spaces, but there are occasions in which we want to display multiple consecutive spaces.  We solve all these issues by using special characters.
  • 3. Common Special Characters: Special Character XHTML Code Displays As Blank Space &nbsp; Open or Close Quote &quot; " Ampersand &amp; & Less Than &lt; < Greater Than &gt; > The last four characters in this table would easily confuse the browser. Without using this method, how would it know whether we were writing XHTML code or whether we wanted to display the character itself?
  • 4. More Special Characters: Special Character XHTML Code Displays As Cent Sign &cent; ¢ Copyright Symbol &copy; © Trademark Symbol &reg; ® 1/2 Fraction &frac12; ½ Inverted Question Mark &iquest; ¿ Small e, Acute Accent &eacute; é These are just a sample of the dozens of special characters available to use.
  • 5. Example Special Characters: <body> <p>3 extra spaces: &nbsp;&nbsp;&nbsp; here</p> <p>quote: &quot;in quotes&quot;</p> <p>ampersand: &amp;</p> <p>less than: &lt;</p> <p>greater than: &gt;</p> <p>cent sign: &cent;</p> <p>small e (acute): caf&eacute;</p> </body> 3 extra spaces: here quote: "in quotes" ampersand: & less than: < greater than: > cent sign: ¢ small e (acute): café