At 19:48 +0100 on 01/14/2010, Bucky Junior wrote about Re: I'm new at this:
First of all, I've seen huge blocks of code unnecessarily filled with CSS style definitions where it was completely insane. Then, the code is generally non-compliant with W3C specifications. Lastly, By knowing some html coding and cascading style sheets, you can probably do the same page with 1/20th the volume of code.
The problem is two fold. First is that no version of Office since Office 97 (Windows)/98(Macintosh) has output Pure HTML (ie: No CSS). Every Version on both Windows and Macintosh has put out HTML+CSS (not a problem if the CSS is good - See Point 2 below). The junk CSS that you see is to allow Office the ability to read the HTML as if it were a DOC version of the file (it contains CSS to allow the file to be round-tripped so that when read you end up with the same content/formatting as you would have had if you had saved as .doc/.docx in lieu of .html. There is a setting so that you can save the HTML WITHOUT the round-trip crud. You still however run into the second problem - The CSS is verbose and badly formed. For example, instead of having a definition for the P tag to define the default paragraph this information is stored as a CLASS definition and EVERY P tag has the class= reference.
-- Robert A. Rosenberg RAR Programming Systems Ltd. Home: 845-357-0931 Cell: 646-479-1984 Fax: 646-349-4025
-- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group.
