Horizontal Navigation

Horizontal Navigation ”; Previous Next In this chapter, we will learn how to add horizontal navigation or menu items to the website. Step 1 − To create menu items or horizontal navigation, let’s add the following code in <div id = “top-nav”> in the index.html file, which contains the list of menu items. <div id = “top-nav”> <ul> <li></li> <li></li> <li></li> <li></li> </ul> </div> Step 2 − It is a simple bulleted list for the top menu. To create a hyperlink, go to the design view or code view. Step 3 − Select the item that you want to use as the hyperlink and press Ctrl + K. Step 4 − Click on the ScreenTip… button. Step 5 − Enter the text you want as the screen tip and click OK. Step 6 − In the Text to display field, enter Home and select the index.html file and then click OK. Step 7 − Similarly, add hyperlinks for other menu items, as shown in the following code. <!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”> <head> <meta content = “text/html; charset=utf-8” http-equiv = “Content-Type” /> <style type = “text/css”></style> <link href = “sample.css” rel=”stylesheet” type = “text/css” /> </head> <body> <div id = “container”> <div id = “header”></div> <div id = “top-nav”> <ul> <li><a href = “index.html” title = “Site Home Page”>Home</a></li> <li><a href = “index.html” title = “Menu Item 1.”>Menu Item 1</a></li> <li><a href = “index.html” title = “Menu Item 2.”>Menu Item 2</a></li> <li><a href = “index.html” title = “Menu Item 3.”>Menu Item 3</a></li> </ul> </div> <div id = “left-nav”> </div> <div id = “main-content”> </div> <div id = “footer”> </div> </div> </body> </html> Step 8 − To set the style for top navigation, go to the Manage Styles panel. Step 9 − Right-click on “#top-nav” and select Modify Style. Select the ”Border” Category and change the width to thin. Step 10 − Select the Box category and uncheck padding ‘Same for all’ and enter 10 in the top and bottom fields. Step 11 − Go to the Position category. Step 12 − Remove the 50 from the height field and click OK. From the Apply Styles panel, click New Style… Step 13 − Enter #top-nav ul in the Selector field and select the Existing style sheet from the “Define in” dropdown. In the Block category, select center from the test-align field and go to the List category. Step 14 − Select none from the list-style-type field and click OK. Step 15 − Again, from the Apply Styles panel, click New Style… Enter #top-nav ul li in the Selector field. Then select the Existing style-sheet from the “Define in” dropdown and go to the Layout category. Step 16 − Select inline from the display field and click OK. Step 17 − Go to Apply Styles panel, click New Style… Enter #top-nav ul li a in the Selector field and select the Existing style sheet from the “Define in” dropdown and select white as the font color. Step 18 − Go to the Background category. Step 19 − Select green as the background color and go to the Box category. Step 20 − Set the padding values and click OK. Step 21 − Now let’s go to the Apply Styles panel again and click New Style. Enter #topnav ul li a:hover in the Selector field and select the Existing style sheet from the “Define in” dropdown and select black as the font color. Step 22 − Now go to the Background category. Step 23 − Select the background color for your menu option when the mouse is hovering on the menu item and go to the Border category. Step 24 − Select the border style, width, and color, and click OK. To check how it is looks, go to the File menu and select Preview in Browser. When you hover the mouse on any menu item, it will change the background and font color. Print Page Previous Next Advertisements ”;

MS Expression Web – Hyperlinks

