xFactorSchool.com
Python
JavaScript
How to Do Examples
C 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 Compilers
C Compiler
C++ Compiler
C# Compiler
Java Compiler
Python Compiler
HTML Code Editor
CSS Code Editor
JavaScript Compiler
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>