Special characters in html, PHP Web Programming

Assignment Help:

You have seen that there are definite characters which have special meaning in HTML code. For instance, the "< " and " > " characters delimit tags. If you wished to display such characters on the web page, you need to take care that the characters are not interpreted and literally displayed. To display the "<" character, it can be denoted as "<". The "&" interprets the "lt" as the "< " symbol & displays it. However now what if you wished to display & symbol itself? Simply writing "&" in the code will not display it. However first, let us see displaying some special characters. Consider the example illustrated in Figure and also look at Table

<HTML>

<BODY BGCOLOUR=″#FFFFFF">

This is         

Used for         blank space.

<BR>

<  is the Less Than symbol <BR>

> is the Greater Than symbol <BR>

& is the ampersand symbol <BR>

" is the quotation mark symbol <BR>

à is small a, grave accent symbol <BR>

À is capital a, grave accent symbol <BR>

ñ is small n, tilde symbol <BR>

Ñ is capital n, tilde symbol <BR>

ü is the umlaut small u symbol <BR>

Ü is the umlaut <BR>

 is the symbol Delta<BR>

¼ is the quarter symbol <BR>

½is the hay symbol <BR>

</BODY>

</HTML>

 

2271_Special Characters in html.png

Figure: Entering Special Characters

The special characters illustrated in Figure are some most frequently used characters displayed on web pages. Each special characters can be displayed using its character sequence after the "&". These can be illustrated in the following Table

 

Special Character

 

Character Symbol

 

Description

 

<

<

Less-than symbol

>

>

Greater-than symbol

&

&

Ampersand

"

"

Quotation Mark

 

 

Blank space

à

 

 

 

 

à

small a, grave accent

 

À

À

capital A, grave accent

n

 

ñ

small n, tilde

Ñ

Ñ

capital N, tilde

ü

ü

umlaut small u

Ü

Ü

umlaut capital U

 

 



delta

¼

¼

One Fourth

½

½

Half

Table: Displaying Special Characters

The browser will display your text in a steady stream if not you tell it to do so or else with line break. It will decrease any amount of white space to a single space. If you wished more spaces, you have to employee the space character ( ). If you hit Return (or Enter) whereas you are typing, the browser will interpret that as a space if not there is already a space there.

Consider another instance, which shows how to display multiple blank lines. Code a space character along with a line break for each of blank line you desired.

<HTML>

<HEAD>

<TITLE>XYZ</TITLE>

</HEAD>

<BODY BGCOLOUR="#FFFFFF"> Welcome to <BR>

 <BR>

 <BR>

 <BR>

 <BR>

 <BR>my page

</BODY>

</HTML>


Related Discussions:- Special characters in html

We require a web developer for simple website, We require a Web Developer f...

We require a Web Developer for simple website I need simple website Consist of PHP, JavaScript, HTML 5 Desired Skills are JavaScript, PHP, HTML5

Onerror event handler, The onError event handler executes the indicated Jav...

The onError event handler executes the indicated JavaScript code or function onto the occurrence of an error event. It happens while an image or document causes an error throughout

Fix problem with html5 contenteditable field, Fix problem with html5 conten...

Fix problem with html5 contentEditable field I have a issue with a modest contentEditable field in html5 that I want to fix 1) If I establish a contentEditable field in html5

Hootesuite stream clone need help in this, Hootesuite Stream Clone We ne...

Hootesuite Stream Clone We need for a clone of the 'Streams' tab a) We must be able to add multiple search streams side by side. b) When the page is closed the search stre

We need a developer for bootstrap also php smart mind, We need a Developer ...

We need a Developer for bootstrap also php smart mind I want to make changes and minor modifications to a project done in bootstrap and php smart mind Desired Skills are MySQ

Multilingual wordpress template design, Multilingual Wordpress Template Des...

Multilingual Wordpress Template Design + Wordpress site development Seeking professional Wordpress theme designer as well as developer to provide the following services- 1) O

We need help in custom hook for a wordpress plugin, We need help in Custom ...

We need help in Custom Hook for a Wordpress plugin We are in search of someone that can create a custom hook from one plugin into another. The logic is that while a user clic

Overview of dreamweaver, Let us begin with a brief overview of Dreamweaver ...

Let us begin with a brief overview of Dreamweaver work area. If you haven't launched Dreamweaver already, double-click on the Dreamweaver icon on your desktop to do so. While yo

I want a receipe app in php, I want a Receipe App in PHP We are seeking ...

I want a Receipe App in PHP We are seeking a highly talented PHP Coder for the development of a Recipe App for Cocktail. Need Strong Facebook Integration like General Signup

I need speedometer and tachometer, We need to get working Speedometer and T...

We need to get working Speedometer and Tachometer for a car in latest Cryengine Sandbox. You will find how to make it using existing features of Sandbox, or make your own. Ca

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd