answersLogoWhite

0

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

Updated: 8/18/2019
User Avatar

Wiki User

12y ago

Best Answer

For example this is the HTML code:

<body>

<div id="picture">

<img src="images/image.jpg" alt="this is image" />

</div>

</body>

In CSS:

#picture img {

border:2px solid #000066;

}

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

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

How do you add a Picture in a Website?

Very simply add in this to your HTML document: (border="0 is optional)


What kind of code is needed to add comment boxes to a website?

The kind of code that is needed to add comment boxes to a website is HTML code. The HTML code can be downloaded from a site such as Generation Union or Quack It.


How do you embed HTML codes in a blog?

To add HTML code to your Blog:> Click on Customize/Layout> Click on Add a Gadget> Under Basic menu, click + button beside Add HTML/JavascriptThe feature opens up a new window where you can paste your HTML code.


What is the code of backround in HTML?

Background can be easily added into the HTML code. in the &lt;style&gt; element you can add background-color="red".


How do you add HTML to your website?

HTML can be added by adding tags to the code. HTML tags are the ones that cause the view to modify.


How do you embed a game into your wix website?

You can add games or quizzes to your site by adding the HTML code using the HTML code element.


How do you make buttons for Howrse?

Basically, if you mean a picture button, like the sign in button, you will need to switch to HTML mode, then add this code &lt;a href="www.this is the link.com"&gt;&lt;img src="this is the location of the image.gif" border="0" alt="" /&gt;&lt;/a&gt;


Can you add flash games to your profile using HTML code?

No, you cannot.


How do you add transformice to your website?

With the HTML code (Which I don't know O.O)


How do you add pictures to your page on WikiAnswers?

There are a few ways:1) Find a picture somewhere online and put the URL into the form of HTML code (there are sites that will do that for you).2) Copy the picture that you want and then paste it into your profile.3) Find a picture online (open in a separate window) and drag the picture into your profile.


How do you add HTML code into a webpage?

HTML codes could be easily added to a webpage for the functionality. Dynamic web pages can made with HTML only.


Which option on the Picture toolbar allows you to add a border to an image?

line style