answersLogoWhite

0


Best Answer
HTML Code for Images

[image_source]

src is short for 'source.' If your image was in a directory called 'images' with a filename of screenshot.jpg, you would replace [image_location] with images/screenshot.jpg

[hover_text]

This is an optional attribute that displays text when a user puts his or her cursor over the image.

[alternate_text]

This is also optional. If a user has images turned of through their web browser settings, this text is what shows up in place of the image.

So when it's all said and done, it should look like this (remove the spaces before "img" and after the "/"):

< img src="[image_source]" title="[hover_text]" alt="[alternate_text]" / >

Height and width attributes are also available for images, but it's best not to use them, as that will force the image to be a certain size, which can lead to distortion of the image. If you need an image to be a certain size, best practice is to edit the image directly in an image editing program (Photoshop, The Gimp, etc.) if you are able to do so.

HTML Image Link Code:

User Avatar

Wiki User

12y ago
User Avatar

<code><a href="http://yoururl.com/yoururl/"><img src="http://imgurlhere.com/here.jpg"></a></code>

(If code tags are visible in this post, DO NOT insert them)

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

The tag is . The only required parameter is src.

  • SRC: where your image is located
  • ALT: text that describes the image for users who cannot see images
  • NAME: used to refer to the image in a script
  • LONGDESC: location of a long description of the image
  • WIDTH: set the width of the picture
  • HEIGHT: set the height of the picture
  • ALIGN = LEFT | RIGHT | TOP | TEXTTOP | MIDDLE | ABSMIDDLE | BOTTOM | ABSBOTTOM | BASELINE

    how the image appears in relationship to the text

  • BORDER: turns on or off a border around the picture
  • HSPACE: horizontal space between the picture and the text
  • VSPACE: vertical space between the picture and the text
  • ISMAP: designate if there is an image map
  • USEMAP: name of the image map definition file
  • LOWSRC: location of a smaller version of the image
This answer is:
User Avatar

User Avatar

Wiki User

11y ago

HTML code is a list of instructions that tell a browser how to display a page. The picture needs to be in a format that HTML recognises - either .jpg or .png or .gif. To display a picture within an HTMl page you would use the image tags:

<img src="picturename.jpg">

which tells the browser that it is dealing with an image which can be found at the address given in the src attribute. If the image is in the same location as the HTML file you just need the picturename.jpg without the full address. You can add attributes such as width and height in pixels so that the picture fits into the page.

<img src="picturename.jpg" width=320 height=240>

This answer is:
User Avatar

User Avatar

Wiki User

9y ago

HTML is a formatting language that tells the browser how to display website content. You use the HTML img tag to add an image to the webpage. Here is an example of the HTML code: <img src="image.jpg" width="100" height="100" alt="My Image" />.

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

<span>description</span>

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

That's img.

Example: <img src="file.png" width="40" height="40"/>

This answer is:
User Avatar

User Avatar

Jayden Cheng

Lvl 2
2y ago

Help me

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the HTML code for a picture?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you get a picture code for HTML?

img scr="YOUR PICTURE LOCATION.gif"&gt;


How do you find the HTML code of a picture?

Pictures don't come in HTML


How do you turn pictures into an HTML code?

&lt;img src="link for picture"&gt;


What is the HTML code to add a border to a picture?

For example this is the HTML code: &lt;body&gt; &lt;div id="picture"&gt; &lt;img src="images/image.jpg" alt="this is image" /&gt; &lt;/div&gt; &lt;/body&gt; In CSS: #picture img { border:2px solid #000066; }


You want a picture to repeat down what is HTML code?

You need to use HTML and Styles to do it. For the Pictures/YourImage.gif part you can put in your own code for your picture.Your text


How do you code a flv in a picture on a HTML website?

you &lt;embed&gt; the flash video by importing.


How do you upload a picture on tinier me?

You don't really "upload", you use HTML. i prefer this: &lt;img src=IMAGE URL HERE&gt; any image is accepted as long as the URL is a direct link to the photo or picture this can only be on profiles


What is the css code for posting a picture?

A picture (other than the background) is done in HTML. Borders and the like are controlled with CSS.


How do you insert a picture from netbeans 6.5?

By using the html code we can able to insert the imagein netbeans.


How come i can't see the picture i added to my presentation on howrse?

You need to use HTML mode - go to profile &gt; modify &gt; HTML mode &gt; paste in the HTML code &gt; click enter.


What is the HTML code for linking a picture to a video?

You can put an anchor tag on the picture. It could be done like &lt;a href="video.mp4"&gt;&lt;img&gt;&lt;/img&gt;&lt;/a&gt;.


How do you send picture from on site to another site?

Just copy the URL or HTML code of the picture from one site and paste it in the other site.....