Image (1 Viewer)

accessman2

Registered User.
Local time
Today, 10:11
Joined
Sep 15, 2005
Messages
335
Hi,

I want to make sure between HTML and ASP. Most of the HTML codes can be used in the ASP, right. The only different is the syntax, and ASP can support database, and ASP is running in the server.


In HTML,
<img src="boat.gif" alt="Big Boat">

In ASP,
Response.write("<img src='boat.gif' alt='Big Boat'>")

For the above HTML and ASP examples
Is it correct?

Please let me know, thanks.
 

Sergeant

Someone's gotta do it
Local time
Today, 13:11
Joined
Jan 4, 2003
Messages
638
Looks right to me. Did you try it? That's what I'd do.
I have a folder at C:\Inetpub\wwwroot\TESTASP\ that has a bazillion tiny ASP pages (aptly named) where I tried things I didn't fully know about until I eventually got them figured out.
 

Kodo

"The Shoe"
Local time
Today, 13:11
Joined
Jan 20, 2004
Messages
707
not entirely correct. The proper way is to use quotes, not apostrophe's

Response.write("<img src=""boat.gif"" alt=""Big Boat"">")
 

Users who are viewing this thread

Top Bottom