xFactorSchool.com(Beta)
How to Do Examples
Python Examples
HTML Examples
Code Examples
C Code Examples
C++ Code Examples
C# Code Examples
Java Code Examples
Python Code Examples
HTML Code Examples
CSS Code Examples
JavaScript Code Examples
Online Editor
C Code Editor
C++ Code Editor
C# Code Editor
Java Code Editor
Python Code Editor
HTML Code Editor
CSS Code Editor
JavaScript Code Editor
Practice how to set border to an image in an HTML page
HTML Online Editor
Run Code
More HTML Sample Codes
<!DOCTYPE html> <html> <head> <title>Image Border in HTML Page</title> <!-- Title of the page--> </head> <body> <!-- only elements of the body will be displayed --> <h1>Example of Image Border in a Webpage</h1> <hr/> <!-- CSS border property is used to set border to the image in a page --> <img src="logoimage.jpg" alt="xFactor School Logo" style="border: 1px solid red;" /> <p> CSS inline style is used to set border to the image. </p> <p> style="border: 1px solid red;" is the css border style. Here the color of border line is red, line style is solid and width is 1px. </p> </body> </html>