Jump to content

html code


Run Around
Followers 1

Recommended Posts

You can also save your word doc as a webpage, but I think you end up with a lot of embedded microsoft word code.

Sweet fancy Moses, don't do that! The Microsoft products are notorious for adding huge amount of extraneous code.

 

As a test, I just tried making a new Word document with only the text "This is a test", and the resulting .htm file was 38 kB! To be clear, that's 39013 bytes to represent only 14 bytes of text. :blink:

Link to comment

You can also save your word doc as a webpage, but I think you end up with a lot of embedded microsoft word code.

Sweet fancy Moses, don't do that! The Microsoft products are notorious for adding huge amount of extraneous code.

 

As a test, I just tried making a new Word document with only the text "This is a test", and the resulting .htm file was 38 kB! To be clear, that's 39013 bytes to represent only 14 bytes of text. :blink:

 

That matches my experience as well. I developed an application that provides faculty profile information (an overview, research areas, lists of publications, etc) that is consumed by departmental websites and many of the profiles contain a lot of cut-n-pasted Microsoft word html. When I implemented a html filter which removes all the unnecessary Microsoft html I saw a significant performance improvement.

 

I"d suggest that rather than cut-n-paste Microsoft word, to use one of the many WYSIWYG Html editors (there some browser plugins that will do this as well) available. That way you can still get the formatting you want but may also learn a bit of HTML when you look at the output it generates.

 

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Followers 1
×
×
  • Create New...