answersLogoWhite

0

How do you use border in HTML?

Updated: 8/20/2019
User Avatar

Wiki User

11y ago

Best Answer

Border can be an attribute in html. For example, in the table tag. This will put a border around the table.



As another example, it can be used in the img tag.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you use border in HTML?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you make border line in html?

You can't make border lines with HTML - you use CSS. <div id="mydiv">Content</div> <style type="text/css"> #mydiv {border: solid black 1px;} #mydiv {border: dashed red 1%;} #mydiv {border: none;} </style>


Why you use border in HTML?

To contain information, to separate things or just to make something look nice.


How can you put the marquee around the image in HTML?

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.


How do you use PHP in HTML?

You can't use PHP in an HTML document, but you can use HTML in PHP script.


How do you use a HTML?

http://www.w3schools.com/HTML/


Which html converters are free to use?

The html converters that are free to use are HTML Converter and Free HTML Converter. These two websites do a great job at converting html files to whatever you need.


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

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; }


How do you use HTML?

There are many sites which teach you HTML,Google ithttp://www.w3schools.com/HTML/


How do you use color tag in HTML?

You don't use color as a 'tag' so-to-speak. To specify a color you have to add the color attribute to a HTML element. For example:your_text_here


What is the HTML code of Facebook?

You can't use HTML on Facebook.


How do you put HTML cursors on iweb?

Use an html snippet


How do you add a Picture in a Website?

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