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

Need two pages created and a blog, Web Development - Need two pages created...

Web Development - Need two pages created and a blog I have purchased a domain name as well as hosting service. I now must to start building the website Requirements- 1) Dr

Resize layout cells, To accurately design a page, you can set the size of c...

To accurately design a page, you can set the size of cells you add in a document. In the page you can also reposition cells. 1. Click the border of the layout cell to choose i

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

Responsive wordpress design and development, Responsive WordPress Design & ...

Responsive WordPress Design & Development I have numerous project but you need complete on time and good quality Desired Skills are CSS, HTML, PHP, WordPress

Preview of document in dreamweaver, You can't view rollover behavior within...

You can't view rollover behavior within Dreamweaver's Document window; rollover images work in a browser only. Though, you can preview the document within Dreamweaver to make out i

Fashion luxury brand website design and development, Fashion Luxury Brand W...

Fashion Luxury Brand Website Design and Development I want someone to design and implement a website for a high end luxury fashion label that I am launching which at the moment

Seeking coding partner, Seeking Coding Partner I am a web designer looki...

Seeking Coding Partner I am a web designer looking for an ongoing partner to code simple websites. The work will be fairly infrequent however paid very well. Desired Skills a

Basic attributes of html, These all are attributes of the tag. The followi...

These all are attributes of the tag. The following instance explains each of these attributes. TARGET = "_blank

Internet service providers, As specified earlier, nobody truly owns the Int...

As specified earlier, nobody truly owns the Internet, although it is maintained through a group of volunteers interested in supporting this mode of information interchange. Central

Looking for netflow web application developer, Looking for NetFlow Web Appl...

Looking for NetFlow Web Application Developer I am seeking a programmer who can write a web-based front end for nfcapd /NFDUMP. I am alert that Nfsen is available (the recommend

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