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

Wordpress experts and wordpress graphic designers needed, WORDPRESS EXPERTS...

WORDPRESS EXPERTS AND WORDPRESS GRAPHIC DESIGNERS NEEDED We are a growing marketing firm looking for talented wordpress programmers who also are graphic designers. Desired Sk

A web application of shopping cart using php, You are required to implement...

You are required to implement a shopping cart web using PHP. The web application should allow the user to view the items in a catalogue, add items to a shopping cart, remove items

Brute Force, How to search the keyword in dictionary and suggest words when...

How to search the keyword in dictionary and suggest words when there is partial match of 3 characters during user input?

What is ip-in-ip encapsulation, Question: Mobile IP was intended to wor...

Question: Mobile IP was intended to work with legacy applications and correspondent nodes. However, some advantages may be gained if correspondent nodes are aware of mobility

I want help in design corporate website, Design Corporate Website Websho...

Design Corporate Website Webshop selling urban as well as hip-hop inspired t-shirts designs. We have a quick drawings style symbol at the moment as well as would like have that

We need senior developer experienced in python & django, We need Senior Dev...

We need Senior Developer experienced in Python & Django Company Data aggregation project where we are aggregating online data from multiple sources as well as enabling companies

Need help to convert wix website to shopify, Need help to Convert wix websi...

Need help to Convert wix website to shopify We want to convert our wix web store to shopify platform. No requirement to change the design. Desired Skills are Shopify

Custom feed creation on wordpress, Custom feed creation on wordpress Pro...

Custom feed creation on wordpress Project Description: Want a custom rss creation, without being the default wordpress, rss can pull data from custom fields and categories, b

I need web scrapers written, I Need web scrapers WRITTEN I have five sit...

I Need web scrapers WRITTEN I have five sites (very simple) whose web scrapers I need written ASAP. I am seeking for someone who can start IMMEDIATELY as well as work on this fo

I need expert wordpress template developer, I need expert Wordpress Templat...

I need expert Wordpress Template Developer I have a website design I would like to turn into a wordpress template. Specifications- Responsive - One page - two scroll - Cou

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