Image Borders

An image has no border by default. You can add a border to the image using the border setting and it is supported in all major browsers.

Note : The border attribute of HTML < img > is deprecated in HTML 4.01

Image Align

You can align an image in HTML according to the surrounding element. Aligning pictures can help you better space out your web site and make it easier for your visitors to read.

You can use the following alignments in HTML Img tag:

default, center, right, left, top, texttop, middle, absmiddle, baseline, bottom, absbottom and center

Note: The align attribute is supported in all major browsers but it is deprecated in HTML 4.01.

html-border-align

HTML Source Code :