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

To: mairdie; bagster
You do not have to use quotes in the HTML attributes.
<img src=http://whatever.jpg width=400>
The above works the same as adding the quotes around the attribute value. As long as your attribute value has no spaces you do not need quotes. And if it did have a space you could use %20 for the space and still drop the quotes.

In our example above the HTML breaks down like this:
img is the ELEMENT.
src and width are ATTRIBUTES.
http://whatever.jpg and 400 are VALUES.

1,652 posted on 10/11/2018 8:21:46 AM PDT by numberonepal (WWG1WGA)
[ Post Reply | Private Reply | To 1328 | View Replies ]


To: numberonepal; All

FYI - not necessary but I also encourage adding an “alt” tag to images when they’re for *links* to content vs. a simple meme - any text embedded into the “alt” tag will appear if the image is later removed (unless some image sites then seem to instead render an image that says “this image is no longer here” vs. rendering a 404 not found that would lead to the alt text being rendered instead). This is “advanced”; not necessary, but helps these threads retain their links & usefulness in the future & also helps with SEO when FR is crawled etc. The more you know! WWG1WGA :)


1,656 posted on 10/11/2018 8:46:50 AM PDT by Steven W.
[ Post Reply | Private Reply | To 1652 | View Replies ]

To: numberonepal; ransomnote; ShadowAce; All
For newcomers and the HTML Challenged!

Shadow Ace's HTML Sandbox!

(Good to repost occasionally! #1P & R.N. you guys already know this stuff. I'm just sayin Hi!)

1,688 posted on 10/11/2018 5:00:42 PM PDT by Pete from Shawnee Mission
[ Post Reply | Private Reply | To 1652 | View Replies ]

To: numberonepal
You do not have to use quotes in the HTML attributes.

Thanks for those pro-tips, #1pal.

Bagster


1,690 posted on 10/11/2018 5:05:10 PM PDT by bagster ("Even bad men love their mamas".)
[ Post Reply | Private Reply | To 1652 | 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