answersLogoWhite

0

In HTML 4.01, XHTML, and HTML 5, the proper way to add a border to an image is using a CSS declaration.

img { border: 2px solid blue; }

You could also put that as a style attribute, use a class or id CSS declaration, etc.

In versions of HTML prior to 4.01, you added a border using the border attribute.

<img src="test.jpg" border="2">

That code produces an image with a border 2 pixels wide. Note that CSS allows you to adjust the borders around an object separately, whereas this method does not allow that kind of distinction.

User Avatar

Wiki User

12y ago

What else can I help you with?

Continue Learning about Engineering

How do you add scrolling text to HTML page?

I love using this code: &lt;marquee&gt;Enter scrolling text here&lt;/marquee&gt; Put this code underneath the &lt;body&gt; tag: &lt;html&gt; &lt;body&gt; &lt;marquee&gt;Enter scrolling text here&lt;/marquee&gt; &lt;/body&gt; &lt;/html&gt; Want to change the colour of the text? &lt;font face="arial" color="colour you want" size="8"&gt; place that between &lt;body&gt; and &lt;Marquee&gt; &lt;html&gt; &lt;body&gt; &lt;font face="arial" color="colour you want" size="8"&gt; &lt;marquee&gt;Enter scrolling text here&lt;/marquee&gt; &lt;/body&gt; &lt;/html&gt;


What is the HTML code for a scroll box?

The simplest way to do it is to put them into two cells in a table like this: &lt;TABLE&gt; &lt;TR&gt; &lt;TD&gt;&lt;Marquee&gt;This will give you scrolling text in one box&lt;/Marquee&gt;&lt;/TD&gt; &lt;TD&gt;&lt;Marquee&gt;This will give you scrolling text, in another box&lt;/Marquee&gt;&lt;/TD&gt; &lt;/TR&gt; &lt;/TABLE&gt; If you want to put a border around them, then you'd have the first line as: &lt;TABLE Border=1&gt; A Marquee won't work on every kind of browser and is in fact thought of as being tacky and not very popular.


How do you upload an image to a HTML document?

To put an image in an HTML document, first upload the image to a web server somewhere. Then, copy the URL of the document. Finally, place the following code into the HTML document: &lt;image src="PASTE URL HERE" /&gt;


How do you insert picture from desktop to HTML page?

You don't actually insert an image into an HTML page. An HTML page can display an image from any location where the browser has access to the file. Let us assume that the image you want to display on your HTML page is image.jpg. You use the tag to tell the browser to display your image. The person looking at your HTML page needs to be able to access the file on your desktop. You normally would upload your image to the Web server, so the visiting browser can see your image. If the image is on your desktop and the browser has access to your desktop content, here is the code you would use to display your image on the Web page:


Explain about marquee tag in HTML?

The Marquee tag allows you to have a scrolling text effect. Anything put between the opening and closing tags will scroll across the screen. A number of attributes that go with it and are useful include the following, which all use numbers.Scrollamount - the amount of pixels of each movementScrolldelay - the amount of time in milliseconds between each jump. (1000 is 1 second).Other attributes, with their values include:Behavior - Slide (cones in once and stops), Alternate(bounces back and forward), Scroll (default)Direction - Left, Right, Up, DownLoop - (How many times to scroll)BgcolorWidthHeightGenerally the Marquee tag is not a very popular tag amongst professional web designers as it is seen to be very tacky and annoying after a while. So it is best kept for simple and fun sites.

Related Questions

How do you make words scroll halfway across your MySpace page?

you just put ,&lt;marquee&gt;your text here &lt;marquee&gt; and if you want it to bounce from side to side put &lt;marquee behavior="alternate"&gt; your text here&lt;marquee&gt; you can also put HTML in there so you can have picture scrolling also


How do you add scrolling text to HTML page?

I love using this code: &lt;marquee&gt;Enter scrolling text here&lt;/marquee&gt; Put this code underneath the &lt;body&gt; tag: &lt;html&gt; &lt;body&gt; &lt;marquee&gt;Enter scrolling text here&lt;/marquee&gt; &lt;/body&gt; &lt;/html&gt; Want to change the colour of the text? &lt;font face="arial" color="colour you want" size="8"&gt; place that between &lt;body&gt; and &lt;Marquee&gt; &lt;html&gt; &lt;body&gt; &lt;font face="arial" color="colour you want" size="8"&gt; &lt;marquee&gt;Enter scrolling text here&lt;/marquee&gt; &lt;/body&gt; &lt;/html&gt;


What is the HTML code for a scroll box?

The simplest way to do it is to put them into two cells in a table like this: &lt;TABLE&gt; &lt;TR&gt; &lt;TD&gt;&lt;Marquee&gt;This will give you scrolling text in one box&lt;/Marquee&gt;&lt;/TD&gt; &lt;TD&gt;&lt;Marquee&gt;This will give you scrolling text, in another box&lt;/Marquee&gt;&lt;/TD&gt; &lt;/TR&gt; &lt;/TABLE&gt; If you want to put a border around them, then you'd have the first line as: &lt;TABLE Border=1&gt; A Marquee won't work on every kind of browser and is in fact thought of as being tacky and not very popular.


How does a person use a marquee code?

Someone can use a marquee code in different ways. One of the most common uses is using it as a HTML code which helps put features on a website including the scrolling feature.


How do you upload an image to a HTML document?

To put an image in an HTML document, first upload the image to a web server somewhere. Then, copy the URL of the document. Finally, place the following code into the HTML document: &lt;image src="PASTE URL HERE" /&gt;


How do you insert picture from desktop to HTML page?

You don't actually insert an image into an HTML page. An HTML page can display an image from any location where the browser has access to the file. Let us assume that the image you want to display on your HTML page is image.jpg. You use the tag to tell the browser to display your image. The person looking at your HTML page needs to be able to access the file on your desktop. You normally would upload your image to the Web server, so the visiting browser can see your image. If the image is on your desktop and the browser has access to your desktop content, here is the code you would use to display your image on the Web page:


How do you put an image on a website what is the code?

The image must be uploaded beforehand. A free host such as imageshack.org or photobucket.com will usually do.


Howrse - How do you put in a marquee?

Go to your personal page, click modify, then click the Green HTML button on the right hand side. Paste in the banner code you have and click 'Save My Presentation'.


How do you put a picture in a website using HTML codes?

Open notepad or whatever you write HTML with. Place the image you want in the same folder your HTML document is in. In your HTML document editor (Notepad) write the following- &lt;img src=your images name.jpg&gt; (or .GIF or . PNG whatever type of image you are using)


Picture is in a HTML website how do you link a video to it?

you will put an &lt;a href="video/video.flv"&gt; tag in front of the image code and &lt;/a&gt; after the image code. You will put your video destination in the place of video/video.flv


How can insert image on title of an HTML page?

You call it an HEADER and you put it in the upper most part of the &lt;body&gt; .


Put a picture in the background of a webpage using HTML?

Change the &lt;body&gt; tag to &lt;body style="background-image: image.jpg"&gt;. Replace image.jpg with your image.