Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: sig226
From the HTML sandbox:
<img src="http://www.rushlimbaugh.com/home/daily/site_062807/content/01125113.Par.4584.ImageFile.jpg""height=218""width=285"></img>

There is a slight error in the explanation of the img tag. The img tag is an empty tag, so it does not take a closing tag. The </img> is an error. Also the quoting of height and width attributes is wrong.

The correct mark up for HTML is: <img src="http://www.rushlimbaugh.com/home/daily/site_062807/content/01125113.Par.4584.ImageFile.jpg" height="218" width="285">

The correct mark up for XHTML is:
<img src="http://www.rushlimbaugh.com/home/daily/site_062807/content/01125113.Par.4584.ImageFile.jpg" height="218" width="285" />

129 posted on 12/25/2008 1:10:59 PM PST by stripes1776 ("That if gold rust, what shall iron do?" --Chaucer)
[ Post Reply | Private Reply | To 1 | View Replies ]


To: stripes1776

It works on this board, but I’ve had to close the img tag on some others. But it is interesting that in all the HTML books and websites I’ve read, none of them mentioned that the img tag can work without closing it. Thanks.


130 posted on 12/26/2008 5:46:11 AM PST by sig226 (1/21/12 . . . He's not my president . . . Impeach Obama . . . whatever)
[ Post Reply | Private Reply | To 129 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson