Posted on 05/31/2008 9:09:38 PM PDT by sig226
Thank you.
~ Bookmark ~
.
Use the carats, under the K and L keys. The square brackets work on certain boards formatted for UBB code. Universal Bulletin Board code is an abbreviated version of HTML, a little easier to use, but it has limits and requires more software to operate it. It won’t work here.
<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" />
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.
Here is the specification from the World Wide Web Consortium (W3C) on the image tag:
The img element is a void element. An img element must have a start tag but must not have an end tag.The World Wide Web Consortium is the organization that develops the web standards. The director of W3C is Tim Berners-Lee who invented of the World Wide Web.
Newbies are always asking how to post images. This is difficult for them. Putting a closing tag for the image tag just complicates things unnecessarily for them. Besides, a closing image tag is just plain a mistake.
Also the quoting is wrong in the example on FR. As is, the quotes are around the attributes. Instead the pair of quotes needs to surround only the value of the attribute after the = sign. Here is the sample on FR:
"height=218""width=285"The opening quote of each pair of quotes needs to be moved to just after the = sign as in the following:
height="218" width="285"I think the the least FR could do is give newbies the correct web standard and syntax of HTML.
Now it's even more interesting. I've been closing the img tag for years and the internet hasn't blown up. I must have been doing it wrong.
Well, you have not been following the HTML specification. I have been using HTML since 1995, and I have never used a closing tag for the img tag because it is an empty tag. There has never been a closing tag in the HTML specification for the img tag. That is true of some other tags as well such as the break <br> tag and the <meta> tag.
So what does a web browser like Internet Explorer do when you put in an ending tag that is not part of the HTML specification? Most likely, it will ignore it because that tag is not providing any useful information.
There are other tags like the paragraph tag <p> that require a closing tag </p>, but many authors leave it out. So what does the browser do? It infers from the next opening <p> tag that the previous paragraph should be closed.
My point is this: the HTML sandbox is for newbies. Why complicate things for them by showing a closing img tag that is not part of the HTML specification and certainly not required?
If you want to do extra work by writing an unnecessary closing tag, I think you should continue doing so. But I don't think you should burden a newbie with that.
b ttt for 2009
BTTT
Is it easier to use
I typed in < marquee > to start & < / marquee > to end the HTML (WITHOUT spaces, of course), which I thought FR's HTML Bootcamp said was the right way.
Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.