Forum Moderators: not2easy

Message Too Old, No Replies

Mixed Code & HTML Tidy

Mixed Code Tidy

         

Chickie

11:49 pm on Apr 23, 2010 (gmt 0)

10+ Year Member



I consider myself a novice to css, however I am taking a crack at developing a website utilizing css and I'm learning quickly that errors come easily!

I've developed an initial template primarily in html and incorporated a css layout and placed everything where I wanted it and how I wanted it to appear.

In developing navigation, I used a css horizontal bar and to incorporate it into my many pages, I'm using shtml and the good old include command.

There is some javascript thrown into the site for connections to social networking too.

I ran the page through html tidy and got tons of errors. Apparently, tidy says I can't mix css, and basic html without getting tons of errors.

Any thoughts on this?

mattur

5:56 pm on Apr 25, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you're aiming to produce valid HTML, use the HTML validator [validator.w3.org].

You can of course use CSS to style HTML without generating conformance errors, so it's not using "mixed-code" (i.e. using CSS to style HTML) per se that's generating the errors, it's the way you've coded your HTML (or the options you're using to run Tidy).

What are the errors?

g1smd

6:53 pm on Apr 25, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Once you have everything looking how you want, you might want to move the CSS into an external CSS file and link to that from the <head> of your page.