Microsoft Expression Web – Hyperlinks ”; Previous Next In this chapter, we will learn how to use hyperlinks in your website. One of the things that makes the web so expansive is the capability of webpages to link to other webpages. Hyperlinks or links are found within nearly all web pages. Hyperlinks also allow users to click and go to a different page, a place within a page, an image or another location on the Internet entirely. Following are some of the important features of hyperlink − Expression Web”s hyperlink tools and options make it very easy to work with hyperlinks. Expression Web hyperlink views and reports also make it very easy to find and fix broken and incorrect links. A hyperlink can be a word, a group of words, or an image that when clicked will take you to a new document or a place within the current document. Anchor Tag In HTML, <a> tag which is known as anchor tag is used to create a link to another document. An anchor can point to another html page, an image, a text document, or a pdf file among others. Here is the basic code of an anchor <a> tag. <a href = “url”>Text to be displayed as link<a> In <a> tag, “href” attribute is used to address the link to the document, and the words between the open and close of the anchor tag will be displayed as a hyperlink. When you move the cursor over a link in a webpage, the arrow will turn into a little hand. A URL is an address that specifies a protocol, web server, and file path. There are two types of URLs, absolute and relative. An absolute URL contains a full address while a relative URL is missing one or more parts of the address. However, the web browser obtains the missing information from the page that contains the URL. Example Let’s take a look at a simple example in which we will be using both absolute and relative URLs. Step 1 − First, open the index.html page and add the following lines in the main content section. <div id = “main-content”> <p> Absolute URL Example: </p> <p> Google </p> <p> Youtube </p> <p> Relative URL Example: </p> <p> Home Page 2 </p> </div> Following is the complete implementation of index.html page. <!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”> <head> <meta content = “text/html; charset = utf-8” http-equiv = “Content-Type” /> <style type = “text/css”> #left-nav ul li a:hover { color: #000000; background-color: #116611; } #left-nav ul li a:hover { color: #000000; background-color: #66FF99; } </style> <link href = “sample.css” rel = “stylesheet” type = “text/css” /> </head> <body> <div id = “container”> <div id = “header”> </div> <div id = “top-nav”> <ul> <li><a href = “index.html” title = “Site Home Page”>Home</a></li> <li><a href = “index.html” title = “Menu Item 1.”>Menu Item 1</a></li> <li><a href = “index.html” title = “Menu Item 2.”>Menu Item 2</a></li> <li><a href = “index.html” title = “Menu Item 3.”>Menu Item 3</a></li> </ul> </div> <div id = “left-nav”> <p>Site Navigation</p> <ul> <li><a href = “index.html” title = “Site Home Page”>Home</a></li> <li><a href = “index.html” title = “Navigation Item 1.”>Navigation Item 1</a></li> <li><a href = “index.html” title = “Navigation Item 2.”>Navigation Item 2</a></li> <li><a href = “index.html” title = “Navigation Item 3.”>Navigation Item 3</a></li> </ul> </div> <div id = “main-content”> <p> Absolute URL Example: </p> <p> Google </p> <p> Youtube </p> <p> Relative URL Example: </p> <p> Home Page 2 </p> </div> <div id = “footer”> </div> </div> </body> </html> Step 2 − Let’s save the webpage and you will see the text in the main content section. Step 3 − In the Design View, right-click on Google and then select Hyperlink… from the menu which will open the Insert Hyperlink dialog. Step 4 − In the Address field, specify the URL for Google home page and click OK. Similarly, right-click on YouTube in the design view and select Hyperlink… Step 5 − In the Address field, specify the URL for YouTube home page and click Ok. Now for relative right-click on the “Home Page 2” and select Hyperlink… from the menu which will open the Insert Hyperlink dialog. Step 6 − For relative path, select the index_2.html in the address field and Expression Web will get the remaining path from the index.html file, because both these files are in the same directory. Click OK. As can be seen, these words are now underlined which means that hyperlinks are created. Step 7 − The default font color is blue and the default font color for Hyperlinks is also blue. To change the default color of the hyperlink, select any of the hyperlink and go the Format menu and select Background… menu option. You will now see the following dialog. Step 8 − Let’s change the Hyperlink color to Green. In the following screenshot, you will see that the Hyperlink color has changed to Green. Step 9 − Let us now preview this web page in a browser. If you click the Google link, it will direct you to the Google homepage. Step 10 − Similarly, if you go back to the Home page and click the YouTube link, it will direct you to the YouTube home page. Let’s go back to the home page. Click the Home Page 2 link and you will see that it opens the index_2.hmtl file. Print Page Previous Next Advertisements ”;

MS Expression Web – Overview

Microsoft Expression Web – Overview ”; Previous Next Microsoft Expression Web is a full-featured professional tool for designing, developing, and publishing feature-rich websites that conform to web standards. You can use Expression Web to create web pages and sites that let you transfer files between your computer and your hosting account. Expression Web can design and develop web pages using HTML5, CSS 3, ASP.NET, PHP, JavaScript, XML+XSLT and XHTML. Expression Web 4 requires .NET Framework 4.0 and Silverlight 4.0 to install and run. Microsoft Expression Web − History Microsoft Expression Web − History Microsoft released the first Community Technology Preview (CTP) version of Expression Web on May 14, 2006. Microsoft Expression Web 4 was released on June 7, 2010. It added the option of HTML add-ins and access to a web-based functionality for testing pages on browsers that cannot be installed on the user”s system, such as Mac OS X or Linux browsers. It also provides an SEO Checker using which you can analyze already created websites against the best practices for getting the highest possible search engine rankings. Expression Web Service Packs Expression Web Service Packs Expression Web 4 Service Pack 1 was released in March 2011 and added support for IntelliSense for HTML5 and CSS. Expression Web 4 Service Pack 2 was released in July 2011. It fixed a number of issues and introduced new features such as − jQuery IntelliSense support a panel for managing snippets Interactive Snapshot Panel comment/uncomment functionality in Code View, and workspace and toolbar customization. In December 2012, Microsoft announced that Expression Studio will no longer be a standalone product. Expression Blend is being integrated into Visual Studio, while Expression Web and Expression Design will now be free products. System Requirements To create a website using Microsoft Expression Web, your computer should meet the following requirements − You should have at least Windows XP with Service Pack 3 or the latest operating systems. You should have a PC with 1 GHz or faster processor. Your PC should have 1 GB of RAM or more. Your PC should have 2 GB or more of available hard disk space. You should have .NET Framework 4.0 and Silverlight 4.0. Your PC should support Microsoft DirectX® 9.0 graphics. You should have DVD compatible drive. You should have 1024 × 768 or higher resolution monitor with 24-bit color. Some product features require Firefox 3.0 or later, Internet Explorer 8. So you should have the same version. Actual requirements and product functionality may vary based on your system configuration and operating system. Print Page Previous Next Advertisements ”;

