Free Republic
Browse · Search
News/Activism
Topics · Post Article

To: Tunehead54
In your instruction you forgot the "" around the 500.

You didn't forget when you posted your example.

23 posted on 08/18/2019 8:41:30 AM PDT by ASA Vet (Make American Intelligence Great Again. Bring back ASA.)
[ Post Reply | Private Reply | To 22 | View Replies ]


To: ASA Vet
> In your instruction you forgot the "" around the 500.

Agreed, quoting the value strings in tags is good practice, and keeps one's code out of trouble.

But as a practical matter, as long as no special characters are in the value string (quote marks, closing brackets, etc.) to change the meaning when parsed, all browsers will accept an unquoted string. A huge amount of modern production HTML uses unquoted tag values, yet "works" just fine, as a result.

Even the official HTML Validator doesn't care about quoting tag values. :-)

28 posted on 08/18/2019 9:10:41 AM PDT by dayglored ("Listen. Strange women lying in ponds distributing swords is no basis for a system of government."`)
[ Post Reply | Private Reply | To 23 | View Replies ]

To: ASA Vet
"In your instruction you forgot the "" around the 500.

You didn't forget when you posted your example."


They're not necessary. After the quoted URL for the image you can just use a space between height, width and other arguments. Take the example below, delete the leading space and preview it.

That's what I did when I posted it. Maybe FR autocorrects but I take out the leading space and preview it, it works fine. Quotes don't hurt.

Try it and let me know.

Note: I added a height parameter to show both attributes obviously operating. Normally you just skip the height parameter as its automatically computed for correct aspect ratio.

Just cut and paste the test post below, delete leading space and preview it:


Test: < img src="https://babylonbee.com/img/articles/article-4655-1.jpg" width=200 Height=25>
39 posted on 08/18/2019 10:29:08 AM PDT by Tunehead54 (Nothing funny here ;-)
[ Post Reply | Private Reply | To 23 | View Replies ]

To: ASA Vet
I meant to add that you can reply to me as a sandbox but here you go: Test statement with leading space:

Test: < img src="https://babylonbee.com/img/articles/article-4655-1.jpg" width=200 Height=25>

Without:

Test:

41 posted on 08/18/2019 10:37:59 AM PDT by Tunehead54 (Nothing funny here ;-)
[ Post Reply | Private Reply | To 23 | View Replies ]

Free Republic
Browse · Search
News/Activism
Topics · Post Article


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