Home > Articles > Web Development

  • Print
  • + Share This
This chapter is from the book

Q&A

Q.

When I imported the content from the Word document, there was all this extra code attached to the heading to make it larger and bold. How come simply adding the <h1> tags has the same effect?

A.

All browsers interpret predefined styles in HTML in much the same way. All these styles are available from the Styles drop-down menu. If you don’t specifically define these styles in your document, they display according to their default parameters. In later lessons, you will learn to change the default styles to your specification and to make new styles.

Q.

Why can’t I simply cut and paste the content from a Word document straight into my web page?

A.

A word processor, such as Microsoft Word, inserts a large amount of hidden style code in documents. When you copy and paste text from these programs, all of that code quite literally tags along. One example of this is simple line breaks. When you press the Enter key in a word processor, you are actually inserting two line break codes rather than one. So, when you copy and paste the content to Expression Web 2, an extra line of empty space appears between each paragraph and you have to delete them manually. There are many ways of getting around this problem. One is to copy the content into a pure text editor such as Notepad first and copy it from there into Expression Web 2. But this approach can cause a lot of confusion and extra work because it strips away all the style information and gives you only plain text. There is nothing technically wrong with cutting and pasting content from word processors to Expression Web 2, but it creates a lot of extra work.

  • + Share This
  • 🔖 Save To Your Account