MS Expression Web – New Website

Microsoft Expression Web – New Website ”; Previous Next In the previous chapter, we have installed Microsoft Expression Web and now we are ready to start working on it. In this chapter, we will learn how to create a new website from scratch. Create a Website To create a new website, let’s open Microsoft Expression Web. Next, you need to follow the steps given below. Step 1 − Select Site → New Site… menu option. Step 2 − It will open the following dialog from which you can create or import different types of website. Step 3 − For simplicity let’s select General → One Page Site. Specify the location or you can browse to the location where you want the new website to be created. Type in the name of your web in the name field and click OK. Step 4 − The new web will be created with one page named default.htm. Let’s rename it to index.html with a right-click on the file and clicking on the Rename option. Step 5 − The default doctype used in Expression Web 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”> You can see it by just switching to the code view. You can change the doctype from Tools → Page Editor Options → Authoring. Step 6 − Now, let’s add <h1> tag inside the body tag and some text as shown in the following code. <!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”> <head> <meta content = “text/html; charset = utf-8” http-equiv = “Content-Type” /> </head> <body> <h1> This my first Web page </h1> </body> </html> Step 7 − To see our web in a browser, let’s go to the File menu and select the Preview in Browser → Any browser, let’s say, Internet Explorer. It will open our web in Internet Explorer. Print Page Previous Next Advertisements ”;

MS Expression Web – HTML Layout

Microsoft Expression Web – HTML Layout ”; Previous Next In this chapter, we will learn another way of designing the layout of a page. In the last chapter, we have used style sheet to apply the styles to header, footer, etc. but you can also specify the styles in HTML page itself without using an additional style-sheet. This is not the recommended way to design a layout, however just for understanding purpose, we will cover this technique here. Try to follow the steps given below. Step 1 − Let’s add an HTML page and call it layoutdemo.html Step 2 − Now add the <div> tag from the Toolbox. Step 3 − In the Apply Styles panel, click on the New Style… Step 4 − When you select the Current page option from “Define in” dropdown then the style will be saved in the same HTML page. Set the Font for your page and then go to the Background category. Step 5 − Set the color for your Background. You can also set the Border, Box, and Position categories and then click OK. layoutdemo.html You can see that the style is added in the same HTML file. <!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”> <head> <meta content = “text/html; charset = utf-8” http-equiv = “Content-Type” /> <title>Untitled 1</title> <style type = “text/css”> #container { font-family: Arial, Helvetica, sans-serif; font-size: medium; font-weight: normal; font-style: normal; font-variant: normal; text-transform: capitalize; color: #800000; background-color: #C0C0C0; padding: 8px; margin: 8px; width: 90%; } </style> </head> <body> <div id = “container”></div> </body> </html> Similarly, you can add other styles like header, footer, main content, etc. as shown above. Print Page Previous Next Advertisements ”;

MS Expression Web – Home

Microsoft Expression Web Tutorial PDF Version Quick Guide Resources Job Search Discussion Microsoft Expression Web is a full-featured professional tool for designing, developing, and publishing feature-rich websites that conform to web standards. Expression Web uses its own standard rendering engine, which is different from Internet Explorer”s Trident engine. In the following chapters of this tutorial, we will look closely at Microsoft Expression Web and learn how it works. Audience This tutorial has been prepared for aspiring web designers to familiarize them with the interface and features of Microsoft Expression Web. After completing this tutorial, you will gain sufficient knowledge on Microsoft Expression Web from where you can take yourself to the next level. Prerequisites It is quite a simple tutorial written in a very user-friendly manner. You can make the most of it with a very basic knowledge of web designing and web development. Print Page Previous Next Advertisements ”;

Environment Setup

Environment Setup ”; Previous Next Microsoft provides a free version of Microsoft Expression Web which can be downloaded from Microsoft Expression Web Download Installation Step 1 − Before you can install Expression Web, you will need to have .NET Framework 4.0 installed. Step 2 − Once downloading is complete, run the installer. The following dialog will be displayed. Step 3 − Click the Accept button. Step 4 − Select the Yes radio button and then click Next. Step 5 − You can choose other location as well for installation. Select the location and click the Install button. The installation process starts. Once the installation is complete, you will see the following dialog. Step 6 − Click Finish to continue. Print Page Previous Next Advertisements ”;