Jump to content

HTML in cache pages


Fledermaus

Recommended Posts

Posted (edited)

GC supports:

 

<font face="ARIAL" size="5" color="#FF0000"><b>SAMPLE</b></font><br>

 

But apparently not this:

 

<font style="font: 18pt ARIAL" color="#FF0000"><b>SAMPLE</b></font><br />

 

How come?

 

I wonder if GC supports this:

 

<font face="ARIAL" size="4" color="#FFFFFF" style="BACKGROUND-COLOR: #FF0000"><b>SAMPLE</b></font><br />

 

Does GC support any of the STYLE or XHTML commands within it's cache pages?

 

What other X/HTML commands are not supported?

 

/\/(°w°)\/\

Edited by Fledermaus
Posted

The first two lines of code in the OP worked fine for me, even though the UPPER CASE attributes are technically illegal markup in XHTML 1.0 Strict. After I changed the 3rd line to the following then it worked fine.

 

<span style="font:arial 4pt; color:#FFFFFF; background-color: #FF0000;"><b>SAMPLE</b></span>

 

I agree sometimes the parser acts really weird, but you can almost always get it to do what you want by using different, and sometimes convoluted, markup :D

Posted (edited)

When I write personal web and geocache pages, using the "CSE HTML Validator Lite v7.01" program, I always include the following "Doctype Declarations" for compatibility and error checking:

 

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

 

With regards to the differences of XHTML "Transitional" vs "Strict" formats, I suggest visiting the following:

 

http://www.uninetnews.com/xhtml/doctype.php

 

Interestingly and why I do not understand, the <html>, <head> and <body> tags seem to be unnecessary for the creation and presentation geocache pages.

 

The above "validator" program doesn't seem to care if the type of font is written "arial" or "ARIAL", so I use the latter to make it more visible for editing purposes.

 

As for the use of "span" and other related tags, I have yet to learn much about CSS stuff and haven't found it useful to me yet.

 

Also, I am not a great fan of the "Tidy(bowl)" program. For at the cost of saving storage space, (IMHO) it makes a mess of well organized pages, when it becomes necessary to editing them at a later date.

 

/\/(°w°)\/\

 

When all else fails, RTFM!

Edited by Fledermaus

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...