Now that you have installed Expression Web 4.0, you can make some changes in the default setup of the program that will make Expression Web easier to work, These changes to the setup can also reduce your frustration level with the code that is created and enhance your working experience.
This page is a brief summary of the various settings. Select from the Page Editor Options tabs:
Each of these is explained in greater detail in Tina Clarke's FREE Setting Up Expression Web 4.0.
NOTE: If the default black color scheme is NOT to your liking and you want to change and use your Windows Color Scheme rather than the default, Tools > Application Options > General Tab > Use your current Windows color scheme. The result will depend on what color scheme you are using.
View Screenshot Default Color Scheme
View Screenshot Windows Color Scheme
The default doctype used by Expression Web 4 for new documents is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
If you are moving from FrontPage or another web editor you may not have any doctype declaration on your pages. Why is it important to include a doctype declaration as part of your page?
The doctype you use will influence the way browsers render your page. The lack of a doctype (or the presence of an invalid one) can change the layout of your page completely, as the browser will use quirks mode instead of standards mode to interpret your code. As the name suggests, you can expect the render to include a few quirks if you take this route. ~ Sitepoint ~
With the page open in Code View, do one of the following:
Do one of the following:
In the list of code snippets, do one of the following:
You also have the choice of using the HTML 5 doctype with CS3 Draft.
Fig 1: Page Editor Options >General Tab (click thumbnail to view larger image)
I tick everything except:
Click the button for spelling Options under Spelling and un-tick the radio button for 'Ignore spellings in uppercase'
if you need to change the options for spelling to cover UK spellings, you will need to make the change in two places:
Tools > Page Editor Options > General tab – Spelling:- Set Spelling language from the drop-down AND
Tools > Spelling Options > Custom Dictionaries > Set this to English (UK) as well from the drop-down.
Make sure 'Show Paste Options buttons' is ticked which will display the Paste Options button when you paste text or elements into a page. When you click the button, a list appears with options for pasting the text or element.
I tick everything except:
Two of the most important ones are that should always be ticked are:
Fig 2: Page Editor Options > Code Formatting Tab (click thumbnail to view larger image)
Tick 'tag names are lowercase' and 'attribute names are lowercase' - the default doctype for Expression Web 4 is XHTML, which requires all code be written in lowercase. Even if you decide to change your doctype to HTML rather than XHTML, it is a good habit to get into and will make a future change easier.
'Attribute names are alphabetized' is ticked by default. If you leave the default setting, your meta tags will NOT remain in the order you set BUT will be reorganized in A-Z order. I recommend NOT having this selection ticked.
Tick 'indent properties on new line.'
Tick 'Use shorthand properties when generating styles.' Use shorthand CSS attributes instead of longhand. As an example, with this option selected, Expression Web would define the values of the width, color and style of a border by setting only the border attribute in the style.
Example Using Shorthand: #masthead {border: 1px solid #000000; }
With this option cleared, Expression Web would set an attribute and value for each border attribute.
Example using longhand:
#masthead {
border-bottom:1px solid #000000;
border-left:1px solid #000000;
border-right:1px solid #000000;
border-top:1px solid #000000; }
Both accomplish the same style BUT the shorthand code is much shorter.
If you set the Right Margin at a high number (2000), this will keep your code from wrapping.
Fig 3: Page Editor Options > CSS Tab (click thumbnail to view larger image)
If you are new to CSS, tick the 'Auto Style Application.'
The Page properties on the <body> tag should be set to rules and everything else to classes
If you tend to use the formatting toolbar to add styling to your page, which is not a good habit to get into, you may also wish to check the 'Only reuse classes with the prefix style' option. Why? You page can quickly fill up with auto-generated styles - style1, style2, style3 and so on. Expression Web can help with this issue by automatically reusing styles with the same properties where possible.
Example: Create a short paragraph of text (one line) and apply underline to the text. The following will be added to your <p> tag class="auto-style1" and the associated style block would be added to the head section of your page:
<style type="text/css"> .auto-style1 { text-decoration: underline; } </style>
If you then change the text color of this paragraph to #CC3300, then EW would just update style1 accordingly.
<style type="text/css"> .auto-style1 { text-decoration: underline; color: #CC3300; } </style>
If you then add a second paragraph of underlined text, style2 would be created in the head section and applied to the paragraph.
.auto-style2 { text-decoration: underline; }
If you then apply the same color #CC3300 to that paragraph, both paragraphs would be updated to use the same style — style1 — and style2 would be deleted.
If you see a lot of style1, style2, etc in the head section of your page, please read What are all the style# in my page?
Fig 4: Page Editor Options > Authoring Tab (click thumbnail to view larger image)
If you choose to use the .htm file extension, be aware that there is a bug in Expression Web 4.0. If you use any of the generic site templates that ship with Expression Web or any third party Site Templates to create your website, and have selected the .htm file extension, you will see before your eyes the index.html page change to default.html. If you blink, you may miss this. This is a little known bug.
If you have it set the default extension to .html then your homepage extension will remain index.html. You can, of course, rename your homepage file to whatever your host requires by right clicking on the selected link in Folder List View (Panels - Folder List or Alt + F21) and choosing 'Rename'.
NOTE: This bug still exists in the free version of Expression Web 4.
WARNING - This bug affects Expression Web 4.0 ONLY but is a more serious bug than the one mentioned above.
If you download and install any third party .tem Site Template package such as those offered by Migrating from FrontPage to Expression Web and at the same time have you default page extension set to .htm, you will see the following behavior:
Until this bug is fixed, I would strongly suggest choosing .html as the default file extension. That choice will affect all new files. Old files will remain untouched and you can always rename the file to use the .htm extension if you so choose.
NOTE: This bug still exists in the free version of Expression Web 4.
The default settings are:
The default setting is:
Fig 6: Page Editor Options > Intellisense Tab (click thumbnail to view larger image)
Tick all the boxes provided. Intellisense works in Code View and allows you to look up and insert code that's compatible at the place in your code where your cursor is currently located.
In Code View, place your cursor where you want the tag and type the opening <. When the Intellisense menu pops up, scroll to the entry you want. You can press Enter or double-click to insert it. Intellisense is also available when you are editing an existing tag or from the Quick Tag bar.
Intellisense can also be using while working with CSS.
IntelliSense provides:
The DocType declaration in a page determines the options that appear in the IntelliSense shortcut menus in the Code view of a page.
As an example: If you are using the default doctype declaration XHTML 1.1, Expression Web will NOT offer the target attribute as it has been deprecated in XHTML.
In addition, the option you set for the CSS Schema in the Page Editor Options dialog box determines the level of CSS that appears in IntelliSense shortcut menus.
There are other tabs you can explore under the Page Editor Options settings, but the ones listed above are the main ones. For greater detail, download Setting Up Expression Web 4 by Tina Clarke.
Next Step: Create Website in Expression Web 4.0
Copyright © 2009 Pat Geary of
Expression Web Tutorials and Templates, All Rights Reserved
Revised for Expression Web version 4.0 July 2010
Updated: December 2012
Expression Web 4.0 Tutorials 2nd Edition from Install to Publish, a FREE EBook by Pat Geary.
Expression Web has a group on Facebook. If you are a FB user, come join us.
Disclosure: This is an affiliate link, which means that if you visit Bluehost.com through this link and purchase this product, I’ll get a commission.
April 2007 - April 2013
Privacy Policy | Migrating from FrontPage to Expression Web
Microsoft® and Expression Web® are registered trademarks of Microsoft® Corporation.
Site Design & Maintenance : Expression Web Tutorials & Templates