Image

accessman2

Registered User.
Local time
Today, 13:57
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.
 
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.
 
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

Back
Top Bottom