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 need to get info from website using javascript, We need to Get info from...

We need to Get info from website using javascript I want to excerpt the text from all the available (blue) seats of all the events on this site without getting banned. I already

Web developer and designer required for new site build, Website designer/de...

Website designer/developer needed Web developer/designer required for new site build. Person wants to be confident in design and development, SEO opt, as well as ability to b

Need help for merging databases, Merge Databases I have a website in Wor...

Merge Databases I have a website in Wordpress and within it I have a vBulletin forum. I have an external MAGENTO store that I'll move to my chief website. What I'd like to do is

Use of meta tag, In this unit we have learnt how to create simple HTML page...

In this unit we have learnt how to create simple HTML pages. The contents of the page have to be written within the BODY tag. The HEAD tag includes the title of the document. An im

We are seeking an experienced web developer, We are seeking an experienced ...

We are seeking an experienced web developer with the following skills- a) Front-end development (HTML5/CSS3) b) Front-end scripting and common libraries (Javascript, JQuery)

We need a front end developer for responsive site, We need a Front End Deve...

We need a Front End Developer for responsive site In search of a front end developer to put together a responsive template (using Zurb Foundation or alternative) for a modern, s

Create a web page that prompt the user for input, Overview Web pages often...

Overview Web pages often need to prompt the user for input and that input will then need to be uploaded to the server, processed, possibly stored, and then some appropriate result

Definition lists, Another type of list is a definition list. Definition lis...

Another type of list is a definition list. Definition lists contain a heading & the text show below that. IGNOU <

Domain name system, Domain name is a name given to any network for easiness...

Domain name is a name given to any network for easiness of reference. Domain refers to a group of computers which are known through a single common name. Somebody needs to transfer

Need help to add a form on a joomla website, Need help to Add a form on a J...

Need help to Add a form on a Joomla website We need to add a form on the home page of an existing Joomla website, just like on file in attachment, and then the info's will be sa

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