My pages have a lot of junk from the years of changes. hand editing them all would take months.
Any ideas?
My pages have a lot of junk from the years of changes. hand editing them all would take months.
Any ideas?
Use a content management system-- you must 'hand edit' them to do this, but after that you can do it much more easily.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
Could you say a little more about how that works in the long run? What about a content management system would be helpful after the code is hand editted? I always thought of content management as being for sites where many people had some access to a site to make changes..how would it help with the editing process..
A CMS, whether used by one or many users, is designed to edit content not code. The code is consistent throughout the site while the content is changed manually. This means everything is more efficient. Of course it's less efficient to setup, but if it is used on enough pages it makes up for the time quickly.
A CMS can be either a system like word press or joomla that you install on your site or something you build yourself using databases and a serverside language like PHP.
If you want more help, please ask more specific questions and give us details to work with. For general topics like this, there is also a lot of information available on google and wikipedia.
Based on the first question in this thread, I'm not sure exactly what is being 'cleaned up', but a content management system should help.
Another way to approach it would be to use templates, but CMS and templates are basically the same thing, at a technical level.
Last edited by djr33; 12-18-2010 at 07:45 PM.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
Dreamweaver has a "clean up word HTML" option. Granted, I know it isn't perfect, but it also the only thing I have worked with.
Last edited by djr33; 12-20-2010 at 05:09 AM. Reason: Signature links removed.
I think he means cleaning up "Syntaxically", if that is a word at all.
Try doing this. Be brave, do it once yourself, align them by using tabs for interior elements, breaks for block level elements etc.
Much better solution is, if you are a web programmer too, use Server Side Includes to modularize your sections of the website.
Example in PHP..
This is a general example. It is upto you to build on it and make it cleaner.Code:<body> <?php require_once( 'includes/header.php' ); ?> <?php require_once( 'includes/middle.php' ); ?> <?php require_once( 'includes/footer.php' ); ?> </body>
HTML Tidy:
http://tidy.sourceforge.net/
Be forewarned though. Back up your pages first. If they are very messy and/or not to standards, HTML Tidy will break them. But you should be able to go back and fix them.
Another approach would be to validate your HTML first:
http://validator.w3.org/
That way HTML Tidy will be less likely to break the page when it cleans it up. The validator also has an option:
Which you can choose after hitting the "More Options" link.Clean up Markup with HTML Tidy
As I say though, before doing any of this - Back up your pages first.
Last edited by jscheuer1; 01-04-2011 at 06:37 AM. Reason: add detail
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
I hand't heard about HTML Tidy until now. And I am sure it can't work as weel as manul edit.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Try Cleanup HTML on-line tool to clean HTML code
Bookmarks