HTML question

  • Thread starter Thread starter Lauri
  • Start date Start date
L

Lauri

We have students using notepad to create basic html documents. Once they
open these documents in word it changes them to cascading style sheet and
add extra coding. Is there an option I can turn off or something that can
be done to keep Word from changing the documents?
Once the document is changed, is there a way to strip the extra stuff and
make it a simple HTML document again?
 
Lauri,
What is the purpose of opening them into Word? I beleive there is a
work-around, such as saving the document as a ".txt" file rather than a
".doc" file. I think the best thing to do is continue using Notepad unless
there is some specific reason to be opening them into Word.
Hope this helps
Jerry
 
Hi Lauri

By default, if you open an HTML file in Word, Word will (a) render the HTML
and (b) add a whole lot of extra code so you could, if you chose, save it as
a Word document with all the complex formatting that a Word document can
produce but which is impossible for HTML.

If you want to open the file as plain text and use Word as a text editor, do
Tools > Options > General. Tick "Confirm conversion at open". Now, when you
open an HTML file you will get a choice. Choose to edit as plain text and
you can treat Word as a text editor. Or, choose to edit as HTML and it will
behave in the default mode.

If you choose File > Save As and in the Files of Type box choose Web Page
Filtered, then Word will strip out much, though not all, of the extra
formatting. But you won't then be able to round-trip the document back to
Word and retail all Word's formatting.

Hope this helps.

Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
 
The reason they get opened in Word is usually by mistake.
I was looking for ways to lessen the impact on the students when they make
the mistake. Right now they end up having to re-do their assignments due to
the extra stuff Word puts in there.

Lauri
 
Back
Top