Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

very basic html question

Status
Not open for further replies.

786snow

Programmer
Nov 12, 2006
75
Hi,

I see this code

Code:
 public static String ETRADE_APP_RECEIVED_WELCOME_MESSAGE_PART1 
= 
"<html>\n" +
"<body>\n" +
"<p align=\"center\"><b>Welcome to  Gooty</b></p>\n" +
"<br>" +
"<p>Hello,</p>" +

"<p>Congratulations and welcome to Gooty</p>\n" +
"<p>Our trading and investing solutions combine our very best in 
design, technology and product innovation to give investors like you one of 
the most compelling combinations of price, product and service.</p>\n" +
"<p>Our new clear and simple pricing offers extraordinary value 
unmatched by the competition.  Finally U.S.-style pricing has come to 
Gooty</p>\n";

This is a string which will be used for sending an email. My question is why are the using \n?
 
That's Java's newline character. It will mean your code will look nicely laid out if anyone views the source... but the mail client won't care if it's there or not.

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.

Enable Apps
 
thanks , so if some one do view source on the browswe it will look like
<html>
<body>


instead od
<html><body> and on and on

right?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top