hi i have a page where HTML and Css is mixed is there any program that can seperate html and css please this will really help thank you
The best way to take the CSS out of your HTML code is to sift through your HTML code and copy and paste the CSS code into a stylesheet. So if you have: <p style="background-color: #ffff10">This paragraph has a yellow background.</p> You can make look like this in HTML: <p class"yellowBg">This paragraph has a yellow background</p> And make your stylesheet look like this: .yellowBg { background-color: #ffff10; } If you have a lot of CSS code in your document, it will take some time to go through it.
I think there is no program which can separate HTML and CSS but you can convert PHP to HTML. If cut off your CSS and want to create your page only by HTML. Then you need to do it manually. Thanks
www.voodoobytes.info/humbles-tools/ Code (markup): seems the address don't work without www, it extracts the css, creates classes, then outputs 2 new files with the new classes linked up. Can I get a big solved thingie for the thread?
I would advise against using any automated tool for this - you'll end up with classes that are either vague/meaningless, or you'll end up with classes that are presentational, defeating the entire point of having CSS in the first place. If the page was built with the style inlined in the markup using the style tag and/or attribute, it is entirely likely the page was built without proper semantic markup in the first place and was instead built with outdated/outmoded techniques. An automated tool just isn't going to fix that as if that is indeed the case, the entire thing needs to be thrown out and started over from scratch. Which is probably less work than trying to go through and crap all over the page with rubbish classes like "yellowBG". Though without a link to the page in question anything we tell you here is a wild guess.
I agree, but the thread asks for a program to do it and the program does. As such is solved, even if its not a great idea. So I can still get my thingie...