views:

94

answers:

4

Is that HTML form only support pure text only? Can I use some JS / CSS trick to let the HTML form have image embedded?

A: 

Use an Image tag.

http://www.w3schools.com/htmL/html_images.asp

Robert Harvey
I think he wants to embed the image into the html source, an IMG tag links to an 'external' image.
Andre Miller
I think he wants to send an image to the server.
Fabien Ménager
I think he doesn't knows what he wants
Pedro Ladaria
+1  A: 

What do you mean by "image embedded"?

If it's only for decoration, you can put it before or after the form and position it with CSS as needed.

If you mean, submit an image (or any kind of file) then use input type="file".

Regarding image directly in form, it may work but I'm not sure the document will validate. Better check it out.

Developer Art
A: 

If you mean embedded image in base64 for example, it is not possible. You have to link a file and you cannot create a file in Javascript.

Natim