Sometimes we need to create text and adding the outline to the text. Used to set the image path. The border-style property specifies what kind of border to display.. First, let’s see an example, where we use the HTML border attribute. See the example below to have a visible result of these properties. How to Remove Cellspacing from Tables Using CSS, How to Set Cellpadding and Cellspacing in CSS. JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. And then type the properties of border attribute into the id selector. The Border Property rules border: 10px outset #ddd; tells the stylesheet to place a 10px wide outset border with hex color #ddd around the video. To add a border to single image, you can edit the HTML of the image tag. After adding the image to your post, click to the HTML tab and locate the image code. How to Add to Your Website Step 1 – CSS: To place the above border around your embedded videos simply paste the above CSS into your website stylesheet. Step 2: Now, we have to place the cursor in the head tag of the Html document and then define the styles inside the