Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> HTML >> Snippet

Center image on the page


<!--
Three options.
The second only works if the image is isolated from surrounding content, such as by <p>, <br> or <div>
-->


< center >
< img src = "mypicture.jpg" >
</ center


< img src = "mypicture.jpg" align = center >


< p align = center >
< img src = "mypicture.jpg" align = center >
</ p >