[Greasemonkey] how would one do this

carlos campderrós gilipollas.desconcertante at gmail.com
Thu Jun 15 00:28:29 EDT 2006


On 6/14/06, s g <junkvendoremail at yahoo.com> wrote:
>
> i was thinking of enclosing the said font-elements inside a <span> and
> setting the style.
>
> the doc looks like
> <font>test</font><font>test</font><font>test</font>
>
> how would one do this:
>
> <style=...><font>test</font><font>test</font><font>test</font></style>


you were right, a <span style=" ... "> is the solution. Quoting the W3C [1]:

"The DIV <http://www.w3.org/TR/html401/struct/global.html#edef-DIV>
and SPAN<http://www.w3.org/TR/html401/struct/global.html#edef-SPAN>elements,
in conjunction with the
id <http://www.w3.org/TR/html401/struct/global.html#adef-id> and
class<http://www.w3.org/TR/html401/struct/global.html#adef-class>attributes,
offer a generic mechanism for adding structure to documents.
These elements define content to be inline
(SPAN<http://www.w3.org/TR/html401/struct/global.html#edef-SPAN>)
or block-level (DIV<http://www.w3.org/TR/html401/struct/global.html#edef-DIV>)
but impose no other presentational idioms on the content. Thus, authors may
use these elements in conjunction with style
sheets<http://www.w3.org/TR/html401/present/styles.html>,
the lang <http://www.w3.org/TR/html401/struct/dirlang.html#adef-lang>attribute,
etc., to tailor HTML to their own needs and tastes."

Salute

[1] http://www.w3.org/TR/html401/struct/global.html#h-7.5.4
-- 
Si no puedes deslumbrar con tu inteligencia,
desconcierta con tus gilipolleces


More information about the Greasemonkey mailing list