CSS reset

But do you mean that it will not validate as HTML Strict with the link to the stylesheet coming before the Meta Data structure?

Correct. Not as XHTML Strict or Trans. Regular html4 did validate (I checked). IE in quirks mode may cause issues but then I doubt you will be creating sites in QM. That said, IE may still have other issues with it coming before the meta tags. Not to mention it isn’t best practices, even if it does work.

Todd


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

it isn’t best practices, even if it does work.

Thanks Todd - more reading required methinks.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I wasn’t aware that the order of the elements in the head had any relevance. I thought it was enough that they were in the right part of the page.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

It’s possible it may not be relevant, it’s just what I’ve read in the past on some of the more popular code-centric sites. Whether it’s fact or just popular opinion I can’t say.

Todd

I wasn’t aware that the order of the elements in the head had any relevance. I thought it was enough that they were in the right part of the page.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

It is valid HTML to have the link before the meta tag. Try the Action,
and validate the produced code. Todd, I think what might have been
happening with your test was that you may have been hand-coding the
link tag, and if you left off the trailing slash in that tag, it would
not have been valid XHTML but it would have been valid HTML. Vice-
versa would also have been the case, if you added the slash but used
an HTML doctype instead of XHTML. The Action defers to Freeway as far
as the tag-ending business is concerned, so it will do the right thing
either way, depending on the doctype you choose in the page inspector…

Walter

On Jun 5, 2011, at 7:37 PM, DeltaDave wrote:

Thats fantastic Walter but brings me back to my OP about the link to
the reset stylesheet coming in After Head and before any Meta Data
and was that semantically correct.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I considered that possibility but I checked and I was adding the link with trailing slash (in FW, After ) using XHTML Trans. and it failed validation, though admittedly not because it was placed before the meta tags. When I code the same page by hand it does validate. I don’t know why.

Todd

Todd, I think what might have been happening with your test was that you may have been hand-coding the link tag, and if you left off the trailing slash in that tag, it would not have been valid XHTML but it would have been valid HTML.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I have tried validating a page - albeit a simple one - using the link as the action creates it (ie before the Meta Data) and no hand coding.

The result was full XHTML strict validation - haven’t tried a transitional page yet.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

That’s good to know. Clearly my example is experiencing a hiccup. Perhaps everything I’ve read about meta tags coming first/best practices is opinion rather than being based on actual problems. That should make the process easier to implement in FW then.

Todd

The result was full XHTML strict validation - haven’t tried a transitional page yet.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Perhaps everything I’ve read about meta tags coming first/best practices is opinion rather than being based on actual problems.

I have been trying to track down some info on structuring your Head info but I am struggling to find anything meaningful.

I can find plenty on the whole page structure - but nothing specific.

So if anyone can point us to something definitive…

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Just seen this so sorry for not posting the answer to resetting styles
ok this is how you do it

  1. make sure you have external style sheet on

  2. create a new style and paste this into the tag field:

    h1, h2, h3, h4, h5, h6, th, td, caption
    then in the extended button add this to name:

    font-weight
    and this to the value:

    normal

now create a new style and this time called it this in the tag field:

html, body, div, form, fieldset, legend, label

then click the extended button and add this to name field:

margin 

and this to the value field:

0; padding: 0;

if you wanted to add a base font to that last set then just add the font required so that would be as before in the name field:

margin 

but add this to the value field:

0; padding: 0; font-family:Arial,Helvetica,sans-serif 

ok this is the clever bit to make this the overriding reset styles in the style sheet
just add a space before the " h1, h2, h3, h4, h5, h6, th, td, caption" tag name

and a space before the " html, body, div, form, fieldset, legend, label" tag name:

then when you publish those two reset styles are before any of your other styles… well the ones that matter

all the bets max


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options