Expression Web 3 Tutorials 2ed
Expression Web 3 Tutorials 2ed
Web 3.0
Tutorials
2nd Edition
By Patricia Geary
November 2009
Revised February 2010
Table of Contents
About the Author - Pat Geary .......................................................................................................................................................5
About Expression Web 3.0 ..............................................................................................................................................................6
Expression Web 3 Service Pack 1 Now Available! .................................................................................................................6
Upgrade Information and Pricing..............................................................................................................................................7
Expression Web V3.0 Reviews ...................................................................................................................................................7
Expression Web Addons..............................................................................................................................................................8
FPCleaner ...................................................................................................................................................................................8
Spawn for Expression Web ....................................................................................................................................................8
Advanced CSS Drop Down Menu - Expression Web ....................................................................................................8
Pure CSS Menu - Expression Web ........................................................................................................................................8
SEO Tools for Expression Web 3 ...........................................................................................................................................9
User Interface - Changes to the User Interface .....................................................................................................................9
Site management....................................................................................................................................................................... 10
Task Panes now Panels ............................................................................................................................................................. 11
Include Page Option .................................................................................................................................................................. 11
Snapshot Panel ........................................................................................................................................................................... 12
To activate Snapshot ............................................................................................................................................................ 12
SuperPreview .............................................................................................................................................................................. 12
System Requirements ............................................................................................................................................................... 13
Installation................................................................................................................................................................................... 13
Setting up Expression Web 3.0 ................................................................................................................................................... 15
Tools > Page Editor Options > General Tab ......................................................................................................................... 15
Tools > Page Editor Options > Code Formatting Tab ......................................................................................................... 16
Tools > Page Editor Options > CSS Tab ................................................................................................................................. 17
Tools > Page Editor Options > Authoring Tab ..................................................................................................................... 18
Tools > Page Editor Options > Intellisense Tab ................................................................................................................... 19
Create New Website in Expression Web 3.0............................................................................................................................ 20
Create a One Page Website..................................................................................................................................................... 20
Create a Blank Web Page ............................................................................................................................................................. 23
Create a Blank Web Page ......................................................................................................................................................... 23
Saving the Page .......................................................................................................................................................................... 24
Tina Clarke who is also a Microsoft MVP – Expression Web and I have coauthored two eBooks you also
might find helpful. Launching a WordPress Blog is a FREE eBook on setting up a WordPress Blog on
your own domain. Migrating from FrontPage to Expression Web is an eBook (for sale) that can help you
in the process of moving from FrontPage to Expression Web, and have a more standards-compliant
site.
I live in the Shenandoah Valley of Virginia with my husband, Jim, and our dog Katie (pictured above).
Katie was adopted from our local SPCA.
The tutorials included in this eBook were first published on my website Expression Web Tutorials &
Templates and have been revised somewhat for ease of use in book format.
Expression Web 3.0 includes Expression Encoder 3.0 and Expression Design 3.0, as
well as Expression Web + Super Preview. Expression Web supports ASP.NET, PHP,
Microsoft Silverlight, Deep Zoom Composer images, AJAX, and Silverlight video.
You can import Adobe Photoshop files easily and publish your sites quickly and
securely with multiple files transfer streams and secure FTP. The multiple preview
modes in Expression Web speed up your site development. Use the Snapshot
Preview to see actual browser views of pages using any browser installed on your
computer, right in Expression Web. Use SuperPreview to compare your pages in
multiple browsers simultaneously. You can even overlay pages from two different
browsers to troubleshoot layout and positioning errors.
Fixes a problem in which multiple tasks are undone when you use the Undo feature.
Resolves a problem in which an invalid link is generated when you drag an image from the Folder List
panel into the Code view of a page.
Lets you to select text in the Design view of a page more easily and more accurately.
Resolves a crash issue that is caused by nonstandard or corrupted fonts that are installed on your
computer.
Fixes a problem in which tags that begin with "<?php" are renamed after you rename a file.
Resolves a problem in which Japanese characters are altered.
Resolves a problem in which the source file is deleted after you copy a file from one instance of Expression
Web 3 and then paste the file into another instance of Expression Web 3.
Restores the functionality to drag files into a selected folder in the Folder List panel.
Enables connections to each destination without requiring you to restart the application when multiple
publishing destinations are specified on the same FTP server and when only the user credentials are
different for those destinations.
Fixes several problems in the workflow between Expression Web and Team Foundation Server.
Displays the correct file status in publishing view after you publish a site.
Extensibility: Supports add-ins that use the Expression Web object model.
Root-relative links: Supports root-relative hyperlinks.
PHP files that do not use the *.php file name extension: Adds support for Drupal and CakePHP template
files. Expression Web 3 SP1 now recognizes .module, .install, .inc, and .ctp as valid PHP extensions.
Application color scheme: Provides an improved black and gray color scheme that better reflects the
appearance of the Microsoft Expression Studio 3 family of products. Expression Web 3 SP1 also provides a
new Application Options setting that lets you select the Windows color scheme instead of the default
color scheme.
Windows Internet Explorer 8 META tag and Web Slice support: Contains new code examples to support
features that are specific to Internet Explorer 8. The new code examples include META tags specific to
Internet Explorer 8, plus a new Web Slice code example. You can access the code examples by pressing
CTRL+ENTER in Code view.
Estimated Retail Price (ERP) Full Version $149 USD Upgrade $79 USD. If you are a registered owner of
Expression product or even some third-party tools, you are eligible to upgrade to Expression version 3
at the upgrade price.
You must be a licensed user of one of the following products to be eligible for the upgrade versions.
FPCleaner
Steve Easton’s FPCleaner has been updated so that it now supports Expression Web 3.0 with SP1 as well as
FrontPage (2000-2003), Expression Web 1.0 and 2.0, SharePoint Designer. Best of all, this program is FREE. It is
one of the programs I have consistently recommended if you have problems with FrontPage and/or Expression
Web as it cleans up the clutter of files that are left behind. It does not require installation and runs from your
desktop. This is one of the essential tools in my arsenal of tools for web design work.
The menus are based on the popular and widely accepted Suckerfish / Son of Suckerfish CSS dropdown menu
technique, and enhanced with JavaScript behaviors; this CSS menu guarantees the highest level of compatibility,
accessibility and user experience. The menus are fully cross-browser compatible and work in all currently used
browsers (such as IE6, IE7, IE8, Firefox, Opera, Safari, Chrome, etc.) and in most outdated browsers (including
IE5.x), degrades gracefully in very old browsers.
The menu markup complies with HTML, XHTML and CSS standards and passes W3C and Expression Web
Accessibility and Compatibility checks. The program is available for $59.95. A free trial is offered so there is no
need to buy a pig in a poke; take advantage of a risk-free fully functional 15-day trial.
This feature-rich Expression Web add-in will generate completely script-less pure CSS drop-down horizontal and
vertical menus. True pure CSS dropdown menus require no JavaScript at all and work in all currently used
browsers. Lightweight, accessible, and SEO-friendly solution. The menus are fully cross-browser compatible and
works without JavaScript support in all currently used browsers (such as IE6, IE7, IE8, Firefox, Opera, Safari,
Chrome, etc.) and in most outdated browsers (including IE5.x), degrades gracefully in very old browsers.
The menu markup complies with HTML, XHTML and CSS standards and passes W3C and Expression Web
Accessibility and Compatibility checks. This program is also available as a free trial - no need to buy a pig in a
poke, take advantage of a risk-free fully functional 15-day trial. It currently sells for $39.95.
Expression Web 3 follows the same look and feel found throughout Expression Studio. This consistent, uniform
interface is new for Expression Web 3 and does not let you change the colors in the interface. You may find that it
offers slightly less customizability than previous versions of Expression Web, at the expense of some new
functionality that we have added, like a new Panel and Panel docking system.
With the release of Service Pack 1, you now have the ability to choose between an improved black and
gray color scheme which is the default, that better reflects the appearance of the Microsoft Expression
Studio 3 family of products or the Windows color scheme.
You cannot customize the menus or toolbars in Expression Web 3.0 but we hope that will change with
an addin or in a future release. None of the current addins for Expression Web 1.0 or 2.0 will work with
Expression Web 3.0, but new ones are being developed. To give you an idea of the difference in how
EW 2.0 and 3.0 looks, see the screenshots below:
Figure 1 - EW 2.0 User Interface Figure 2 - Expression Web 3.0 Default Figure 3 - Expression Web 3.0
User Interface Windows Color Scheme User
Interface
Some menu items have also been removed or changed to a different location.
Site management
One of the biggest changes is to site management. Expression Web provides new tools to help you
publish content to your site. With Expression Web 2.0 much of the site management functions were
done through the 'File' menu which included:
In Expression Web 3.0, these functions have been moved to the 'Site' menu
Once you rearrange the panels in a layout that works for you, Expression Web automatically uses this
layout the next time you start the program. I prefer mine docked on the left-hand side of my
workspace. You can also autohide the panels. Check Help > User Guide for additional information on
the 'Panels.'
To activate Snapshot
On the Panels menu > click Snapshot. The Snapshot panel appears.
On the View menu > click Page > click Snapshot.
SuperPreview
'SuperPreview' (See Figure 10) is available from within Expression Web. It allows you to preview and
compare pages simultaneously in multiple browsers, as well as in multiple versions of Internet
Explorer. You can also compare browser views against a comprehensive mock-up ("comp") image. You
can select individual elements within a page and see details about each selected element, helping you
quickly find and fix cross-browser layout and positioning errors. Tina Clarke’s detailed tutorial
Expression Web 3.0 SuperPreview.
System Requirements
To use Microsoft® Expression Web 3, you need:
Microsoft Windows® XP with Service Pack 2, Windows Vista™, or Windows 7 operating system.
PC with 1 GHz or faster processor
1 GB of RAM or more
1.5 GB or more of available hard-disk space
.NET Framework 3.5 with Service Pack 1 Support for Microsoft DirectX® 9.0 graphics with
Windows Vista Display Driver Model (WDDM) Driver, 128 MB of graphics RAM or more, Pixel
Shader 2.0 in hardware, 32-bits per pixel
DVD compatible drive
1024 x 768 or higher-resolution monitor
Internet access (for Internet functionality; additional fees may apply)
Some product features require Silverlight 2.0, Firefox 3.0, Internet Explorer 7, and AJAX Suite
Click Try It > Download Trial > Click Download (New page opens with each click.)
If you save the file, make sure you know where on your computer you are saving it.
Installation
Click the installation file, > Accept the License Agreement.
Decide if you wish to participate in the Customer Experience Program. > Tick the appropriate
box > Click Next.
Choose the programs you want to install. With the trial, you will only be given the choice of
Expression Web 3. If you purchase the program, you will be given the choice of all features -
Expression Web 3, Expression Design 3, and Expression Encoder 3.
You can watch the install process. Once completed, a Thank You screen will appear.
When you start Expression Web, you will see the new Welcome Screen.
Now that you have installed Expression Web 3.0, you can make some changes in
the default setup of the program that will make Expression Web easier to work
with and enhance your working experience and, perhaps, lower your frustration
level.
Remember, the trial version will function for sixty days ONLY.
This page is a brief summary of the various settings. Each of these is explained in greater detail in Tina
Clarke’s FREE Setting Up Expression Web 3.0. Select from the Page Editor Options tabs
Tick 'tag names are lowercase' and 'attribute names are lowercase' - the default doctype for
Expression Web 3 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.
The Page properties on the <body> tag should be set to rules and everything else to classes.
Tick your default file extension htm or html. It does not matter which one you choose, just be
consistent.
Adding a BOM on PHP pages causes problems because it will appear on the webpage,
disrupting the display. Introduced in EW 2.0 and available in EW 3.0 is the ability to turn off the
addition of a byte order mark in UTF-8 pages by file extension. By default only, the .php
extension has the BOM turned off. I turn it off on all pages. I do so by clearing the checkmark
from each the file extensions listed.
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 3. by Tina Clarke.
Now that you have Expression Web 3.0 installed and have set up the program following the Setting Up
Expression Web tutorials, you are ready to start working on your new web. If you have already created
a website you can open it in Expression Web. There is no need to import the site. Be sure you have a
good backup just in case. Or you can create a new website and start from scratch. NOTE: Screen shots
may look different from what you see. I am running Expression Web 3.0 on a computer with Windows
Vista Ultimate installed.
Step 3: The new website will be created with one page named default.html. I immediately rename it to
index.html by right clicking on the file (from the Folder List Task Panel) > Rename.
Figure 22 - Rename
Either click the new folder icon, OR Right Click > New > Folder > type images.
You can change that in Tools > Page Editor Options > Authoring.
Now that you have created your website, you can either open the default.html, or index.html if you
renamed it, and begin creating a page that will serve as the template for your site.
If you would like a starting point for designing your new website, please feel free to download and use
one of these FREE CSS based layout templates available from Genealogy Web Creations or import one
of the Personal Web Packages from Expression Web Tutorials & Templates.
You might also consider downloading and installing one or all of the FREE Expression Web Site
Template sets. There are four different layout sets available.
Expression Web 3.0 can create various types of pages, BUT in this tutorial we will create an HTML page
and its corresponding style sheet. Types of pages that can be created include:
HTML
ASPX
ASP
PHP
CSS
Master Page
Dynamic Web Template
Javascript
XML
Text File
Ctrl + N
File > New > HTML
Click File > New > Page > General > HTML.
Click the New Document dropdown from the Toolbar > select HTML.
If you click the Code Tab and view the page source, you should see something like what is below.
Ctrl + S
Right Click the page tab. > Select Save.
Click File > Save.
Click the Save Icon on the Toolbar.
In the dialog box that opens, 'file name' will be highlighted. > Type 'index,' > press the Enter key OR
click 'Save.' It is not necessary to add the file extension .htm or .html. Expression Web will do it for
you. Your page has been saved, and you are ready to add the external style sheet.
Step 5: Save the page as you did, following the choices in Step 3. Type a name for the style sheet.
Expression Web will add the file extension for you.
With the webpage open in Design view, drag the .css file from either the Folder List panel or
the Site View onto the page.
In the Manage Styles Panel or the Apply Styles Panel, click on 'Attach Style Sheet.'
If you click the Code Tab and view the page source, you should see a line of code has been added to
your page with the name of your style sheet.
Summary
You have now created your Home Page and the external style sheet and attached the style sheet to
your page. The next step is to create the layout for your page.
You could use one of the premade templates that come with Expression Web or you could choose to
download and use one of these FREE CSS-based layout templates available from Genealogy Web
Creations or import one of the Personal Web Packages from Expression Web Tutorials and Templates.
OR you can create a basic layout from scratch as the next tutorial will guide you through.
Expression Web supports Dynamic Web Templates as a way to maintain a consistent look to your site.
The page we are creating will be the basis for a DWT for your site. Tina Clarke offers free the
Expression Web DWT EBook. This is an excellent resource, so be sure and take advantage of this free
download.
Expression Web 3 offers two additional ways to preview your pages — 'SuperPreview' or the 'Snapshot'
panel. To use the 'Snapshot' panel, click Panels > Snapshot. To view your pages with 'SuperPreview,'
select File > Display in SuperPreview OR Press Shift + F12.
If it is not already open, open the page you created earlier in Expression Web. File > Open OR Press Ctrl
+ O.
The body element defines the document’s body. To style the <body> tag, create a new style. From the
'Manage Styles' or 'Apply Styles' panel click 'New Style.' In the New Style dialog box, type or select the
following:
The first <div> we will add will be for the container that will "hold" all of the other <div>’s or elements
of our page. Style rules will be added as we add the <div> tags.
Step 1: With your page open in 'Split View,' drag the <div> from the 'Toolbox' panel and drop it on
your open page. You will see that <div></div> has been added to your page.
Step 2: Using the 'Quick Tag Selector,' click <div>. From the 'Manage Styles' or 'Apply Styles' panel
click 'New Style.' In the New Style dialog box, type or select the following:
#container { width: 80%; padding: 10px; margin: 10px auto 10px auto; background-color: #FFFFFF; }
1. Click and drag a <div> from the Toolbox onto the page, making sure it is INSIDE the container <div>.
2. Click 'New Style.' Check: Apply new style to document selection.
3. Selector: #masthead
4. Click the Position Category: set the height to 170px. Do not set a width. This will allow the header to
extend across the entire width of the container.
5. Click on the Background Category and set a background color and image if you choose to use one.
6. Click OK. Save your page and view in your browser.
<div id="container">
<div id="masthead"> </div>
</div>
1. Click and drag a <div> from the Toolbox onto the page making sure it is INSIDE the container <div> and
BELOW the masthead <div>.
2. Click 'New Style.' Check Apply new style to document selection.
3. Selector: #top-nav
4. Position: set the height to 50px. Do not set a width. This will allow the menu to extend across the
entire width of the container. NOTE: Additional style rules will be added later.
5. Border: Set the top and bottom borders.
6. Background: Set the background color.
7. Click OK. Save your page and view in your browser.
8. Menus are best suited to unordered lists. Additional style rules will need to be set for your top
navigation.
#top-nav { height: 50px; border-top: solid medium #006600; border-bottom: solid medium #006600;
background-color: #FFFFFF; }
<div id="container">
<div id="masthead"> </div>
<div id="top-nav"> </div>
</div>
Our sample page will consist of two columns — one on the left for additional navigation or messages
and the main column for content. We will float the one column to the left and place the main content
area by applying a left margin.
1. Click and drag a <div> from the Toolbox onto the page making sure it is INSIDE the container <div> and
BELOW the top-nav <div>.
2. Click 'New Style.' Check: Apply new style to document selection.
3. Selector: #left-nav
4. Position: set the width to 180px. Again, do not set a height so the column will expand as you add
content.
5. Layout: float: left.
6. Background: Add a background color or a graphic. If you do not specify the background color, the
container will be seen.
7. Border: Add a border to this container if you wish.
8. Box: Set the top margin at 20px and the bottom margin at 10px. Set the left and right margins as 0px.
This will push the top menu down from the border of the top navigation.
9. Click OK. Save your page and view in your browser.
10. Menus are best suited to unordered lists. Additional style rules will need to be set for your left
navigation.
#left-nav { margin: 20px 0px 10px 0px; width: 180px; float: left; border: thin dashed #006600; }
1. Click and drag a <div> from the Toolbox onto the page making sure it is INSIDE the container <div> and
BELOW the left-nav <div>.
2. Click 'New Style.' Check Apply new style to document selection.
3. Selector: #main-content
4. Background: Add a background color or a graphic. If you do not specify the background color, the color
will be the same as specified in the container.
5. Border: Add a border to this container if you wish.
6. Box: Set the top margin at 20px and the left margin at 200px, right margin to 10px, and bottom margin
at 10px. This will push the main content down from the border of the top navigation and to the right of
the left navigation <div>.
7. Click OK. Save your page and view in your browser.
<div id="container">
<div id="masthead"> </div>
<div id="top-nav"> </div>
<div id="left-nav"> </div>
<div id="main-content"> </div>
</div>
1. Click and drag a <div> from the Toolbox onto the page making sure it is INSIDE the container <div> and
BELOW BOTH column <div>'s.
2. Click 'New Style.' Check: Apply new style to document selection.
3. Selector: #footer
4. Border: Add a top border to this container if you wish.
5. Layout: clear: both — this will clear the float that was used to position the column and push the footer
below BOTH of the columns.
6. Block: text-align: center
7. Box: Add padding of 10px to the top and bottom.
8. I also add the following style rule to the footer: id #footer p { margin-top: 0px; margin-bottom: 0px;}.
This allows for the use of the <p> tag in entering the information for your footer but removes the top
and bottom margins of the paragraphs.
9. Click OK. Save the page and view in your browser.
#footer { border-top: 2px solid #006600; clear: both; padding: 10px 0px; text-align: center; }
#footer p { margin-top: 0px; margin-bottom: 0px; }
<div id="container">
<div id="masthead"> </div>
<div id="top-nav"> </div>
You will need to add additional meta tags to the head section of your page.
General Tab
o Title: Type the title for your page.
o Page description: Type a brief description of what your page is about.
o Keywords: Type the keywords for your page separated by commas.
Custom Tab (Can be used to add meta tags)
o Click Add >
o Name: Type copyright.
o Value: Type Copyright © 2008-2010, You Name or Business All Rights Reserved.
o Click OK.
OR you can copy and paste the tags into your document. Read more on Basic Meta Tags
NEXT: Adding Navigation to the Layout. This will be done in two parts. We will add a horizontal top
menu, then a left-side navigation menu.
On the 'Common' toolbar, click Bullets , or on the 'Formatting' toolbar, click the Style box, and
select Unordered List.
Drag the page you want to include as a menu item from the 'Folder List' panel to the first bullet. Hit
'Enter' to add a new list item. Using this method will create your hyperlinks as you go along. If you have
no pages as part of your website but would like to create the menu items and pages as you go, you can
follow Creating a New Page from Hyperlink Properties.
OR for each item or line of text that you want in the list, type the text, and then press ENTER to add a
bullet to the list. If you use this method, you will need to create the hyperlinks to the menu items.
Click 'Screen Tip,' Type a brief description of the link. For SEO purposes, use the title of the page.
Continue this procedure until you have added all of your top menu links.
If you view your source code, it should look something like the following:
<ul>
<li><a title="Home - Site Name." href="index-two.html">Home</a></li>
<li><a title="Menu Item." href="index.html">Menu Item</a></li>
<li><a title="Menu Item." href="index.html">Menu Item</a></li>
<li><a title="Menu Item." href="index.html">Menu Item</a></li>
<li><a title="Menu Item." href="index.html">Menu Item</a></li>
<li><a title="Menu Item." href="index.html">Menu Item</a></li>
<li><a title="Menu Item." href="index.html">Menu Item</a></li>
<li><a title="Menu Item." href="index.html">Menu Item</a></li>
</ul>
Of course, each menu item would hyperlink to its own page NOT the index.html page. This is just an
example.
Click the 'New Document' icon. Save the page with the name top-menu.html in the _includes folder.
Navigation Resources
Website Navigation - Website Navigation Structure
Navigation Menu - Creating A Navigation Menu
Website Navigation
Whatever your final choice of navigation is, it should be a consistent navigation scheme from page to
page throughout your site. This helps the website visitor learn your website navigation system.
You will also need to make sure that whichever menu system you use, that it renders in all browsers.
Type a Section heading like Site Navigation BEFORE you start your list.
On the 'Common' toolbar, click Bullets , or on the 'Formatting' toolbar, click the Style box, and
select Unordered List.
Drag the page you want to include as a menu item from the 'Folder List' panel to the first bullet. Hit
'Enter' to add a new list item. Using this method will create your hyperlinks as you go along. If you have
no pages as part of your website but would like to create the menu items and pages as you go, you can
follow Creating a New Page from Hyperlink Properties.
OR for each item or line of text that you want in the list, type the text, and then press ENTER to add a
bullet to the list. If you use this method, you will need to create the hyperlinks to the menu items.
Select the item that you want to use as the hyperlink. > Press Ctrl + K OR right click and select hyperlink.
OR In either the 'Common' or the 'Standard' toolbar, click Insert Hyperlink
In the 'Insert' or 'Edit' Hyperlink dialog box, do the following:
o Click 'Screen Tip.' Type a brief description of the link. For SEO purposes, use the title of the
page.
Continue this procedure until you have added all of your top menu links.
If you view your source code, it should look something like the following:
<p>Site Navigation</p>
<ul>
<li><a title="Home - Site Name." href="index-two.html">Home</a></li>
<li><a title="Menu Item." href="index.html">Menu Item</a></li>
<li><a title="Menu Item." href="index.html">Menu Item</a></li>
<li><a title="Menu Item." href="index.html">Menu Item</a></li>
<li><a title="Menu Item." href="index.html">Menu Item</a></li>
<li><a title="Menu Item." href="index.html">Menu Item</a></li>
<li><a title="Menu Item." href="index.html">Menu Item</a></li>
<li><a title="Menu Item." href="index.html">Menu Item</a></li>
</ul>
Of course, the each menu item would hyperlink to its own page NOT the index.html page. This is just
an example.
Click the 'New Document' icon. > Save the page with the name left-menu.html in the _includes folder.
Copy and Paste the menu list from your index.html page into the new left-menu.html page. Delete from
the index.html page.
Insert the top-menu.html into index.html as an include:
o Using Code Snippets to Insert Include Pages
o Use the 'Standard Toolbar' to insert your include page.
Navigation Resources
Website Navigation - Website Navigation Structure
Navigation Menu - Creating A Navigation Menu
Website Navigation
Whatever your final choice of navigation is, it should be a consistent navigation scheme from page to
page throughout your site. This helps the website visitor learn your website navigation system.
You will also need to make sure that whichever menu system you use, that it renders in all browsers.
Now that you have finished designing your site you will need to publish it for the world to see. The
screenshots for this tutorial were done with a system running Windows Vista Ultimate and Expression
Web 3.0. Yours may look slightly different. Expression Web supports several different publishing
scenarios.
Step 1: Open the website on your computer in Expression Web. Make sure you have saved all of your
pages. You will receive a warning if you have not once you start the publishing process.
Step 2: If you didn’t set the options for your site while developing your site, check your settings before
attempting to upload/publish. Site > Publishing Settings > Add/Edit .
Step 5: If this is the first time you have published this site, you will receive the message 'Add a
publishing destination.' Click the message and the Connection Settings dialog box will appear. See Fig
42.
There are several things to do on the dialog box that pops up.
1. "Name" - Type the name of the site, i.e., Genealogy Web Creations.
2. "Connection Type" - select FTP, SFTP, FTPS, FrontPage Server Extensions, WebDav, or File
System.
3. "Location" - type the Internet address, including the protocol, of the remote website that you
want to publish folders and files to — for example, ftp://www.your-domain.com OR
http://www.your-domain.com.
4. "Directory" - the folder/directory on the server you are publishing the files to.
NOTE: In the case of 1and1 Linux servers, it would be whichever directory you have pointed
that domain to.
NOTE: In the case of BlueHost, you may enter your domain name or the IP address of your
server. Enter your ftp directory. If this is your main domain (the domain you opened your
account with) enter public_html. If you have pointed your main domain to a subfolder, enter
public_html/name-of-folder. If you are publishing to an addon domain, you would type
public_html/addon-domain-directory.
5. "Credentials User name" - your User Name
Click 'Add.' At this point you are automatically connected to your server.
If you have already set up your 'Publishing Setting' you will receive the message 'Connect to current
publishing destination.' You can click the message OR you can use the Connect To button on the Site
View tab.
Once connected, click the 'View' dropdown and select one of the following:
1. Selecting either of the 'All Files' views will publish all files.
2. Selecting the 'Changed Files' view will publish just the changed files.
Step 6: You will see your website (on your computer) in the left window.
Choose from the View dropdown which files you want to publish. There are three arrows between the
windows. If you want to move just a file or two, you can highlight it, then click the arrow to copy just
that file or files.
The top arrow 'Publish files to the destination site' is used most often. It publishes your choice of files
from your computer to your server. Keyboard shortcut is Ctrl + Alt + P.
The bottom double arrows 'Synchronize files,' compares the two sites and moves the data back and
forth until they match. Use this with caution. Keyboard shortcut is Ctrl + Alt + Y.
Once you start the publishing process, you will see your files being transferred. When complete, you
will get a message that your file is finished uploading.
The next time you publish your site; this process will compare the server site with what is on your
computer. If there are files on the remote server that you’ve deleted from the web on your computer,
a message box may pop up asking you if you want to delete them. If you are sure they are no longer
needed, answer OK. If not, do some checking.
Did you type your UserID and password correctly? Remember it’s caSE seNSitiVE, so must be
exactly what you were given by your host.
Did you type the ftp or http address correctly?
If you have a Firewall installed, did you give Expression Web the permissions it needs to
publish?
Spaces in file names MAY cause problems in uploading files. It is best NOT to use them. Use a
hyphen or underscore to separate the words publishing-website.html or
publishing_website.html NOT publishing website.html.
Once you have finished publishing your site, check online to make sure things are working as you
expect them to.
Step 4: In the 'Site Settings' dialog box, click the 'Publishing' tab. The current publishing destination will
show as the default. If you have already published this site to your web hosting account, click 'Add.'
Step 5: Choose 'File System' from the 'Connection Type' dropdown menu.
Step 7: Select the newly created backup location from the Connect To dropdown menu
If the folder does not currently exist, you will be prompted to create it. Click 'Yes' and the website will
be created for you.
Once connected, click the 'View' dropdown and select one of the following:
1. Selecting either ‘Folders’ or 'All Files' views will publish all files.
2. Selecting the 'Changed Files' view will publish just the changed files.
Step 8: You will see your website (on your computer) in the left window, and the newly created backup
website (also on your computer) will be on the right hand side. It will be empty if this is the first time
you are backing up your site.
Choose from the View dropdown which files you want to publish. There are three arrows between the
windows. If you want to move just a file or two, you can highlight it, then click the arrow to copy just
that file or files.
NOTE: If this is the first time you have published your backup, only the top arrow will be available to
you.
Figure 53 - Publishing
The top arrow 'Publish files to the destination site' is used most often. It publishes your choice of files
from your computer to your folder you have previously designated. Keyboard shortcut is Ctrl + Alt + P.
The middle arrow 'Get files from the destination site' is used if you happen to lose your site on your
computer or damage the files. You could use this to download the site or a file from server to your own
computer. Keyboard shortcut is Ctrl + Alt + G.
The bottom double arrows 'Synchronize files,’ compares the two sites and moves the data back and
forth until they match. Use this with caution. Keyboard shortcut is Ctrl + Alt + Y.
Once you start the publishing process, you will see your files being transferred. When complete you
will get a message that your file is finished uploading.
On the Menu > Table > Insert Table. NOTE: Do NOT Choose Layout Table.
On the ‘Common’ or ‘Standard’ toolbar, click the Insert Table button, then use your pointer to draw the
table; OR Click More Options.
Size: Set the number of Rows and Columns in your table. Rows: 25: Columns: 8.
Alignment: Set the horizontal alignment of your table. Default.
Float: Set the floating property of your table. Default.
Specify width: Set the width of your table. 100%.
Specify height: Set the height of your table. Do not tick. Leave Blank.
Cell padding: Set the padding between cells. 1.
Cell spacing: Set the spacing within cells. 2.
Borders: Set the size and color of your table borders. 1 #999999 Tick: Collapse table border.
Background: Set the color or background picture you want as your table background.
<style type="text/css"> .style1 { width: 100%; border-collapse: collapse; border: 1px solid #999999; } </style>
In the Rename Class Dialog box, Type "tombstones" or whatever you want to name the class. Make sure
Rename class references in this page is ticked.
You will see that the class has been renamed "tombstones," and the code for your table changed to:
<table class="tombstones">
Step 3: From the ‘Manage’ or ‘Apply Styles’ task panel, > Click New Style.
You will see the style being created in the display area.
Click OK, and the styles will be applied to the table cells.
Step 4: If you want the top row to be a header row, > select the first row of data cells. > Right click > Cell
Properties > Tick: header cell. > Click OK.
You can create a new style for the header row by using the same method as described above, OR copy and paste
the style you created for:
changing the td to th. The default style will be centered and bold
Step 1: Open the page with the table you wish to style in Expression Web.
From the Manage or Apply Styles task panel, > Click New Style.
The following code will be added to the head section of your page
<style type="text/css"> .prisoners { border: 1px solid #999999; width: 100%; border-collapse: collapse; margin-
top: 10px; margin-bottom: 10px; } </style>
Step 3: From the ‘Manage’ or ‘Apply Styles’ task panel, > Click New Style.
You will see the style being created in the display area.
Click OK, and the styles will be applied to the table cells.
Step 4: If you want the top row to be a header row > select the first row of data cells, > right click > Cell
Properties > Tick: header cell > Click OK.
changing the td to th. The default style will be centered and bold.