We would like to know how to add Border to a Photo.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.centered {<!-- w w w . ja v a 2 s. c om-->
text-align: center;
}
.centered img {
border: 5px solid blue;
}
</style>
</head>
<body>
<div class='centered'>
<img src='http://www.java2s.com/style/download.png'/>
</div>
</body>
</html>
The code above is rendered as follows: