With HTML 4, you can horizontally center an image in a paragraph using
<p align="center">
. E.g., the
image in the following paragraph would be cenered on the web page:
<p align="center">
<img src="f2a046-10-gld_320x240.jpg" alt="F2A046-10-GLD Printer Cable"
width="320" height="240">
</p>
However, with
HTML5, use of the align
parameter for horizontally aligning
a paragraph on a web page has been deprecated. E.g., if you check your HTML
code for adherence to the HTML 5 standard with the
Nu Html Checker provided by the
World
Wide Web Consortium, you will see an error similar to the following
one displayed if you are using align with the p (paragraph) tag.
The align attribute on the
p
element is obsolete.
Use CSS instead.
From line 73, column 1; to line 73, column 18
tent -->↩↩<p align="center">↩<img src
[ More Info ]