FrontPage tags - Pain in da HTML

南楼画角 提交于 2019-12-04 15:23:37

For an online solution, you should check out Webmaster-toolkit's Frontpage Code Cleaner.

The final solution to this problem is:

Do not use FrontPage!

I think the reason for not finding any conversion tools is that almost every developer that would care enough to filter the MS-specific tags, has moved on to another editor.

If it is important enough for your client that the source looks reasonably clean, it should definitely be important enough for your fellow developers.

You can remove the FP proprietary tags. I used my own regex to remove starting and ending garbage tags: <\?xx[^>]*> change 'xx' to the tag you are removing.

Are you breaking totally away from FrontPage? If the site is edited in page view, FP will put the tags back.

Also FP likes to control everything and writes a _vti_cnf file for each file it uploads. It gets testy if you ftp from a program that is not FP and that file is missing (especially if you are using FP extensions).

Make sure you put in a DOCTYPE - I don't think FP does that automatically.

HTML Tidy will do a wonderful job of cleaning up just about any mess you can find.

Daan

Frontpage itself has a code cleaner built in: rightclick on the page when in code view. This gets rid of a lot of the bloat.

While bloat was a big thing a decade ago, it really no longer is a big deal with the fast internet services.

I have a website with tons of graphics, iframes, tables and related webpages, and yet no page file exceeds 65kb.

With optimized graphics each page uploads in less than 2 seconds.

Take a look at http://www.cuyabenolodge.com/amazon-rainforest/cuyabeno-wildlife-reserve.htm to try for yourself. This site has about 200 pages and is quite complex to manage. But it is nothing compared to http://www.birdlist.org and associated sites with 2000 pages.

Only Frontpage has a WYSIWYG navigation editor that allows me to drag a page from one place in the navigation tree to another.

Moreover, this conservation website is from 1997 and has tons of links. Changing to another editor would make me lose all those backlinks.

But more than anything: website building is a commercial activity and time is money. No other software is so time efficient as FP. So all this nagging about code is irrelevant now, because the web has speeded up so much that it is irrelevant and FP has a code cleaner built in.

If the client looks at the code, clean all the white space and he/she will not be able to see anymore whatever he thought unprofessional.

-- A convinced FP user.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!