Designing Web Sites from Photoshop to Dreamweaver

Designing Web Sites from Photoshop to Dreamweaver

with Sue Jenkins

 


This course teaches web design beginners how to turn their design in Photoshop into a fully functioning web site in Dreamweaver. Sue Jenkins shows how to create mockups, slice, and optimize web graphics, and build a site using the Dreamweaver HTML and CSS templates. The course also covers how to customize HTML and CSS to style and position content, test and validate code, and use FTP to transfer finished site files to a host server. Postlaunch site maintenance is also discussed so that designers can keep their web sites up to date. Exercise files are included with the course.
Topics include:
  • Setting up the Photoshop and Dreamweaver workspaces
  • Planning a site and defining site goals
  • Mocking up the layout and navigation
  • Deciding on fonts and colors
  • Styling the header, main content, sidebar, and footer
  • Optimizing web graphics
  • Building page structure with divs
  • Building menus
  • Adding metadata and externalizing CSS
  • Creating templates with editable regions
  • Creating template-based pages and adding content
  • Inserting form fields
  • Adding SEO, metadata, and accessibility markup
  • Testing, validating, and publishing projects

show more

author
Sue Jenkins
subject
Web, Web Design
software
Dreamweaver CS4, CS5, CS5.5, Photoshop CS4, CS5
level
Beginner
duration
3h 4m
released
Mar 06, 2012

Share this course

Ready to join? subscribe


Keep up with news, tips, and latest courses.

submit Course details submit clicked more info

Please wait...

Search the closed captioning text for this course by entering the keyword you’d like to search, or browse the closed captioning text by selecting the chapter name below and choosing the video title you’d like to review.



Introduction
Welcome
00:04Hello! This is Sue Jenkins, and welcome to Designing Websites from Photoshop to Dreamweaver.
00:10We'll start the training off by showing you how to set up your Photoshop and
00:13Dreamweaver workspaces for working on a web project.
00:17We'll then discover some simple ways to plan your website effectively and
00:21gathering the necessary content.
00:23After that, we'll explore some design ideas related to creating your web mockup
00:27in Photoshop, and talk about slicing and optimizing web graphics.
00:31We'll then jump into Dreamweaver to learn how to construct a webpage template,
00:35work with AP div tags, then insert form fields, followed by some tips and tricks
00:40for search engine optimization and accessibility.
00:44We'll then work with some of Dreamweaver's testing and validation tools to clean
00:48up our code and validate our code against W3C standards.
00:52We'll wrap up with a section dedicated to publishing via FTP and get some
00:57suggestions about post-launch site maintenance.
01:00So, whether you're brand-new to web design or looking for ideas on ways to work
01:04smarter, welcome to Designing Websites from Photoshop to Dreamweaver.
Collapse this transcript
Using the exercise files
00:01If you are a Premium member on lynda.com, you have access to the exercise
00:05files used in this title.
00:07You can download a copy of these files to your desktop, as I've done here, for
00:11easy access when working through each lesson.
00:14Inside the Exercise Files folder are individual chapter folders that contain the
00:18files used in individual movies.
00:21We'll point out which files are being used by displaying the relevant path to
00:24those files at the appropriate time.
00:26When you're browsing in Photoshop, you can use the folders directly, but while
00:31you're in Dreamweaver, we recommend that you browse for files through the Files
00:35panel after managing a site through the Site Setup dialog box.
00:39These files are here for your convenience.
00:41They're not required, but they will make your learning process a little easier.
00:45If you don't have access to the files, you can re-create them on your own or
00:49simply follow along to grasp core concepts in each chapter.
Collapse this transcript
1. Design Tips and Tools
Web design tips
00:00Designing for the web is a bit different than designing for print.
00:04There's certain principles that you should keep in mind, as far as the way
00:07things are organized, usability, visitors' browsing habits, and so forth, and you
00:12certainly wouldn't want to end up on this year's worst websites list.
00:16So, I've gathered some resources here that I think should be effective at
00:19teaching you some skills if you don't already don't have them, some principles
00:22about designing for the web.
00:24The first website has Principles of Beautiful Typography, and typography on the
00:28web has some limitations compared to working with print.
00:31In this article, you'll find everything you need about learning about
00:35typography for the web.
00:37It goes into the different types of web-safe fonts,
00:40they talk about type letting, text replacements, all kinds of things.
00:45It's a long read, but it's really worth the time that you'll spend
00:48looking through this.
00:49The next site has ten principles for effective web design, and this is also a
00:55really smart article.
00:56They talk about usability, principles of effective design. You try to put your
01:01mind in the mindset of the visitor and how they might understand or not
01:05understand your websites, so you want to have things like logical layout,
01:09logical navigation, things like that.
01:11The next site is sort of a repeat, but they cover some different bases.
01:15It's 9 Essential Principles for Good Web Design.
01:17So, you'll scroll through here.
01:19They have some examples about things like guiding the eye.
01:21I always like it when there're screenshots on there, so that I can refer to it
01:25while I'm learning about a new principle or a new idea.
01:27So, you look through here as well.
01:29Now, this guy is not necessarily a web designer, but I wanted to share this with
01:33you because I think the principles of design here can be applicable to anything,
01:37including web design.
01:38For instance, good design is innovative.
01:40So, take a look at this one as well.
01:42The last thing is Lost Principles of Design, and this could really go for web or
01:47for print, but I want you to think of this in terms of web design and also
01:52the reason I like this is that there's visuals, almost like infographics visuals to
01:56help you comprehend the different concepts that are being explained here, such as
02:00balance and contrast.
02:04So please do spend the time looking over these web sites and learning as much as
02:08you can before you spend some time going into the web design process.
Collapse this transcript
Web design tools
00:00There are so many resources out on the Internet.
00:03Sometimes it's hard to know where to look.
00:05I've gathered several here for you that I think will enhance your design
00:08skills as a web designer.
00:10This first one is called a pixel ruler, and there's tons of them out there. I
00:14just happened to grab this particular one.
00:16You can use a pixel ruler on your screen independent of any other software program.
00:21So let's say you visit a web site and you want to know how wide it happens to
00:25be, the width of the layout.
00:27You can turn on your free pixel ruler and measure that horizontally or
00:31vertically and get those dimensions right away.
00:33The next tool that I think is important-- again, this is just a generic tool.
00:37If you know of another one, you can go and grab a different one or if you're on a
00:40Mac versus a PC, you may have heard of a particular color grabber.
00:45Anyway, it's great to have an independent color-picker program that you can have
00:50available on your desktop, so that you can sample colors from other things,
00:54other photographs, other web sites, other resources, rather than having to bring
00:58that resource into Photoshop or Illustrator or some other program that has a
01:02built-in color picker.
01:04This next tool is called Vector Magic, and the reason I love this is because it
01:08creates really clean conversions of vector art from bitmap images. And you really
01:14have to try it yourself to see how great it is.
01:16So, just bookmark this web site and check it out.
01:19Here's the web site that will help you create your favicon if you didn't want to
01:23create it in Photoshop or Illustrator.
01:26So, this will let you draw it out, and it shows you the little pixel grid. And
01:30then you can output the file in a variety of different file formats.
01:33You should know about Google web fonts.
01:36This is something that's sort of exploding right now on the web design scene.
01:40Before we would have to use certain web-safe fonts, so that we were sure that
01:44every visitor would see the same thing. Now there's fonts hosted on Google's
01:49web site that we can refer to and then have them on our own web site.
01:52So, spend some time looking around here and seeing what's available and consider
01:57using some of these on your web site to really personalize it.
02:00Sometimes when you're working you may not have final copy, especially if you're
02:04designing for someone else, in which case you need placeholder text, which is
02:09sometimes called the Greeking type or Lorem Ipsum.
02:13There are ton of generators out there but I'm showing you this one because I
02:16really like the layout and the options that it provides for you, such as creating
02:20numbered and ordered lists and things like that.
02:22But there's some funny ones out there too, like you can have one that gives you
02:26all words having to do with beer or all words having to do with fish.
02:30But the nice thing about it is it looks like English and it'll help you
02:33lay out your pages or lay out your mockup while you're working until you get that final copy.
02:39This is a JavaScript encoding tool.
02:42It's online, and what it will do is it will encrypt your web e-mail addresses so
02:47that you can plug the encrypted code into your HTML web page and when it displays
02:53in a browser window, it will be difficult for spammers' spambots to decode it
02:57and help protect an e-mail address.
02:59Of course there's no real protection these days anymore but anything that you
03:02can do to help hide your e-mail address from spambots is a good thing.
03:07This next site is an online form builder and what they do is they allow you to
03:11create forms really easily.
03:14It's a super-nice interface, and you can even pay to have them host your form on
03:18their web site and process and collect the data for you.
03:21It's an interesting option for you.
03:23I'd like to tell people about it, depending on how much data you're going to collect.
03:27If it's not that much you can just use some kind of PerlScript, but if you are
03:31going to be collecting a lot of data, this is a nice option.
03:34Speaking of collecting data, you might want to create a database of all of your
03:38customers or have the ability to create a database and then be able to send
03:42newsletters and e-mail updates to that.
03:45Mail Chimp is fantastic.
03:47I highly recommend it.
03:48And then the last tool that I'd like to tell you about is FileZilla.
03:51It's a free cross-platform FTP solution.
03:55Dreamweaver does have a built-in FTP program, and I'll teach you all about using
04:00that, but some people prefer to have a stand-alone software package, and FileZilla
04:05is really a great tool to use.
04:07So please do take advantage of some of these ideas and use them in your own
04:10web design process.
Collapse this transcript
Web testing tools
00:00Before you publish any finished web project on the Internet, it's really
00:04important that you make sure that all of your code is valid, accessible, and
00:10renders properly in all of the popular browsers, even some of the older versions
00:14of the popular browsers.
00:15I've gathered four web sites here that I think are important that you should know about.
00:19This first one is called the W3C Markup Validation Service.
00:23You can plug in the code, a web address, or directly input or upload a file of
00:29any web page and have it look through the code and find any issues that might be
00:34problematic. Then you can go in and correct those and then retest until all of
00:39your pages are valid.
00:40I normally would do something like this at the template stage before I create
00:44all of my template-based pages, then go back in and check each page
00:48individually, because a little validation issue could really cause broken pages
00:53and display issues.
00:55This next web site has to do with accessibility, and it's pretty much the same
00:59kind of tool, only in this case it's looking to see that your code is as
01:03accessible as possible to the widest audience.
01:06So, it will be looking for things like title, attributes, and alt the attributes
01:10in your tags and your links and things like that.
01:13So you can do the same thing here: enter a web address, upload a file or
01:16actually copy and paste in some HTML code.
01:18Now, as far as rendering goes, you may be on a Mac and not have access to a PC or
01:24vice versa, but you really should be testing on both platforms, in the latest
01:30browser versions, and then at least two or three versions below whatever's the
01:34latest. The Spoon.net Browser Sandbox has this whole capability of showing you
01:40how your page would look in all these different browsers.
01:43So you have access to Firefox, to Chrome, to Safari, Opera, and Internet Explorer,
01:48even some mobile browsers.
01:50Adobe offers a similar tool in the Adobe BrowserLab. So you would have to create
01:56an Adobe account and then you can log on here, and you can go directly from
02:00Dreamweaver into the BrowserLab to preview how your pages would look in a
02:05variety of different browser situations.
Collapse this transcript
2. Setting Up Your Workspace
Setting up Photoshop
00:01Designing for the web is a bit different than designing for print,
00:04so it's important that you set up your document correctly before you begin
00:07designing your web mockup.
00:09The first thing you'll do is come to the File menu and choose New.
00:12This opens a New Document dialog box, and here's where you can choose
00:15everything you need.
00:16Start with the Preset and choose Web, and from here you can set your own size.
00:21Now, these days designing for the web, it's almost like anything goes, but you
00:25want to appeal to the widest possible audience.
00:27So you don't want to make your web site too narrow or too wide.
00:31For this reason, we're going to create a mockup that's 960 pixels wide by 690
00:39pixels high. And of course, if we need more room we could certainly make it
00:42taller while we're building our mockup.
00:43But that should be enough space so that the entire design, or most of the design,
00:47fits within the browser window.
00:50But of course, we have no control over what our visitors are looking at, what
00:53their monitor resolutions are, but this is a good starting size for us anyway.
00:57Leave the Color mode set to RGB and 8 bit, background Contents is just the
01:01background color for your document, we'll leave it set to white, and we don't
01:04even need to mess around with this whole Advanced area.
01:07We'll just leave that alone and click OK.
01:09Now, creating a document doesn't mean that we've saved it yet, so you might want
01:13to go ahead and give it a file name and save it to your desired location. And we
01:18can call this one cm_mockup.
01:20Let's just save this to the Desktop for now.
01:22So, not it's saved. Now we can start working on it.
01:25The other thing is you might want to do is turn on your rulers.
01:28So, you could show your rulers here.
01:30Now, rulers should show you in pixels rather than inches for working on the web,
01:35and you can check that by right clicking on the ruler. And if it's set to Inches
01:40just choose Pixels. And of course you have access to all these other units of
01:43measure if you like, but we're going to stick with pixels.
01:46You could also turn on Grids, if you like to work with a grid.
01:50That's also accessible through the View menu, Show > Grid, and you can toggle that
01:54on and off with the keyboard shortcut. And then another thing you might want to
01:58do while you're working is to drag out some guides to assist you in the
02:02placement of your design.
02:03So for instance, let's also turn on the Info panel, so we can see as we're working.
02:08So to create a guide, you click on the Ruler, on the top or the left of Ruler.
02:12Click and dragging you bring a guide out.
02:14So, if we wanted to put a guide exactly at, say, 100 pixels down or something
02:17like that, we can look over here while we're dragging to get that measurement.
02:22And maybe we want to have a couple in from the side, 10 or 15, 20 pixels in or
02:27whatever it is. I'm not going to measure these exactly, but this is how you drag guides in.
02:30When you bring a guide in you can reposition it at any time as long as you have
02:35your Move tool selected. And of course, if you want to remove a guide,
02:38just click and drag it off the artboard and it disappears.
02:41Now, the choices that we make when we're creating our documents really
02:46help determine the dimensions, the resolution, and the color space of our working file.
02:50Once those are set, we can easily move ahead with the creation of our web
02:54design mockup.
Collapse this transcript
Setting up Dreamweaver
00:01Before you begin any web project in Dreamweaver, you need to do what's
00:04called managing a site.
00:06This process not only creates a location on your computer for storing files
00:11related to your particular web project, but it also helps you take advantage of
00:15Dreamweaver's robust site-wide editing and site-management features that would
00:19otherwise be unavailable.
00:21For example, with the Manage Site you can search for and replace text, tags, and
00:26specific source code in all of the sites' files with the single command, whereas
00:31with an unmanaged site, you'd have to search each file individually.
00:35Managed Sites also make it easier to create links to files and images on other
00:39pages within your site.
00:41Before I show you how managing a site works, let's talk for a minute about file management.
00:46Now, for a normal web project, you would create a folder on your computer for
00:50your projects and inside that folder you would have folders for each project. And
00:55inside each of those folders you might have another set of folders, one for
00:59graphics, one for invoices and maybe one for the actual web project.
01:03This would be the location here, inside my Cupcake Mary HTML folder for example,
01:09where you would manage a site in Dreamweaver.
01:12This would be the location.
01:13For our purpose, for training with the exercise files, you'll be managing a site
01:19to the individual chapter folders, such as 06-01 or 06-02.
01:24So, let's go back into Dreamweaver and I'll show you how to manage a site.
01:29There's a few ways that you can access the site management dialog box.
01:32One way is through the Site menu. You can choose Site > New Site, and that will
01:38open up the Site Setup dialog box.
01:40You could also choose Site > Manage Sites.
01:43This brings up the Manage Sites dialog box, where you would see a list of all of
01:47your managed sites. You could also create a New manage site, and this brings up
01:52the Site Setup dialog box.
01:54Another way of getting there is before you've done anything in Dreamweaver,
01:58before you've managed any sites, at the top of the Files panel is a link to the
02:02Manage Sites dialog box.
02:04Again, you could click the New and come into the Site Setup area. Or always when
02:08you click the dropdown menu here, at the very bottom, is a link to the Manage
02:12Sites dialog box where again, you can click the New button to create a new site.
02:16So, now that we're here, to create a new site two steps, really easy.
02:20First thing, give your site a name.
02:22The name is totally up to you, for your reference only. It doesn't print
02:26anywhere; it's just a management feature.
02:28So, we're going to work on the Cupcake Mary web site.
02:31So you could type in Cupcake Mary.
02:33And then the next part is the most important part, Local Site Folder.
02:37So, for a typical project you would have saved it to that project's folder and
02:41then the name of your project, and then the project folder called HTML, for that
02:45particular customer's project folder web site.
02:47But for us, like I said, we're going to be managing a site to the
02:52individual exercise files.
02:54So, I'm going to go back to my Desktop where I saved a copy of the exercise files.
02:58We'll start in Chapter 6 for example, and now this is the location that I'll
03:02be managing the site to.
03:04Click Save, click Done.
03:05There's my list of Manage Sites, and I could have as many of them as I want in there.
03:09As a matter of fact, I can always come back in here and edit at anytime, or I
03:14can duplicate or I can remove a site from the listing here.
03:17Now, if you remove, you're not actually deleting files from your hard drive.
03:21You're just removing the pointer from Dreamweaver pointing to the location on
03:26your computer. And then of course, when you're finished, click the Done button.
03:29And what's great about a managed site is that only the files for that location
03:34are listed in your Files panel and then you can double-click at any time to open
03:38and close your files.
03:39You don't have to go searching through the File > Open menu, or you don't have to
03:42go searching elsewhere on your computer; everything happens inside Dreamweaver.
03:46So, I just want to reiterate that for the exercise files each time you start a
03:51new lesson, you'll come in here, you'll choose Manage Sites, you'll edit the
03:55Cupcake Mary web site, and then you switch the Local Site Folder from the project
04:00that you were working on before to the next set of exercise files.
04:05Click OK, click Done, and you're good to go for the next project.
04:10Managing a site in Dreamweaver gives you full control over all the files and
04:14assets related to your individual web projects, both while you're building your
04:18sites and after they're completed.
04:20For best results, manage your site before you begin each new web project.
Collapse this transcript
3. Planning Your Site
Researching the competition
00:00Planning your site is one of the single- most important things you can do to make
00:04your web site successful.
00:06As part of that process, the first step should always be to research the
00:10competition at the national, regional, and local levels.
00:14This will allow you to figure out what you need to include on your web site and
00:17even more importantly, to learn what not to do.
00:20The first step in the process of sizing up the competition is to do a general
00:24web search using keywords that you think visitors would use to find the web site
00:28that you're working on.
00:29So for our site, we might use the words cupcake, organic, and bakery.
00:34Take a look at the first several web links in your results listing, to see how
00:38these sites compare with your site's vision and marketing strategy, and make
00:43notes about your favorite parts of each site.
00:46Next, narrow your search by adding the general region or state; in our case
00:50we'll add the keyword New York.
00:53Again, take a look at the competition and make notes about what is working and what isn't.
00:59Notice any trends?
01:01I'm seeing a lot of pink and brown.
01:04Your last search should be for local competitors.
01:07So let's add Brooklyn in New York City to research terms.
01:10Notice how each search turns up slightly different results.
01:14You may need to tweak your search terms or drill deeper into the search results
01:18to find competitive sites,
01:19but pay attention to things like colors and font usage, layout orientation, and
01:25the types of photos and graphics being used.
01:28The slides we find can help guide us in our quest to design the best site
01:32possible that will appeal to our target audience.
01:35At the end of the researching process, you should have a really good idea about
01:39who the competition is and what kinds of web sites they have.
01:43If their sites have a lot of flashing animations and bright glaring colors
01:46or poor-quality photographs that make it visually difficult to digest, learn
01:51from those mistakes to make sure that your site is well-organized,
01:55informative, and easy on the eyes.
Collapse this transcript
Defining site goals
00:01Every Web project has a set of goals, whether it's to inform, promote, educate,
00:06sell, gather leads, or share ideas.
00:09Oftentimes it's a combo of these, and knowing that can help to define certain
00:13design aspects for the site.
00:16When I work with clients, one of the first things I ask them to do is to
00:20describe the company's image as they'd like others to perceive it.
00:24Is the company professional or laid back?
00:26Are they cutting-edge or traditional?
00:28Do they have particular values that are important to portray?
00:32Are they nonprofit or family-owned?
00:34What about their vibe?
00:35Are they friendly, responsible or innovative?
00:38Are they green or organic?
00:40What else can you say about them?
00:42The second thing that can help define the goals for a web site is to describe
00:46the target audience.
00:48What are some of their demographics, such as age, gender, education, class, race,
00:54geographic location, religion, politics, hobbies, or other interests?
00:58Make a list of all the attributes you'd like your target audience to have.
01:03The third thing to do is to describe a single ideal site visitor.
01:07Who is this person?
01:09What are their interests?
01:10Why would they be visiting this web site?
01:12What kind of personality traits do they have?
01:14For example, are they into sports? Do they watch TV?
01:18Do they own any pets?
01:19List anything about this person that would be relevant to them wanting to visit your site.
01:25For efficiency, you may want to gather this information in a checklist that you
01:30can readily access during the design process.
01:33Then, when you finish gathering all the information, you can create a project
01:37profile that outlines what you've learned, along with some of the content,
01:41color, and design notes.
01:43The better you can define the company image, the target audience, and the ideal
01:47site visitor, the clearer you can be about the goals for your site.
01:51Not only will this process give you insight about the kind of information
01:55site visitors will be seeking; it should also clue you in on how the site
01:59should look and function.
02:01In planning your web site, you may also find it helpful to check out Jen
02:04Cramer's course, Website, Strategy and Planning, also in the lynda.com Online
02:09Training Library.
Collapse this transcript
Gathering content
00:01If you haven't already figured out the navigation and site architecture for your
00:04new web site, now is the time, as you will need to gather all the content for
00:09your web site and organize it so that it's easy to retrieve during the web
00:12design and development processes.
00:15Start by gathering up all the information you intend to share with visitors on your web site.
00:19You may have already pulled together some brochures and product flyers,
00:23service listings, fact sheets, reports and bios, and other data that you think is relevant.
00:28Some of what you gather should definitely go on the site.
00:31But you may not need to publish everything.
00:34So, sort through your materials and determine what to keep and what can go.
00:38Next, ask yourself what pages will be needed on this web site.
00:42If you're unsure, look again at what your competitors have done.
00:46How many pages do they typically have of their sites?
00:49Be sure to pay attention to the pages accessible through a navigation menu, as
00:53well as pages only accessible by a special button or link.
00:57Here's a list of common pages found on most web sites:
01:00Home, About Us, Contact, Products/Services.
01:04You might also see things like Portfolio/Menu, Clients/Customers, News, Press
01:11Releases, Calendar, Events.
01:13Once you determine what pages you need, organize your content into separate piles.
01:18This will become the basis of your Navigation menu.
01:22You may also use the homepage content for the basis of your web design mockup.
01:26At all costs though, avoid redundancies.
01:29You can always create multiple links to the same page of information.
01:33As for the order of your navigation, menus typically start with About Us and end with Contact.
01:39But some people like to put the most important thing first, so maybe you want
01:43to put your menu first in this case, or if you're a designer, maybe your portfolio first.
01:48The pages in between are totally up to you.
01:50Now that you have your navigation figured out, you'll create a site map diagram
01:54or flow chart, to show how the site will be structured.
01:58This is what we call the site architecture.
02:00Site maps typically have the homepage listed on the top, which is then linked to
02:05the main pages that will appear on the navigation menu.
02:08Then any sub-pages, if there are some, will be listed underneath those main pages.
02:13Another helpful step is to determine what static content will appear on every
02:18page of the web site, and this could include things like your logo, which should
02:23be in the same location on every page; a tagline if you have one; navigation
02:28menu; social media icons; a sign- up form; a search box; and a footer.
02:33Now at this stage, you should have all the text that you need for your web site,
02:37organized neatly into one or more Word documents.
02:40What you may not have yet, however, is everything else you need for your site.
02:45So here's a list of other things to gather for your site:
02:48logo and other branding graphics, PDFs or other downloadable files, photographs,
02:54illustrations, graphics, and media files, such as audio and video files.
02:58Now remember, to avoid violating any copyrights, make sure that all the
03:03graphics on your site are either original, or that you've obtained the rights to use them.
03:08There are many wonderful web sites available where you can download royalty-free
03:12artwork for free, or for as little as one dollar.
03:15And above all, choose supporting graphics that support your site's goals.
Collapse this transcript
4. Creating a Photoshop Mockup
Creating the layout and navigation
00:00Starting with a blank canvas in Photoshop is much the same as staring at a blank
00:05canvas as a painter: the possibilities are endless.
00:09Fortunately with the web mockup, certain elements must be present, such as a
00:13header, body, footer, logo, and navigation.
00:17Knowing this from the start of the design process makes it much easier to block
00:21out all the elements in a logical and visually interesting way.
00:24So we're starting out here with a document that's set to 960 pixels wide by 690 pixels tall.
00:31These days there is a shift toward fluid design so that sites can be scalable
00:36for multiple devices,
00:37but for our purposes, we're going to stick with a fixed-width design, which is
00:42pretty accessible to most people regardless of their device.
00:45The first thing you want to do is make sure your rulers are visible and make
00:49sure your guides are visible, and those are both accessible through the View
00:51menu > Show Ruler > Show Guides.
00:54And then the next thing we'll do is bring out some guides onto the artboard.
00:57Now one little tip I'd like to do is show the Info panel while I'm doing these
01:01things, so that I can make sure that my measurements are precise.
01:05I want to start by creating a space at the top here that's 110 pixels tall.
01:11So just looking over at my Info panel, I'm going to stop when I get to about 110.
01:14When I release my mouse, I've got that selection, and when I drag out a guide,
01:19the guide will snap to it.
01:20I'm going to use that same measurement, just dragging that down to the bottom,
01:24so that my header and footer are equal in height. And then I'm going to do the
01:28same thing on the left, only this time I'm going to go 10 pixels in, so there's 10.
01:34I'm going to drag that off to the side as well.
01:44Now we have our guides in place.
01:46I'm going to place a copy of the logo file into our document.
01:52When you place a file, instead of copy and paste a file, what that does is it
01:57pastes your image in as a Smart Object.
02:00And the thing about Smart Objects is that you can scale, position, and transform
02:04the placed image without any loss of resolution or image degradation.
02:08Now when it pops in initially, it's going to have the Bbounding box on it, so you
02:12could scale it now if you want to.
02:14But to accept the placement, just hit Enter or Return and then you can position
02:18it anywhere on the artboard. And notice in the Layers panel that it has a tiny
02:23little icon here on the bottom part of its thumbnail. That is a visual
02:26indication to you that it's a Smart Object.
02:28So you could at any time scale it, again like I say, without any loss of
02:32resolution or quality.
02:34You can place a lot of different kinds of files into a Photoshop document,
02:38including other Photoshop files, PSDs, Illustrator, Files AI, and EPS.
02:44You can even do optimize web graphics, JPEGs, PNGs, GIFs, and even PDFs.
02:50For your navigation bar, you need to decide whether you want a horizontal or a
02:55vertical layout, so let's do horizontal.
02:57You grab the Type tool, as I've done here, and click your cursor anywhere
03:01and using whatever font you want, and font size at this point you can change it later.
03:05I've got it set to Verdana, Regular, 12 point.
03:08Just type in the Main menu items, leaving about eight spaces between each of them.
03:13I'm just going to put my Caps Lock on and do About Us, Our Menu, Locations, and Contact.
03:21All right, we can position that wherever we like.
03:23Its position at this point is really irrelevant;
03:25we're just blocking things out onto our page.
03:29Next you'll block in the rest of the text for the homepage, and place the
03:32Cupcake of the Month photo, using the File > Place command.
03:35You can find all the content for this page in the Word file called CM Website
03:40Content.doc. Snd I've got that file open here.
03:43So I'm going to start by copying in the gooter.
03:46I've got three separate lines of content for the gooter, so I'm just going to
03:49place them in one at a time, Grabbing my Type tool.
03:52So back in here, I'll do the next line. Copying with the keyboard shortcut,
03:56coming back to my document and pasting and so forth.
04:00One more to go, from the footer. And its position, where it is in the Files
04:06panel or where it is within the Footer area, again not that important.
04:11I can reposition these. This is just getting the content on the page. Where they
04:14sit at this point doesn't really matter.
04:18Let's go grab the rest of the content.
04:20So there is this. That's like the main body area.
04:23Now notice before when I was pasting on my copy text, I was just clicking
04:27once and then pasting.
04:29But you could also create Area Type or you click and drag to create a box, that
04:33bounding box for your type, so that when you paste it, it'll wrap within the
04:36confines of that box.
04:39The last thing I want to grab is some sidebar content. So copying this, and
04:46the Type tool again.
04:47Now for this one, actually I have three little pieces.
04:51I'm going to cut that off and do that again.
04:55And I don't need the one that says photo, because I'm going to bring a photo in here.
04:59So let's go grab that File > Place, and that's our Cupcake of the Month picture.
05:06We'll put that over here. Enter, moving it over.
05:09And this is like roughly how I would want the page to look, but again, we're not
05:14in the design place right now. We're just blocking out our content.
05:18So blocking out all the elements of your web mockup like this, it's the first
05:22step toward creating your design.
05:24It also helps you to begin to visualize how the finished project should look.
05:28The last thing that you might want to do before you begin choosing fonts and
05:32colors is to tidy up your Layers panel. Select the layers and create folders
05:36for header, body, and footer. So for instance, I know where my navigation is up
05:41here, and that would be in the header. So would this, the logo.
05:45So I'm going to select both of them, just click and then Shift+Click.
05:48If you go to the Menu option up at the top, you could say New Group from layers
05:52and we'll call this one Header. And then there's Fair Trade, Cupcake of the
05:55Month and Cupcake Mary.
05:56That's the body stuff, so I'm just going to click and Shift+Click.
06:00Create a new group called Body. And then these are my footers.
06:05We'll do that as well. And now with your layers in the Layers panel as well as
06:10your actual layers and folders and things, you can reposition these. So I might
06:13want to put my header at the top and body in the middle, and the footer at the
06:17bottom, and there is that image standing out there.
06:19That was part of the body, so I'm just going to drag and drop it in here.
06:22So everything is nice and neat and organized, and I can expand and collapse as
06:26I am working to keep things relatively in place.
06:30Once you have the logo, navigation, and text in place, you can shift your
06:34focus to the design.
Collapse this transcript
Working with fonts and colors
00:01Strong web designs use a cohesive set of colors and fonts to communicate a
00:06person or company's brand objective to the desired target audience.
00:10This means that choosing the right colors and fonts is an important decision
00:15that helps determine the overall effectiveness of the site.
00:18Fortunately, thanks to technological improvements to video display and access to
00:23fonts, today's designers are no longer limited to the 216-color web-safe palette
00:30or the handful of cross-platform web-safe fonts.
00:35Let's talk color first.
00:37When selecting our colors, it's best to choose a limited palette that reflects
00:41the site's objectives and conveys the desired mood.
00:45For this project, I've already selected three colors from the logo to accent the
00:50navigation bar, page headers, and graphic elements.
00:53These colors are in their own folder up here in the Layers panel.
00:57We'll give the layout a friendly, happy, warm, and welcoming feel.
01:02For a cohesive design, try to limit the number of colors in your layout to a
01:08maximum of three or four.
01:10Now on the web, we're using RGB colors, and RGB colors for the web can be
01:16specified as hexadecimal values or hex numbers, which are made up of three pairs
01:21of numbers and/or letters, preceded by the hash tag, as in #000000 for black
01:28or #FFFFFF for white.
01:31You can access these hexadecimal values through the color picker, and you can
01:35click on your foreground or background color and it will pop-up the Color Picker dialog box.
01:40In here is where you can have access to those hexadecimal values.
01:43So you can pick any color on the slider, any shade, and you'll see the RGB
01:48values, even CMYK values, but there's your hexadecimal.
01:52So if you're unsure of a color, you can go in and sample a color, double-click
01:56there to copy the hexadecimal value, then you can use that when you're building
02:00your web site if you need the hex value for something. Or if you have a value in
02:03RGB or CMYK value that you need to specify in your design, you can plug that
02:07number in here and then go ahead and work with it.
02:10So let's tackle our navigation bar first.
02:13So I'm going to select that so that we have that layer selected and the changes
02:17that we make will modify that layer, and I'm going to open up the Character
02:21palette and then click this color so that that text color picker comes up rather
02:25than the regular color picker.
02:27And we want to change it from black to blue.
02:29Now I happen to know the hexadecimal value here and the hash tag is
02:32already there for me,
02:33so all I need to do is plug in the appropriate color.
02:36Don't worry about lowercase, uppercase at this point;
02:39you just need the letters and the numbers.
02:41So that's the color that I'm looking for.
02:43It's a color that's sampled from the cupcake in the logo, and of course I
02:46could use the Eyedropper tool, but I happen to know the hexadecimal value and I've changed it.
02:51Now we'll add a header to the body area.
02:53So I'm going to go into the body area and grab my text cursor and click right in
02:59here, and we'll type the word welcome.
03:01Let's make it all caps, WELCOME.
03:04Now we can put these things in position roughly where we think they'll be at some point.
03:09Let's also reconfigure the layout for our footer.
03:12We've got three separate things here going on.
03:15Let's put like the social media on the right.
03:18For these, maybe we'll end up making two rows or something like that.
03:22We can always play with the actual design of it later on. And for here, some line breaks here.
03:28How about--oops!
03:29Just created a new layer accidentally. All right!
03:32So, we'll put e-mail, telephone, copyright on its own line. That'll do.
03:38And while we're at it, let's add some headers to our footer.
03:43Do something like HAVE A LOOK AROUND. And then we'll make another one. Let's just
03:49copy and paste. And that one will be GET IN TOUCH. And then we'll do that again,
03:56slide it over, and modify it. And this one will say FOLLOW US.
04:02Later on, we can bring in some logos for our social media.
04:07Now let's think about fonts.
04:09Like colors in a web design, try to keep your fonts to a maximum of three, like
04:15one for the header, one for the body, and perhaps a third for accent features
04:19such as sidebars, footers, or navigation.
04:21Now remember, to keep your site as accessible as possible to visitors using
04:25whatever devices that they are using to access your site and search engines, the
04:30menu items and as much body text as you can allow should be rendered as HTML
04:35rather than graphics.
04:37There are several web-safe fonts that you can choose from, such as Arial, Verdana,
04:42and Georgia, but with the advent of Google Fonts and similar services, your font
04:47options should have improved dramatically.
04:49You can find more information about Google Fonts at google.com/webfonts.
04:55For this project, however, we're going to stick with web-safe fonts, and we'll
05:00use Century Gothic and Arial.
05:03Let's change the navigation font.
05:05So selecting it here. We'll change the navigation font from Verdana to Arial, and
05:10let's also make it a little bit bigger.
05:13How about 23 points and Bold?
05:17Let's do the same thing for that WELCOME.
05:19Let's change the size on that.
05:20Okay, let's change that to 30, but let's change the font as well to Century Gothic.
05:27Let's make it Bold.
05:29While we're here, let's also go to the body text and change that, again to Century Gothic.
05:35Bump up the size to 14 and we'll change the color to a gray that we happen to know
05:40the hexadecimal value for. And we can specify the leading.
05:46Now leading on the web is a little bit different than leading in a web mockup,
05:50but you can control that with cascading style sheets.
05:54Let's also change that Fair Trade and the Cupcake of the Month.
05:59Since these two layers aren't side by side, I am clicking on one, then
06:03Ctrl+clicking or Option+clicking the other one so that they can both be
06:06selected at the same time.
06:08With them both selected, I can change them to the same font and font color at
06:12once without having to do them individually.
06:15Let's change these to Century Gothic as well, 21 point, and we'll choose a
06:20chocolaty brown color.
06:23Now, let's make that bold, but we need to add a little line break there.
06:30So, I'm just putting my cursor into that layer. There we go.
06:34Now, if I need to, I can move things over a little bit.
06:37Again, placement at this point, we're just getting things blocked out and
06:41colorizing and changing fonts and everything.
06:43This isn't the final design. We're just getting started.
06:46And now, let's also change the headers for the footer area.
06:51I'm going to select all three, just Shift+ clicking back into my Character palette.
06:57These will become Century Gothic, Bold, 14 point, and let's make it blue.
07:04Again, I know the hexadecimal value that I'm going for here,
07:09so I'm just plugging it in. And let's do the same thing for all three layers in our footer.
07:18We'll change that to Arial, 13 points, and a gray to match the body text. There we go.
07:27So, it's pretty amazing, from a design perspective, how simply changing the fonts
07:33and colors in a layout can transform a few blocks of text into the beginnings of
07:38a cohesive web layout.
07:40Choosing the right fonts and colors for your project will help communicate ideas
07:44and emotions that go beyond the words on the screen. Plus if you keep your color
07:49palette down to two to four colors and the layout with a maximum of two to three
07:53fonts, your web design should have a strong cohesive vibe.
Collapse this transcript
Styling the header content
00:01Now that we selected our colors and fonts, the next piece in the design puzzle
00:04is to pull all the graphic elements together in a cohesive way.
00:09Right now, the layout looks pretty sparse, so we definitely need to add some
00:12visual interest with some photos and buttons and bullets and then move a few
00:16things around so that it all goes together well.
00:19Let's start by adding a photo banner across the top, underneath the logo.
00:24Now our photos should illustrate something relevant about the content on the page or
00:28about the identity of the site.
00:30Since this web site is for a cupcake shot, I have pre-selected cupcake graphic to
00:35use as the banner on the homepage, and I have saved it into a file called
00:39CM_BannersPhotos, which I have open here.
00:41Open that file, copy the visible layer, and paste it back into your
00:45other working document.
00:47So let's do rectangular marquee, Copy switch back over, and we will Paste.
00:54Drag it up to the guide there and you should feel it snap into place--
00:59one of the reasons I love working with guides.
01:01Now everything else is sort of too close to the top now,
01:04so we need to move some elements.
01:06So what I might do is actually first let's drag this header up into the header
01:10area, the banner, and call it banner. And then let's move the navigation down.
01:16In fact, let's move everything down.
01:18I am just going to click and drag and then I can move everything all a once, like so.
01:23Then we can turn the banner back on and reposition the navigation menu.
01:28That's a little bit better.
01:29Actually while we are here, let's turn off the Colors layer, so we don't see that.
01:33So banner is okay, but it kind of looks a little hard-edged. And you might not be
01:37able to tell with the guides on. You can toggle those on by clicking Command+Semicolon or Ctrl+Semicolon.
01:43So it's good, but it's kind of hard. It's not super friendly.
01:46And what I think we should do is go back into the our photo file--I am just
01:49going to deselect the keyboard shortcut--and we will add a little bit of a
01:53rounded edge. And the way you can do that is with the Rounded Rectangle tool here.
01:58And you can set the border Radius. And I want a really smooth soft edge,
02:02so I am going to pump it up to 100. And then using the guides, I am going to
02:06click and drag all the way across the file. And I really don't care what color
02:11it is because what I really want is the inverse of this.
02:14So with my cursor on top of the thumbnail of the mask, I am going to hold down
02:19the Command or Ctrl key and click right on that thumbnail.
02:23That selects that shape for me, and then I can inverse that shape. And then for
02:28this piece, I can fill it with a solid color, such as white.
02:34So now if I Select > All and then do a Copy Merged, so that I am copying
02:40everything that's visible and come back into my mockup and paste--
02:45just drag that right on top. In fact, let's turn our guides back on, so we can
02:48get it to snap right in there and then hide that old banner.
02:52You can see that that's like a softer, happier, more friendly, more inviting,
02:56more appetizing-looking layout than with a hard edge.
03:00Now that the banner is in position, it kind of seems like the logo is out of
03:04place and unbalanced in its current position, and so does the navigation bar.
03:08Let's select all three of those items. The logo.
03:12Actually, let's zap the old banner and rename this one. And we will grab all
03:17three layers. In fact, we can even grab--I am just going to Ctrl+click here to
03:21grab the background as well so that we can align all three of them to the locked
03:25background layer using the Align tools at the top of our screen.
03:28I think that's much better. Okay, great!
03:31So at this point, you should start to think about how you might want your
03:35navigation to look and function when visitors interact with it.
03:37So, for instance, you can make the font change, the font color change, the
03:42background color behind the font change on rollover with each menu item, or you
03:45can add graphics. You could even display your text in all caps or lowercase
03:51or a bold, with an underline; it's totally up to you.
03:54So you could play around with your ideas until you find something that you like.
03:58For our web site here, we are going to make the rollover color be the same dark
04:02red as the logo, and then we will add a little yellow half circle above one of
04:06the menu items that, with CSS, will only appear on mouseover.
04:11Let's turn our colors back on so we can sample the color appropriately and then
04:17we will use our Elliptical Marquee tool to create a circle.
04:21If you want precise measurements, turn on your Info panel and then hold down
04:26your Shift key to constrain the shape so you get a nice perfect circle.
04:29So we can make a circle that's about 15 or 16 pixels in diameter, something like
04:33that, and then we want to fill it, and we will use our Eyedropper tool. We will
04:37fill it with that yellow. Create a new layer and then we'll fill it with the
04:43foreground color and deselect, and then we can move it into position up here. And
04:51if we really just want a half circle, then we can select half of it with our
04:56Rectangular Marquee tool and just hit our Delete key to zap it. And I would
05:02probably want that nudged down just a little bit so that there is a little bit
05:05of breathing room between the banner photo and the navigation bar.
05:09We can hide our--or actually, let's leave our colors up now because we do
05:13want to change one of our navigation items so that the color looks like
05:18someone is mousing over it. There we go.
05:22So we are giving visitors a visual indication of what things would look like.
05:26As a matter of fact, we can even change the whole navigation bar to blue,
05:30so let's do that. I'm going to change it here. Just change the whole thing and
05:35then we'll go back in and reselect this one and make that red, so that it
05:43really has a distinct visual look when someone is hovering their mouse over it
05:47in a browser window. Great!
05:49The header area now has style and personality that reflects the company's image
05:54and should be appealing to their target audience.
Collapse this transcript
Styling the main content and sidebar
00:00The layout for your main content area will be repeated throughout your
00:04web site, so it's important that you create a design that will be easy to
00:08customize on each page.
00:10Let's move some elements around and add some more formatting to help make the
00:14main content area stand out from the sidebar.
00:16Let's see about the main text area first.
00:20That area is in a text box and so we can give it a little more breathing room by
00:25widening that whole text block.
00:27That's a good start.
00:29Now the sidebar itself really sort of gets lost, and we want that to stand out
00:33from the regular text.
00:35One way we could do that is we can give it a different-colored background.
00:39Let's use the Rounded Rectangle tool and if you want to use your Info panel to
00:44create the appropriately sized background image, we are looking for a shape
00:48that's roughly 220 pixels wide by 280 pixels tall.
00:53As far as the rounded rectangle radius goes, we probably don't need something as
00:56big as 100. something like 10 pixels would be good.
01:00So again, looking to our Info panel so that we can see if we can get 220 pixels
01:05wide by 280 pixels tall. An approximation is good.
01:10I am not going to be a stickler, but that is the precise measurement that I was
01:14using for the layout.
01:16One more pixel. Oh, we go it!
01:19Now that should go behind everything else in that body section of our layout,
01:25and then we could start to position everything else on top of it to make it
01:29look a little bit better.
01:30Let's move that over and have it lock up against the guide on the right-hand
01:34side, and we might need to add some spaces in here.
01:38So just Shift+Clicking Cupcake of the Month. And we might also need to do this
01:42same thing for the Chocolate and the Moose like so.
01:47And I think all the text should be center-aligned, so just going to use this
01:52tool up here to center-align the type, bring everything over.
01:57In fact, we can center-align all of these elements together, so the Background,
02:02the Cupcake of the Month, the Photograph, the Fair Trade Chocolate, and we will
02:06use the Align tools up at the top of the screen.
02:09So it's looking okay. It's still just not there yet.
02:12We need some other elements.
02:13So let's do a few things.
02:15For instance, we can put a border on our image by clicking the fx button.
02:19We will choose Stroke. And when the dialog box comes open, we can add a border of 10 pixels.
02:27We will leave it set, the Position set, to the Outside but we will change the color.
02:32Let's make it flow with the rest of our web site, and will use FDE 090, a yellow
02:39that we've already used before.
02:41So that's looking pretty good.
02:43The text isn't there yet.
02:44We need to do something else for the type.
02:46Let's select both lines of type-- Fair Trade and Cupcake of the Month--and
02:53let's make them all caps.
02:54We can use this button here to do that. And I think for Cupcake of the Month
02:59that should be white.
03:00So we are changing that.
03:03So it's looking okay, but the size is wrong still. Let's do this.
03:06I'll make the word cupcake a little bit bigger, so we can open up our Character
03:12panel here. And for the word Cupcake, let's do 29 points.
03:18Now, let's select the next line of the Month and we will make that a little
03:22bit smaller. Hopefully we can get everything to fit in, roughly above the photographs.
03:26So 19 pixels should do it, but let's also change the leading so it's not so far
03:31away from the word Cupcake.
03:32We will make it 19 points as well. So that it sort of joins the two lines together.
03:40Okay, that's a little bit better. Let's nudge it down.
03:42I am using my arrow keys to nudge it down a smidge.
03:47Now Fair Trade Chocolate, it looks like there's an extra space there after the E possibly.
03:52Yes, so it wasn't center-aligning properly. And I think fair trade should be
03:56a little bit smaller.
03:57So selecting the words fair trade, again coming into the Character panel. Let's
04:02make that much smaller.
04:03How about 14? And we will also change the leading there.
04:06We have be using 19, so let's keep it the same. And then for the words Chocolate
04:10Mousse, let's go smaller on the leading as well,
04:15to 19, and let's see how that's looking.
04:20Much better, and then we can nudge things into position like so.
04:25So everything is looking pretty good.
04:27We might want to make some fine-tuning adjustments, like, for instance, I might
04:30want to move this whole piece over to the right edge of the screen and double-
04:36check again that everything is center aligned, just in case things got out of
04:40whack. And for my text block, let's see how big that is actually, because I don't
04:45like the words "on earth" all the way at the end.
04:47Make it a little bit wider. 78 aught to do it, something like that. Good!
04:53And then the last thing is maybe to tackle this VIEW OUR MENU area,
04:58we can make that match our welcome text. And while you're working, sometimes you
05:03might forget what things were.
05:05All you need to do is select an item and then open up the appropriate panel.
05:08In this case, we can say, okay that's Century Gothic, Bold. It's 30 points. And
05:12we can come back to that text there, reselect it, Century Gothic, Bold, 30 points.
05:21I think we need to worry about the leading;
05:22we can set it back to Auto.
05:24I would like to centerline that line though,
05:26so let's center it here.
05:29Let's get rid of those brackets.
05:31That's just a visual indication that we want to turn that into a button. The
05:35color though should be the same.
05:37Let's sample from that yellow. And then to make it look like a button, let's
05:43actually add a shape.
05:45So we use that rounded rectangle again since we have used it before. And we'll just
05:51click and drag to draw shape behind there, like so.
05:56I don't want it to be yellow.
05:57I want to be able to see the text.
05:59So let's make it a different color.
06:00Let's make it blue.
06:01It happened to know what color blue I wanted to be, 7ac1b7. And then we can add a
06:14stroke around the outer edges of there.
06:17Let's do five pixels around the outside, and let's make it yellow. And then since
06:25we can't see that, we need to put it behind the words. We will move it down a
06:30little bit. Let's collapse this. And then we might want to change the text for
06:36the word menu to white, so we can see it little bit better.
06:40And if we need to make some fine-tune adjustments like adding a space or even
06:44making that button background a little bit bigger, we just select everything and
06:50adjust it until it looks right to us.
06:53So this is a really clean and simple two-column layout. It's visually
06:57appealing, and it gives us the flexibility to modify both sections as needed on
07:03each page of our web site.
Collapse this transcript
Styling the footer
00:00For our footer, our main concern is to keep the content organized and easy
00:05for visitors to access.
00:07Here we have three important sections of information that need to be separated
00:11while still being visually in sync with the rest of the layout.
00:15Now, we've already added headers to each of the three sections, and that's a
00:18visually unifying effect, but there's still a little bit of pizzazz missing.
00:24So what we'll do is we'll add some little yellow bullets to the Have a Look
00:27Around section and then we'll drop in the actual logo icons for the social media
00:32files listed under Follow Us.
00:35We can use the Ellipse tool to create the shapes, and if you want to create a
00:39precisely sized shape here--I'm zooming in--you can use the Info panel up.
00:44I would recommend a 10 pixel in diameter. I'm holding down my Shift key to
00:48constrain the shape to make sure it's exactly 10 pixels. And then I can hold down
00:52my Alt or Option key and drag a copy off, and I'll do that again,
00:57so I have three bullets.
00:59If I want to make sure that they are distributed, I can click and then
01:02Shift+click to distribute them evenly, and they were.
01:05Then I can have all three selected and drag a copy off like I'd just done. Try to
01:11make sure that they're roughly the same distance from the type.
01:13We'll zoom back outm like so.
01:16So that already looks so much better.
01:17It's like a clear idea. We know what those are. Those are links. We'll go and
01:21click on them. And then to drop in our social media icons, we'll do File > Place.
01:27All the graphics are there for you in the appropriate exercise folder.
01:30So I created a little icon of a cupcake, and that would link people back to
01:34the web site. And because we're dropping it in, it becomes a Smart Object when you place a file.
01:39So just hit Enter or Return to accept it and then drag it into place.
01:43We'll repeat the process for each of the remaining icons. And the order is
01:47totally up to you here.
01:48I think I did Facebook and then Twitter and then the RSS.
01:53So let's place that one. Hitting Enter or Return to accept the placement. And we've
02:03got one more to go, like so.
02:05Now that type layer behind there, I do not need anymore,
02:09so I'll select it and hide that or I can throw it away. And then my icons
02:15themselves, I would like to have them evenly spaced, properly aligned. Maybe
02:20align them by their tops and then make sure that their distributed evenly,
02:24horizontally along their left edges, like so.
02:27And then I can eyeball it or I can even drag a guide in to see if the tops are
02:32in alignment with the type, and they are.
02:34So that looks really good.
02:36As you can see, when you take the right colors, the right fonts, and
02:39photographs and graphics and organize them in a logical way, your whole web site can take shape.
02:46Paying attention to the details like only using rounded-edge shapes instead of
02:49hard edge-shapes or showing how the navigation bar will look when visitors
02:53interact with it, can really help you pull everything you designed together in a
02:57meaningful and visually interesting way.
Collapse this transcript
5. Optimizing Web Graphics
Slicing graphics
00:00Once your web mockup is done, the next step in the web design process is to
00:04determine which parts of the layout will become web graphics and which parts can
00:09be generated with HTML and CSS.
00:12This is especially important because web sites using HTML and CSS tend to be
00:17more search-engine friendly and load faster in a browser window than their
00:21graphic-heavy counterparts.
00:23One quick way to create these graphics from your mockup is to use
00:27Photoshop's Slice tool.
00:29Let me show you how this works.
00:31If needed, you'll be dragging guides into your layout to define the different
00:35areas that need to be separated into web graphics.
00:38For this layout, we'll need the logo, the banner photo, the widget for the nav [00:00:4.08] bar, the bullet in the footer, and the photo for the sidebar.
00:48Nearly everything else can be rendered in HTML and CSS.
00:52And if there are any guides at the end of the process that we don't need, we can
00:56remove them by dragging them off the artboard.
00:59So, let's drag some guides in. I already have my logo ready, I already have the
01:03banner photo, so I just need one for the nav widget, the sidebar photo, and the footer.
01:08For best results, I'll grab my Zoom tool and zoom right on in there, select the
01:14object with my Move tool, and when the object is selected, my guides will snap
01:19really nicely on there.
01:20Zoom back out. Zoom in here and do the same exact thing.
01:28Select the object with my Move tool, nicely snapping guides.
01:32Now some things this snapping feature doesn't really work that well with is the
01:37shapes that we use for our footer.
01:39So we're not going to select that one there.
01:42Instead, we'll just zoom in close and eyeball it.
01:46That shouldn't be too difficult. Zooming back out. And now we need the Slice tool.
01:52The Slice tool is located underneath the Crop tool in your toolbar.
01:56Any time you see a tool that has a little tiny black arrow that means that there
02:01is a hidden set of tools underneath of it.
02:04Click on the tool to get the flyout menu and then navigate over and select the
02:09tool that you want to use.
02:11With the Slice tool, all you need to do is click and drag and release to create
02:15a slice and if your guides are on, then the Slice tool will snap to your guides,
02:20which is very handy.
02:21So, I've got my logo done. Now I need one for the banner.
02:24You don't have to worry about going outside the boundary here on the left and right.
02:28They will snap too.
02:31I'm going to zoom in for my nav widget, like so, and here for my photo, and then
02:43the last one is may be zoom in a little bit for that bullet. Zooming back out.
02:52Notice that each slice has a little tab at the top-left corner, like here.
02:58The tabs that are blue indicate the slices that I've created.
03:02The tabs that are gray are the slices that Photoshop will create for me,
03:07whether I want them or not. But those can be easily discarded after we optimize the graphics.
03:13The other thing I want to point out is that you can name your slices either
03:17after they've been optimized or before they're optimized, here in Photoshop.
03:22To do that, right-click on one of those little tabs, choose Edit Slice Options,
03:28and then change the name here.
03:30I'm going to leave that for now. We can always change them later.
03:33Now to optimize your graphics, you'll use the File > Save for Web & Devices dialog box.
03:40Once that opens, all you need to do is choose the file format that you'd like to save in.
03:47Now in this case, most of my graphics should be saved as a PNG-8 file, with the
03:52exception of this banner image.
03:54So I'll select that one and I'll switch it over to a JPEG.
03:58Now all I need to do is click on the Save button and choosing the location of
04:03the destination for my files. I'd like to put them in this images folder. I'm
04:07not going to worry about the filename at this point.
04:10As for format, I can choose Images Only, HTML Only, or HTML and Images, but I
04:16really just want the images at this point, so I'll leave it there.
04:19The other settings can stay as they are. Click the Save button and Photoshop
04:23does its thing and optimizes all of my graphics.
04:27Let's go, take a look at our images.
04:30Notice that the entire file was optimized, including the slices around the
04:35images that I actually wanted.
04:37Let's take a look at this in a different view, so we can actually see
04:40the thumbnails here.
04:41So some of these I need, some of these I don't.
04:44What I will do though is rename the images while I'm here.
04:47So this is my cupcake of the month, so I can say cupcake of the month. And I
04:51might change those every month.
04:53So for the month of January, I might put _1 and as I create them each month, _2 and so forth.
04:59There is my footer bullet, so I can call that one bullet. And there is my nav
05:05widget. And then the only other thing I need is my logo and my banner, and my
05:12banner. Let's call this one banner_1, so that I can create more banners for
05:17every page of the web site.
05:19There are other workflows available that you can follow when optimizing web
05:23graphics, of course, but this way allows you to optimize and save several files
05:27in a variety of web formats all at once.
05:30All around, slicing images is a very nice way to maximize your time.
Collapse this transcript
Optimizing web graphics
00:00Sometimes it isn't necessary to use the Slice tool when optimizing your web
00:04graphics; instead, you may simply optimize graphics that are already sized
00:09correctly for your needs, or you may copy and paste the content into a fresh
00:13document and optimize the graphics from there.
00:16Not all graphics should be optimized in exactly the same way.
00:19For the best balance of quality and file size, photos and images with heavy
00:25gradients should be saved as JPEGs, while images with large flat areas of color
00:30and lots of text are best saved as GIF or PNG files.
00:34The type of image you have will determine which optimized image format will work best for you.
00:39Take a look at this chart that describes the difference between the three
00:43standard web file formats:
00:45JPEG, PNG, and GIF.
00:47As you can see, JPEG images will support millions of colors and are best suited
00:51for photographs and complex graphics.
00:54Aim to make your file size as small as possible while still retaining a high quality.
01:00Each image should be in the 10K or less range, though for larger photos, up to 30
01:05or even 50 should be fine.
01:07GIFs are the original compression format for the flat images, flat areas of
01:13color, and type, but the newer version, a better compression, is the PNG
01:18Graphics, the Portable Network Graphics.
01:20GIFs and PNGs support transparency while JPEGs do not.
01:26So if your image has some transparency in it, you'd be better off saving it as a GIF or a PNG.
01:31Now, PNG-24 supports millions of colors like JPEGs, so if you have complex drop
01:38shadows or things where there is lots of semitransparent and transparent pixels,
01:43a PNG-24 would be your best bet.
01:46Here we have a photographic file that contains three layers in the Layers panel,
01:51but two of those layers are hidden. And then of course there's that locked
01:53Background layer, which we'll ignore.
01:56To optimize this as a web graphic, we'll go to the File menu, choose Save for
02:01Web & Devices, and this opens up the Save for Web & Devices dialog box.
02:06On the left side, you have some icons that you can use, like to zoom in or to
02:10sample a color or to toggle on slices or select slices, those kinds of things.
02:15Now, you could show your Original image as it was when you first got it--maybe
02:19as a high-res image 300 dpi, something like that--or you can show that image as
02:24it's optimized, based on the settings over here on the right side of the panel.
02:28What I prefer to do though is to use either the two 2-Up or the 4-Up view so
02:33that I have a few different tries to compare it with my original.
02:37So for this one I might have JPEG quality 60; in the middle I might have JPEG
02:42quality 30; and then the last, JPEG quality 15, so that I can compare the
02:47quality and the file size and then determine which one is going to give me the best results.
02:52Again, I want to make sure that I maximize the quality while keeping the file size low.
02:57And if you're unsure, if you can't really tell, use that Zoom tool to zoom
03:01into certain areas.
03:02If you get in really close, you can start to see the pixels. We call those the
03:05jaggies, and you really want to avoid pixels if at all possible.
03:09So let's zoom back out: just keyboard shortcut Alt or Option key will zoom me back out.
03:15So let's talk about the settings over on the right.
03:17There's a Preset menu and here you can choose any of these Preset options.
03:21You've got GIF, JPEG, and PNG.
03:24The number next to the GIFs represents the numbers of colors that are used.
03:29You can have a maximum of 256 colors.
03:32Dithering is if you want to have the computer put two colors together in a
03:37checkerboard format to create the illusion of a third color, so you can have
03:41Dithering or No Dither.
03:43And then JPEG High, Medium, or Low, that's the quality of the compression. And
03:48then of course PNG, we have 128.
03:50Again, that's just like GIFs, 128 colors. But you can increase or decrease the
03:54colors, and you can turn the dithering on or off.
03:56So you can start with one of these settings.
04:00You could also choose any of the options here in this menu.
04:04You can even choose a WBMP, Windows Bitmap format, if you like.
04:09And for JPEGs, here's the Quality dropdown.
04:11You have Low, Medium, High, Very High, or Maximum, and that coordinates with the
04:16Quality slider here.
04:17So if I say Low, it goes down to 10.
04:19If I say Maximum, it goes up to 100.
04:21So the scale is 0-100, and you can put it anywhere in between. Totally up to you.
04:28So while you have, say, this panel selected--let's go back to this tool--you can
04:33modify the slider and see how the quality and the file size is changing.
04:38So you don't have to stop on a whole number if you don't want. You can go 79 or
04:4246 or something like that.
04:44These options here, if you place your cursor, hover it right on top, you'll get
04:49a little tooltip and it will tell you what that option will do.
04:52I usually go with what Photoshop is telling me is the best option,
04:56so in this case they're saying go ahead and leave it Optimized.
04:59This says it creates smaller but less compatible files. That's really not an
05:03issue these days on the Internet. Most people have fast connections. But you
05:07could deselect that if you want.
05:09Progressive is really not an issue unless you have a file that's super high res
05:14that you would really want someone to be able to download and print.
05:18Though for the web you really want to save your images at 72 pixels per inch;
05:23anything over that is sort of wasted file size.
05:26No need really to embed a color profile, an ICC profile unless, again, you're
05:31planning on having someone print this off and make sure that the colors stay
05:35true to what you had intended.
05:38Leave this Convert to sRGB on, no need to change it.
05:41And then the rest of this is really up to you whether you want to play around with it.
05:45You can change the type of preview that you're seeing.
05:48Again, these things are sort of deprecated, no need to really go in here.
05:52Metadata, totally optional.
05:53You can have any metadata that's embedded in the file transmitted with the
05:57graphic if you like.
05:58So you can say None, Copyright, Copyright and Contact, Camera Info, everything.
06:04And then the Color Table, we don't deal with for JPEGs, because it supports 60 million colors.
06:10Here is where you can see your image size, and I would say do not scale in this area.
06:16If you need to scale your image, exit out of the Save for Web & Devices dialog
06:19box and scale it there and then come back into the dialog box.
06:23Above all, never scale up;
06:25always scale down, especially for a photographic image.
06:29This area, Quality, relates to resampling if you are scaling.
06:34And JPEGs do not support animation, so that whole area is grayed out for you.
06:39So what you would do, again, is select the option, whichever box here has the
06:43optimization settings that you want to go with, and when you're finished, you
06:47click the Save button.
06:48You'll choose the location that you want to save your file into.
06:52You can choose the Format.
06:53It could be Images Only, HTML Only if you were doing some slice graphics, or
06:58HTML and Images, which would output all of your image slices, along with some
07:03HTML, which can be set to be formatted with tables or with CSS and div tags. But
07:10we're going to stick to just images here.
07:13Settings, you don't really need to get into any of this either, but you could
07:16play around and look if you wanted to see what's there.
07:19Click the Save button and you're done.
07:21The dialog box closes all by itself.
07:23There's nothing else for you to do, except for maybe hide one layer, show the
07:28next, and repeat the optimization process.
07:31Now, let's take a look at another graphic.
07:34This one has large flat areas of color and text, so it would be best suited to
07:39save it as a GIF or a PNG.
07:42To do that, same as before: File > Save for Web & Devices and the dialog box pops open.
07:49Now, the options for GIF and PNG are pretty similar.
07:52So let's take a look at GIF first, like GIF-128.
07:56You have Color reduction algorithm. Selective is the best, but there's other
08:00options in here for you.
08:02Here's your number of colors, and you can use the sliding scale or go to any of these presets.
08:06256 colors is the max.
08:09You can have Dithering on, and if Dithering is on, you can choose the type of dither:
08:14Diffusion, Pattern, or Noise, or turn it to No Dither.
08:17And here's the amount of Dithering if it is on and you want it.
08:21If your image has Transparency for a GIF, make sure that that box is selected.
08:26And your Transparency can have dithering or no dithering, and if it is dithered
08:30then you can choose, again, Diffusion, Pattern, or Noise for those
08:33semitransparent pixels.
08:36Interlacing will download your GIF in multiple passes. Not really necessary
08:40these days, unless your file is massive.
08:43And the Matte Color is if you do have any transparent edges in your graphic,
08:48this would be the color that would toggle between those semitransparent pixels.
08:51So usually you want to match the matte color to the background color that the
08:55image will be sitting on top of on your web page.
08:59Snapping to Web Safe palette, no longer really an issue, but you can force it to
09:03snap to those 216 web-safe colors if you like.
09:07Lossy has to do with the compression algorithm, and you can increase that, but it
09:12will lower the quality of your graphic.
09:15The rest of this you don't really need to change.
09:17Convert to sRGB, just leave that checked.
09:20Again, Preview settings, like in JPEG.
09:22Metadata, just like in JPEG options.
09:24The Color Table, this will show you the number of colors.
09:27So this is actually 128 colors based on this compression algorithm.
09:32There's your Image Size and again, please don't scale in here.
09:35If you need to scale, exit out of this dialog box, make your changes in
09:38Photoshop, then come back in.
09:40I think you'll have better results.
09:42Again, if you want to compare different algorithms or compression settings or
09:45even a GIF compared to a PNG to see which one is going to give you the better-
09:48quality image at the lowest file size, in this case, PNG might be better.
09:54So let's look over at the PNG options.
09:56For PNG-8, again, Selective, Colors, Dither, No Dither, Transparency, Matte,
10:01like all these settings are pretty much the same as they are for GIF, but the
10:04compression algorithm is better.
10:06Now, if your graphic has areas of transparency, I'll show you how to do that in
10:11a second. But saving, just like JPEG, click the Save button, select your
10:17location, click Save again, and you're done.
10:20Now, this graphic over here happens to have some areas of transparency, and
10:25you can tell that there are areas of transparency if you zoom in. Actually we
10:29have the background on.
10:31So you can see the checkerboard.
10:32You know that if the checkerboard is visible that there are areas of transparency.
10:36So I would want to have those edge pixels nice and transparent so that I can put
10:40this icon on any colored background on my web page.
10:43Again, saving File > Save for Web & Devices. And I might want to choose the PNG-24
10:50option here, because if you choose PNG-8, sometimes in older versions of
10:54Internet Explorer, that transparent area for PNG-8 will turn grayish-bluish, and
10:59if you want to avoid that, then you would do PNG-24.
11:03Here you have a lot less options in this sidebar, because it supports
11:07millions of colors.
11:08So you really just choose whether or not there's transparency.
11:12If there is a matte color that you need to include, you can select through that Matte menu.
11:16Interlaced and everything else you can leave alone.
11:19Save just like before. Choose your location and the dialog box closes.
11:26So once you've discovered which file format will work best for your images,
11:30making the optimized graphic for it is really fast and straightforward.
11:34Remember though to name each image semantically so that they're easy to identify
11:39when you build your web pages.
11:40For example, with the coffee photos that we saved, we might call them
11:45drinks_.jpg, drinks_iced. jpg, and drinks_blended.jpg.
11:53Using the same prefix, in this case drinks_, will ensure that similar images
11:58will be grouped together in the images folder.
Collapse this transcript
Creating a favicon
00:00If you have ever noticed that when you visit some web sites you see a little
00:03customized icon in the address bar here and sometimes also in the tab depending
00:08on your browser window,
00:09that tiny 16 x 16 pixel is called a favicon.
00:14Some people call it favicon.
00:15It doesn't matter what you call it, but it's really easy to create and add to your web site.
00:22For simplicity, design your favicon in 250x250 pixel 72 ppi RGB Photoshop file.
00:31This should give you enough space to flex your creativity while keeping the
00:35design somewhat simple, so that it won't degrade too much when you scale it down to 16x16.
00:41If you have a company logo or a logo type, you might want to use that as part of
00:46the image for your favicon.
00:47Now I happened to have an Illustrator file with a logo and I am going to place it in here.
00:52File > Place and I will select my cupcake graphic here, place it in.
00:59If you get the Place PDF for some reason, if it was saved as a PDF or some other
01:03file, just click OK.
01:05It will place your file in a bounding box.
01:07You can scale it down or scale it up if you like without any loss of resolution.
01:10Click Enter or Return to accept the placement.
01:13I am not going to do anything else for this, so I can scale it down in the
01:18image, Image Size area, and just bring it on down to 16x16.
01:24There it is, teeny tiny, ready to go.
01:26Now these days, you can save your favicon in any file format, PNG or GIF usually
01:33for a small flat area of color.
01:35It probably wouldn't do a photo, but you could. Qhere in the past, you used to
01:38just have to save it with the .ico file extension,
01:42you don't have to do that anymore.
01:44So you'll save it just like you would any other web graphic, using the File > Save
01:48for Web & Devices dialog box. We will do PNG-8;
01:51that works for us.
01:53I don't need to change any of the settings here.
01:55I'll just click Save, choose my location, make sure I give it the name favicon.
02:01I already had one there.
02:03I am just going to click it and overwrite it.
02:07And now I have saved the graphic.
02:09For your favicon file to appear in a browser's address bar, you will need to do
02:14three things once your web site is built and ready to be uploaded to the host
02:19server. Or if you had a placeholder page and you just wanted to get something up
02:22there, you can certainly do that at any time.
02:24First thing, save the image in that same location as your web site, either at
02:29the root level or in a subdirectory folder called images or IMG or something similar.
02:35Add a line of link code in between the opening and closing head tags in all the
02:43pages of your web site with references to the location of your new PNG file.
02:49You might also want to modify the opening head tag with this profile line here.
02:55And then number three: upload your HTML and all of your image files to the host server.
03:00If you do these three things, your favicon will appear in the address bar and
03:06possibly in tabs as well.
Collapse this transcript
6. Creating Dreamweaver Templates
Understanding page structure
00:00Though you may build a web page template in any order in Dreamweaver, it's
00:04often fastest and most logical to start by blocking out the page structure
00:09with HTML and CSS styles, then build out and style content from top to bottom
00:15one block at a time.
00:17Let's first start by taking a look at what we have.
00:19Here is our web site mockup.
00:22If we were to break it into logical blocks, it would look something like this.
00:26We have got our header at the top, which includes our logo, our banner image,
00:30and our navigation menu.
00:32Then we have our main area that includes the main content on the left, the
00:36sidebar on the right, and then a third block with our footer which has three
00:41columns: one for our footer navigation, one for our contact information, and
00:45one for networking.
00:46Now let's switch over to Dreamweaver.
00:49We're in our Manage Site, so we've managed to site. We have told Dreamweaver where
00:54to find the files for our project. We will start by creating a new page.
00:59We will go to File > New and here you'll choose the Blank Page category, HTML type.
01:06We don't want any pre-existing layout-- we will keep that set to None--and the
01:10only other thing we can choose is our Doc Type.
01:13This is a line of code that goes at the top of our page and tells the browser
01:16how to interpret the type of code that it sees in our file.
01:20The default right now is XHTML 1.0 Transitional, but you could roll back to
01:26HTML 4.01 Transitional or even jump forward to HTML5. That's totally up to you
01:32depending on the type of content and code that you plan on having on your web site.
01:36We will stick with the HTML 4.01 Transitional. Click the Create button.
01:42Now I want to show you what's going on here in Split Code view so you can
01:46see where we're at.
01:47Here's what Dreamweaver creates for you automatically when you create a new page.
01:52You have got your doctype at the top above the opening HTML tag.
01:55You have your whole head area which has room for meta tags and your title. And
02:00then you have your body area and your closing HTML tag.
02:04On the right side of the screen is our preview-in-browser-style area, the Design
02:09view, which shows you approximately what your page would look like in a browser
02:12window, though it's always best to double-check multiple browsers while you're
02:15building to make sure that it renders properly.
02:18But as you can see, there's nothing there yet because there's nothing inside
02:21those opening and closing body tags.
02:23Now I usually like to start by plugging in a title, so for us, we'd like to have
02:28Cupcake Mary, the name of our web site.
02:30Let's also add a little bit of a description here.
02:35With your titles, you want to keep them to about 70 characters or less; anything
02:39longer might get truncated or cut off in the browser window title bar.
02:44So once we click back into our code, you'll see that text that we put in the
02:47title area up here has updated into our code.
02:50Now for our project, we are going to create our content blocks with div tags.
02:55A div tag is a container tag that can be absolutely or relatively positioned on
03:01the page, can be styled with CSS, can be positioned with CSS, and contain any
03:08content which itself can be styled and positioned with CSS.
03:12What's more, div tags can be nested inside other div tags and even layered one
03:18on top of the other as stacked layers, and you can determine that stacking order
03:23with what's called that the Z-index in the CSS.
03:26Remember, we need several blocks in our code in order to support our layout.
03:31So the first thing I'll do is put my cursor right after the opening body tag and
03:36insert my first div.
03:38There are two ways you can insert them: one through the Insert menu and one
03:41through the Insert panel.
03:42They both do the same thing so it almost doesn't matter which way you do it.
03:46If you're going to use the Insert menu, choose Insert > Layout Objects > Div Tag.
03:52There is another AP Div there. It's another type of Div tags which we will
03:56cover in a later movie.
03:57So you just click on that.
03:59This Insert Div Tag dialog box opens, and it asks you where you would like
04:04to insert this div.
04:05You could use the default, At insertion point, or you can choose After start of
04:09tag or Before end of tag. I am just going to click At the insertion point.
04:15You could also set the CSS Class if you happen to already have a CSS style
04:20with a custom class that you'd like to apply to it, or you can add an ID to this div tag.
04:27We want to create all of our divs with IDs so that when we go into our CSS
04:32panel and start creating custom styles, those styles will automatically apply
04:37to these div tags, as long as the style has the same name as the ID that we give it here.
04:43So I want to create an ID style for something called container.
04:48We are going to create a fixed-width design that will be center-aligned in
04:53the browser window.
04:54In order to do that, we need a container that is center aligned and fixed width.
04:58This is what we're creating right now.
05:01So it drops the div into our code, div id="container."
05:07That's the name, our id. And then in between there, there are some dummy text and
05:12then our closing div tag.
05:14That dummy text is there just for your eyes only, so that you can know where to
05:19place your content inside that div container.
05:21You could erase it if you wanted, but know that if you save this page and
05:24posted it as it is now on the web, that content would actually appear because
05:28it's inside the body.
05:30The other way that you could insert div tags is through the Insert panel. You
05:34will choose the Layout option and then you can choose Insert Div Tag here, and
05:40the same thing happens.
05:42You can say Insert to Wrap around selection, Before, After, Start, et cetera.
05:46Again, adding the class, adding the ID, and clicking Ok.
05:50I am just going to click Cancel because I don't want to add anything there yet.
05:54The last thing you would want to do-- and I think this is really important,
05:57especially if you are new to coding,-- is to add some comment tags and you will
06:01start with a left bracket, an exclamation point,
06:02and two dashes, and then anything you put in here will not be shown in
06:10the browser window.
06:11And I like to put comment tags at the end of each div so that I know in the code
06:18where my containers begin and end.
06:20The reason I do this is because containers are often nested one inside the
06:24other, and we are going to do that with our content blocks, and it's good to
06:27visually see where your containers end. That will help you as your page
06:31starts to grow.
Collapse this transcript
Building page structure with divs
00:00Now that we know how to create a web page, we're going to build out our
00:03structural blocks based on our mockup.
00:06Before we do that though, we need to make sure that we're in the properly managed
00:10site and choosing the appropriate exercise folder.
00:14So, clicking on this dropdown menu, choosing Manage Sites, there is our Cupcake
00:18Mary managed site, but it's pointing to folder 06-01, and we want it to point to
00:23folder 06-02, so we're using the appropriate files.
00:26From our Files panel, clicking Done. Now we have the files that we need, so
00:30picking up where we left off before.
00:32We have our opening and closing div container.
00:35I am going to delete that placeholder text here and drop the closing div tag
00:40down to the next line, because we're going to start building in those content
00:45blocks. So we have our container and we will create a style in another movie
00:50that will control its positioning to be fixed with and center-aligned, but for
00:54now, we're just going to focus on coding the structural blocks.
00:58Again, you can insert div tags through the Insert menu or the Insert panel, or
01:03sometimes I think it's faster just to copy and paste code and edit straight in Code view.
01:09I am just going to copy this, the whole thing, opening and closing tag, using my
01:14keyboard shortcuts to copy it, placing my cursor inside and then dropping
01:18down to the next line and then pasting, so we have a nested div tag, and then
01:24I'll change the names.
01:25So, the first block that we need is for our header. And I am just going to copy and
01:29paste so this goes nice and smooth.
01:31So, now we have our header nested inside of our container.
01:36Then, I'll copy that block, and I've indented at one space there.
01:41We also need a container for our main area, and a third for our footer.
01:49So I am just copying and pasting. It's going really fast this way, so you can
01:54copy and paste or if you're fast typer, like so.
01:57So, now we've got our main container that holds everything together fixed
02:02width in the center of the browser window, and then we have those three blocks:
02:05header, main, and footer.
02:07Now we're going to have some nested containers in each of those three blocks.
02:14Copy this one and paste it in here.
02:18Now inside our header, we want to have the logo.
02:22Let's nudge this guy over a little bit. And then also inside the header, we're
02:27going to have our banner. And then below that, we're going to have our
02:34navigation, and we can call that navbar.
02:37So now you can see, we've got those nested div containers and if you're a
02:43stickler for spacing, you can adjust that.
02:46So, we can the hierarchy happening here.
02:48Now I am going to copy all three of those and go into our main area and paste
02:55that in, because in our main area, we need two.
02:59We need one for our content--the stuff that's going to flow on the left side
03:05of the page--and another one for our sidebar, where we have our cupcake of the
03:12month. And we don't need that third one, because our main area only has two subsections.
03:19But our footer has three.
03:21So I still have that stuff on my clipboard. I am just going to paste it in
03:24there. And those three, I want to call the left one footnav, because it's a
03:30repeat of our navigation, but it's in the footer.
03:32The middle one, I'll call it our contact, general contact information. And that
03:41last one is where we'll have our social media, so we'll call it network, like
03:45networking. And there is the end of our footer.
03:49So, we've built the structural blocks for our web site in HTML, and we're ready
03:56to move on to styling.
Collapse this transcript
Styling page structure with CSS
00:00Now that we have coded our content blocks in HTML, we can create the styles that
00:04will support our design.
00:07Now, some of this may be mechanical. And especially if you haven't already
00:11watched Dreamweaver Essential Training with James Williamson, if you don't
00:14already know CSS, you might want to go and watch that and then come back here.
00:17But before we do anything, let's make sure that we manage our site to the
00:21appropriate exercise files folder. And here is a quick shortcut that you might enjoy.
00:26Double-clicking on the name in the Files panel will bring you right to the Site
00:30Setup dialog box, and you can quickly adjust your local site folder to the
00:33appropriate location.
00:35Now we are ready to go. There is our pages.
00:39So this is the page that we were working on before.
00:42We have our container with all of our content blocks, our header, our main, and
00:47our footer, and we need to create some styles.
00:49I like to work with internal styles while I am building my master page and before I
00:55convert it into a template.
00:56Once I have tested everything out, then I like to externalize the files.
01:00I just find that the working process goes quicker.
01:04The first thing I want to do is create some structural styles that will support
01:08the layout for our mockup, in which case I am going to create the first style here
01:13for the HTML Tag redefine.
01:15Let's just type that in.
01:17And this one I just need Width and Height, 100% for both.
01:22So going into Box, I will just type in 100, 100, and then go back and
01:27change that to percentage.
01:31The next style is Tag redefine for the body.
01:36I want to zero out the margins.
01:41And then the next style after that is one for the container.
01:45If I put my cursor in the code for the div container with a specific id, when
01:51I create the new style, it will automatically recognize it, and it's just a quick step.
01:57And for this one I need my margin left and right set to Auto.
02:03I need my Padding set to 0 all around.
02:06My Height will be set to Auto.
02:09My Width, we have a 960 pixel fixed-width layout.
02:13Let's set the Background color to white.
02:16And in the Block area we want to left-align our text.
02:21And lastly, we will do the Font-family, Century Gothic, and Font-size, we will do 1.2 ems.
02:31And the last thing is the color, 313030. There we go.
02:39Now we have got the support for our page here.
02:42This will ensure that our container that holds all of our blocks will be fixed
02:47width and center-aligned in the browser window.
02:49I would also like to create a couple of link styles here.
02:52I just find that it's handy to have these done at this stage, and then I can
02:57always go back and change them if needed, or copy and paste them and then create
03:01specialized link styles for special areas, like the navigation or the footer.
03:06So in this case, I know what color I need. I will just plug these in and change
03:12the Font-weight to Bold.
03:13Do another style for visited.
03:18I personally like it when my links and my visited links are exactly the same.
03:23Some people like to change the color or something else so that they are visually
03:27different, as an indication to visitors that they have been somewhere already.
03:33And I also like the hover. And this one will be bold as well, but we will change the color.
03:39There we go. So that's all the structure.
03:45Nothing is changed in Design view.
03:47That's because we are building the structure. And next what we will do is we
03:51will create styles for our header, our main, and our footer. And what I like to
03:55do is make the width and height the appropriate size and then put a
03:59background color on there so it's blocked out,
04:01kind of like that graphic that I showed you where we blocked out the content
04:05for our mockup, so we know where everything goes. And then as I am building
04:09from top to bottom I will remove that background color. It just kind of helps me visually work.
04:13So starting with the header--and I will put my cursor here. Let's Save while we
04:19are at it, for my header.
04:22And you could do a compound style or not. It's up to you.
04:25You can remove that if you want.
04:27I would like my margin left and right set to Auto.
04:35Padding 0 all around.
04:38Set my Height to 272 pixels. And I know this because I went into Photoshop and I
04:42used my pixel ruler to measure that space, or you can use the Rectangular
04:46Marquee to figure out--and a Guide--to figure out exactly how high you need it to
04:49be. And my Background-color like so.
04:56Now you can see that's the exact height for my header. This will hold my logo,
05:01my photographic banner image, and my navigation.
05:05We will next create a style for our main area, and let's do that little shortcut
05:11thing again where I put my cursor here in the code and then it will
05:15automatically pull that up for me so that I can create the style.
05:18You don't have to delete that compound path if you don't want to.
05:22For my main, let's do margin left and right Auto again.
05:29For the top, let's add 20 pixels of padding, and for the bottom let's do Auto
05:33there as well. Padding, 0 pixels all around.
05:37Now, I need a height, a minimum height, and that I can't plug in here. We will
05:42have to go back into the code and hand-add it in a little bit later.
05:46My position should be relative, and it's relative to the parent container. In
05:51this case, it's a container called container.
05:54And then the last thing I want to add is a background color, and then we can go into the code.
06:03For some reason it's not keeping my height, so let's go back in and add it.
06:06Anytime you want to edit a rule, click the Edit Rule, the little Pencil icon.
06:11And we had Height set to Auto.
06:15And then I am going to copy this, paste it in my code.
06:18I want the minimum height, min-height, set to 305 pixels.
06:28This will ensure that that container will be at least that tall, and it can
06:32grow taller if it needs to.
06:35Refreshing that. Save.
06:39We need one more style for that footer container.
06:43Select that here. Let's click OK.
06:47And my footer needs to be 100 pixels tall.
06:50It doesn't matter what order you create these in, as long as you have all the
06:55attributes in there.
06:56I would like my footer text to always be Arial 13 pixels. And the Position
07:02should be relative to the parent container.
07:04Padding, 20 pixels on the top. This will help separate it from the content
07:12inside the main block.
07:15And the last thing I want to do is add a temporary background color so that I
07:18can see it while I am working.
07:21So I am going back into Design view. I will save my file. And now we can see
07:27that there are three blocks of color representing our header, our main content
07:32area, and our footer.
07:33You can see that everything has been coded, everything has been colorized. You
07:37really have a much easier time building out each block within each container
07:42with your new content and your CSS.
07:45And as you work from top to bottom, this will help you to test your coding to
07:49make sure everything is working properly in a bunch of different browsers, and
07:52if you run into any browser display issues, you can fix them as you go, rather
07:57than have to discover something a little bit later.
08:00If you make sure everything is clean while you go, that will minimize your
08:03testing time later on.
Collapse this transcript
Building and styling a page header
00:00Before we work on building our header, I just want to remind you to manage the
00:04site to the appropriate exercise folder.
00:06Just double-click here on the name of the file and you can change the location
00:10of the local root folder there.
00:12We are in folder 06-04, and we'll be working on a file called 2.buildstructure.
00:20It has everything in it that we had from the last movie.
00:22There's a header block, the content, main content block and a footer block at
00:26the bottom. And I'll work in Split Code view, so you can see what's going on as I work.
00:31The first thing I'd like to do is create a style for the logo.
00:35I'd like to put my cursor in the code so I can go in and create a new style here for the logo.
00:41Just set the height, 110 pixels, so that my container will be the appropriate
00:48height that I need it to be. And then I am going to scroll down to the code for
00:53where the logo is and type in words Cupcake Mary.
00:58Now that makes my text appear inside the container and I want to convert this
01:02into a hyperlink that will link to the actual web site, so that if anyone clicks
01:09on this logo, they will be taken back to the homepage.
01:13I also like to make sure that I put Title and Target in here so that my link is
01:19as accessible as it can possibly be.
01:21Now before I deselect that text, I want to do something a little fancy here.
01:26I want to give my hyperlink an ID so that I can create a new style that will
01:31style just that link within this logo div container.
01:36In my ID field, on my Properties Inspector, I am going to call this one CCM
01:41(cupcake marry)-logo.
01:43So it's a style just for that, and then I will create the new style for it and
01:49Dreamweaver automatically appends that link with the ID equal to CCM-logo
01:54and gives me everything I need to create that style.
01:56So we are going to do about four different things here that will control
02:00the look of the logo.
02:02Step one is set the background image to the logo graphic, which I've already
02:07created here in the Images folder for you.
02:09There are the image dimensions.
02:12So we've got the logo in there, in the Background category.
02:16The container isn't large enough for it to repeat, so I don't really even have to
02:19worry about the repeat. If it did, that wouldn't be visible.
02:22Then in our Box category, number two, the second thing we would like to do is
02:27set the width and height to match the actual logo.
02:30So it's 399 pixels wide by 86 pixels high, so that's good.
02:37We have the width and height. And then to make it center-align the whole block
02:42within that space, we're going to set the margins left and right to Auto.
02:48The fourth thing to do here is to control the block itself.
02:53We are going to set the Display to Block, and in this case to make the logo
02:59graphic appear but make the hyperlink text disappear off the screen so it
03:04doesn't appear in the browser window, we're going to set Text-indent--not
03:08Text-align but the Text-indent-- to -9999, and we will set it to pixels.
03:15This is just going to move the text right off the screen and we can click OK,
03:19and there's our logo.
03:22Next, we would like to drop in the banner image.
03:25So back in our code, make sure that we put our cursor in the appropriate spot.
03:29So in between the opening and closing banner tags, we'll click on the word
03:33banner, so that we can create a new style. And automatically there's our Compound
03:39Style Selector name.
03:41Here we want to set the style to, under Block > Text-align > Center, so that this
03:47image is centered within its container. And then the height in the Box area, we
03:53want to set it to 128 pixels.
03:56That's all we need for this style.
03:57So now we have that container right here.
04:01For our web site, we want to be able to change the banner on the different pages
04:06of our site, in which case that area needs to be editable.
04:10So rather than insert a banner image as a background image, we're going to just
04:14insert it as a regular image on the page.
04:16So insert image, you could also use the Insert panel.
04:20We'll navigate to that; banner1 is what we need right now.
04:23Just call it Cupcake Mary Banner. And we don't need a Long Description link.
04:28Just clicking OK and there it is. And it looks like I dropped it in the wrong
04:33place, so I am going to cut that and put here in the code.
04:37It happens sometimes.
04:38Now it's in the right spot. And we can look at our page in Design view.
04:44So now that you've added your logo and the banner photo, you really no longer
04:49need the header background color.
04:51So we can go back into our style here, in the header, and we can just select this
04:56and then click the little mini- trash icon to delete that property.
05:00So now it is starting to look like an actual header.
05:04If you would like to test the clickability of your logo, you can launch your
05:09page in a browser window.
05:10Let's save while we're at it.
05:12You can launch it in the browser window or you can click the Live View button,
05:16which simulates how the page would look and behave in a browser window. And there
05:20is our hand, so we can tell that it's a clickable link, and if we click it, it
05:24would take us to our actual Cupcake Mary web site.
05:29So everything is working properly the way we want it to.
Collapse this transcript
Building and styling a navigation menu
00:00Navigation menus come in many flavors these days, but what they often have in
00:04common is an underlying unordered list structure.
00:08With CSS, that structure can be styled in infinite ways.
00:12Here, we'll create a simple horizontal list menu, where each menu item will
00:18change color and display a little graphic on mouseover and then revert back to
00:23its normal color with no graphic on mouse-off.
00:25Let's go in Split Code view so we can see what we're doing while we're working.
00:29We want to be inside our navbar container so we can create a style for that container.
00:34Now this, we want to set our Font- family to Arial, the Font-weight to Bold.
00:42Let's choose a color of blue from our Cupcake logo, and then in the box, we want
00:50to set the height to 35 pixels.
00:53Let's go back into the type here.
00:55I am going to do the size, Font-size.
00:57I need it to be specific pixel dimensions, so I am just going to plug that in, and
01:02then in the Block area with the Text-align > enter.
01:06So all the entire navbar will be center- aligned once we do that. And we're going
01:11to create our list menu.
01:13So putting our cursor inside that navigation container--and sometimes I just
01:19like to put a little something in there, so I can see where I am and then I
01:21can start typing in.
01:22So we need to create a list for all of our nav menu items.
01:26So About Us, and I am just going to hit Enter, and then Our menu, Locations, and Contact Us.
01:35I am going to select all of that content though and convert it in the Property
01:39Inspector into a list.
01:41So this is what we want.
01:43We also need to create hyperlinks for each of these, and we can do that through
01:47the Link area, in our Properties Inspector.
01:56Now to convert this list into a working navigation menu, we need to create
02:01styles for the ul and li tags, as well as the list link styles that control the
02:07normal and over state for the menu items.
02:10Let's first create a style for the ul, so I'll put my cursor here in the HTML
02:16and create a new style for the ul. And here we're going into the List area and
02:21were going to set the List-style-type to None.
02:25This will remove our bullets.
02:28Let's add a little bit of padding for the top, 12 pixels, and for the Margin we'll
02:35do 0 all around, like so.
02:38So that removed our bullets, like I said.
02:40And next, we need a style for list item.
02:43If I put my cursor in any of these list items here, it should prompt me
02:47to create a new list.
02:49Let's move the A there, for a style for the list item style.
02:52Now here we have a few things that we need to accomplish.
02:57Let's go to Block, rather, and Display > Inline.
03:01Let me apply that so you can see what happens.
03:04That changed it from vertical list to a horizontal list and then Type, we will do
03:09Text-transform > Uppercase. And I'll just click that, so you can see.
03:13So we can have all caps.
03:16In our Box area, we'll add some Padding.
03:18So, on the right, I'll do 40 pixels. That'll bump things out to the right of each item.
03:24For the left, we'll do 0. And these are pixels. Let's give this a little bit of
03:28spacing between the banner photo and the top of the navigation. Plus, it'll give
03:32us some space to put the graphic for mousing over and 0 Padding on the Bottom.
03:38For our background image, I usually like to put in a blank graphic to hold the
03:45space open and then if it's going to appear on mouseover, then I add that to my link styles.
03:50For now I am just putting in this navwidget that's totally white.
03:54I am going to set that to no-repeat and the Background-position set to center and 0.
04:03Back into the Box area. For the Height, we'll set it to 35 pixels.
04:09The Margin, we'll zero those out. There we go.
04:12So we have a little space between everything. And now what we need is a style for our links.
04:19But we're going to create four different styles:
04:21one for all links--just the a href--and then specific links for a regular link, a
04:27visited link, and a hover.
04:28So now that's the correct compound path for this one.
04:32I don't want any of my navigation links to have that underline,
04:36so I am going to make sure that the underline is set to none.
04:40There, now the underline is gone, so we've taken care of that.
04:44And next, we can create those specific link styles.
04:47So we'll do Compound > a:link.
04:52Now actually what I need is I need the full path, because I want these to be
04:56specific only to my navigation bar, and what I'll do is I'll just type in here.
05:02So we need container, header, navbar-- you see how all this is nested--and then
05:14the unordered list, and then the list item, and then the a:link.
05:21Now for this, we want to make sure that, again, the Text-decoration is set to none.
05:25I don't want to see any underlines going on here.
05:28But I do want to specify that the color is going to be the same, so it's 7AC1B7.
05:38If you're faster working in the code, you can certainly come in here--
05:41I am just going to copy and paste--so that for my visited, it's exactly the same.
05:47I'll just change this to Visited. And while I'm at it, I can even paste again
05:54and change this one to hover and then I could go back in through the Styles
05:57panel and modify it.
06:01So back in here, this is the one for hover.
06:04Then we can add other styles here, so things that I want, making sure
06:09Text-decoration is set to none. The color though I want to be different on mouseover.
06:13So I want it to be 9E2520. And then let's go look into the box.
06:20For the hover state, I need to mimic some of these style attributes from the
06:25navbar li style so that on mouseover, the graphic that's going to appear on
06:31mouseover will appear in the right spot.
06:35And here Padding Top will be 11 pixels. Padding Bottom will be 0.
06:40Background image will be a different background image.
06:43In this case, it's my yellow navwidget. No repeat, center and 0, just like before.
06:51We'll set the Height, just like before, to 35 pixels and the Margins to 0 and click OK.
06:57Your navigation menu is now complete,
07:01so let's save what we've done.
07:03Going to Design view and if you want to preview and test the functionality of
07:07your new navigation menu, you can launch the page in a browser window or click
07:11the Live View button here at the top of the screen. And let's mouse over.
07:16Looking good.
Collapse this transcript
Building and styling main content and a sidebar
00:00With most web pages, the most important content is that which falls between the
00:05header and the footer.
00:06This is because the content here is page-specific and can be indexed by search
00:11engines, thereby allowing more visitors to find it.
00:15Let's create a two-column layout here, and then we'll add some custom
00:18content and styles.
00:20The content style will set the font size, the margin spacing, and the width, and
00:25the minimum height for the div container, and that will go on the left.
00:28And on the right, we will create a sidebar style that will have the sidebar
00:32floating to the right of the screen, and it will have a yellow background with an
00:36image, and we will center-align it and add some special fonts.
00:41So let's take a look at the code first, so we can see where we are.
00:44There is our main div tag, and then inside it, we have those two containers:
00:48the content and the sidebar.
00:49We will create the content style first.
00:54So for this, we will go right into the Box and we can set the Width and the Height.
00:59It needs to be 680 pixels wide.
01:03For the Height, I want it to be a minimum height of 282, and since we can't
01:09add the min-height attribute here, we will go back into the CSS and modify that later.
01:15Let's do Clear:left, and then back into the type, we will set the Font-size
01:19here. I am just going to go with the 14 pixels, and let's do a Margin Left, while
01:24we're at it, of 10 pixels, clicking OK.
01:28Now, we can go look at that style here, and I can modify that to say min-height.
01:36Now back in the code, we're going to create the sidebar. And for this, we will
01:42start by setting the Text-transform to uppercase.
01:48We will do Font-weight set to bold. We will change the color, make sure you put
01:53your hash mark in there before you enter any hexadecimal values.
01:55Font-size, Line-height. Let's go into the Position area.
02:03Let's set the Position to absolute, and the Left to 736, Top set to 18--and I
02:12get these measurements from looking at my Photoshop mockup.
02:16Back to the Box, we'll set the Width and Height here:
02:19Width, 219 pixels, Height, 282.
02:25We will put a Clear and a Float right to make sure that the whole thing floats
02:31to the side, and then in our Background area, we will select a Background-image.
02:35I have already created this image for you in the images folder. And we want the
02:39Background set to no-repeat and click OK.
02:43So if we go back into Design view, we can see we have those two containers: our
02:50main content area on the left, and our sidebar floating on the right.
02:55Let's save what we've done so far.
02:56Now we can add some text and images to both sections.
03:00Inside your Layers panel for this manage site to the appropriate exercise
03:05folder is a file, a DOC fil,e called CM Website Content.
03:09We want to open that up. And in the Home section near the top, copy everything,
03:16return to Dreamweaver, and place your cursor inside the content div, and paste.
03:22Now, not everything is going to go here, so the sidebar content can be pasted
03:27into the sidebar div tag. And I don't need the word sidebar.
03:31I have got Cupcake of the Month.
03:33We can split that up. We don't need that comma. I will be inserting a photo. And
03:40I can put Moose on its own line, like so.
03:46Here, I'll hit Enter so the View Our Menu is on its own line. And let's put the
03:53word Welcome at the top. And we will turn that into a heading 1 by selecting it
04:01and changing it here on the Properties Inspector.
04:03We will do the same thing for this as well. And we will not need those little
04:09brackets. And let's make that center-aligned.
04:14So I am just going to come into the code and append the h1 with the align
04:19attribute, set to center, just clean up that extra space. And we'll save
04:27what we've done so far.
04:29Next, let's create a style that will format our heading 1s in the content area.
04:34I will place my cursor inside the word Welcome and create a new style.
04:39There is the compound selector. That's exactly what I want.
04:43And for this, we'll do Font-size: 30, Font-weight:
04:46bold, we will make the color yellow, and we will make it uppercase.
04:53And if you want to see what's happening as you're working, click the Apply button.
04:58Oops! Font-size:0. That should be 30.
05:01Now I want to do some other things here, a little bit of Padding, zero all
05:07around, and for the Margin we will do 0 all around as well, clicking OK.
05:13Now the text here is cute, but I could use a little spacing, so let's do a
05:17redefine for the p as well.
05:20Let's go align the Text to Justify, and set the Line-height to 2 ems, and in the
05:31Box area we will set the Padding to 0.
05:32A nice little bit of spacing, that looks good.
05:37We probably can get rid of that green background that's in our main style.
05:42If you're unsure, you can always select the container and go find it in your code.
05:48So there it is, the background- color. I am just going to delete it.
05:53And for this word Menu, I have already created some styles in the CSS that
05:59will support creating a hyperlink so that when you hover over it, it will change colors.
06:04So when I turn this into a link--and we'll call it menu.html, make sure we set the Target--
06:12automatically my link style will be applied to it, and on mouseover, it
06:16will change colors.
06:17Let's show you in Live view how this will look, like so.
06:21Now this Live view doesn't show you everything. One thing I want to point out is
06:25that in the code for that style, here, what I've done is I've added a
06:30border-radius of 15 pixels, and the mozilla-border radius, and that's because
06:37some browsers interpret this instruction in slightly different ways.
06:41So I had to go in here and type it in myself.
06:44And what that will do in a browser window is it will give my rectangle
06:47nice rounded corners.
06:48So you would want to hand-apply that yourself.
06:51Let's save again what we've done so far, and we will head on over to the sidebar.
06:56With my cursor after the word Month, I will hit Enter and insert an image.
07:03That's my Cupcake of the Month one, for the first month.
07:08Always enter alternate text for your images. And now I'd like to create a
07:13style for my images.
07:16So in order to do that, I want to just make it a style that's applied to
07:19this particular image.
07:20I'll give it an ID, Cupcake of the Month (ccom), so that I can now create a
07:25style for that specifically.
07:27So I will select that here. And I'd like to give it a nice little border,
07:34a solid line, 10 pixels, with a yellow color. And I can apply that to see
07:41how that's looking. Very nice!
07:44And then we'll just change the margin a little bit here. Padding set to 0.
07:48I will say zero all around, and I will go in and modify that, because I'd like
07:53the Top to be 5 and the Bottom to be 5. And I can apply that to see how that's looking.
07:59Very nice!
08:00Now I'd like everything in my sidebar to be center-aligned, so I'll go back into
08:05the Sidebar style and we will add the attribute for Text-align: center.
08:11There we go. Looking good!
08:15Now, all I really need to do is create some styles to format the type here so
08:21that it looks like my mockup.
08:22We will do a new custom class, and the first one, we will call it, sidebar cupcake
08:28(.sbcc). And for this, we will just choose the Font-size to 29 pixels, and we
08:36will change the color to white. And then I can select the word Cupcake and
08:43apply that style in the Class area.
08:47We can duplicate this style, change the name here, so we will call it sidebar
08:53cupcake of month (sbom).
08:55Now, when you create a duplicate, pay attention to the CSS Styles panel, because
09:00it will stay on the original one, not the new one.
09:04So change that, and then we can go in and modify it here.
09:07I would like it to be 19 pixels, but still white, so that I can select Of The
09:12Month and apply that one, the sbom. Everything is nice and center aligned. And
09:19then we will do that again.
09:20Let's duplicate, and this one will be my sidebar fair trade (.sbft). Clicking OK.
09:26Now, we can go look at that style, coming and choosing Fair Trade and change the
09:32Font-size to 14, and we will remove the color, because I like that brown. And then
09:40we can select the words Fair Trade and apply it like so.
09:47So now the Type looks good, but we can tighten up that space if we go into the code.
09:53Scroll on over and see what we've got going on here.
09:55I could remove these Ps, opening and closing p tags, and replace that with a
10:00break, and copying that. And do the same thing here, get rid of that guy.
10:08That should tighten everything up nice and easy.
10:13So the page is looking really wonderful now.
10:15To preview your progress so far, you can launch the page in the browser window
10:19or click the Live View button at the top of the document window.
10:23If you need to cross-check your work, you can take a look at the code in the
10:26file in the Files panel here called buildmain.
Collapse this transcript
Building and styling the footer
00:00Looking again at the footer for our web mockup, we can see that the content at
00:05the bottom of the layout is divided into three columns of information.
00:10The best way for us to recreate this in our web site, in Dreamweaver, is to use
00:15div tags that are absolutely positioned relative to the containing div tag
00:20with the id of footer.
00:22Let's head over to Dreamweaver so we can create those styles.
00:26I've already taken the time to plug in all of the content that will go in our
00:31footer into the three div containers that are there at the bottom.
00:35The footer nav, the contact, and the network divs will be absolutely positioned
00:40inside that parent container.
00:42We just need to now create the styles for them.
00:44We will start with the first one, the navigation.
00:48So I will select that here, footnav.
00:54We need it to be a specific width, and you can check your measurements inside
00:58your Photoshop layout.
00:59I want this one to float to the left of the other two, so we'll do a Clear and a Float: left.
01:07For the Padding we will give it 10 pixels on the left, and its Position needs to be absolute.
01:13Let's click OK. We have the first one in place.
01:18For the second one, for the contact, select that here,
01:21we need to make sure that that's the appropriate size.
01:27In this case, it's 340 pixels.
01:29And then the Positioning, again, absolute. And its Left Position is relative to
01:36that first container, so we need to bump it over 360 pixels.
01:40So now we have got two in place. Let's do that third one for the network.
01:51This network Box will be 190 pixels wide, its Position will be absolute, and its
01:59Left Position will be 750 pixels.
02:02Let's click OK. Now everything is in place, and we just have to add some styles.
02:08So I have added heading 1s above each of the little sections there.
02:13We will start by creating a style for footer heading 1, the compound style.
02:18Now, I don't want this style to just before the footnav; I want this to span
02:24across all of the heading 1s in the entire footer, so I just modified the selector name.
02:30I would like them to display in Century Gothic.
02:34We will make it 14 pixels, with the Font-weight bold.
02:40I would like a specific Color, 7ac1b7. And I can apply this while I am working,
02:48to see how it's looking.
02:49Let's do a Text-transform so everything is uppercase. And it's difficult to see
02:53on that purple background. We will get rid of that in just a second.
02:56Let's also modify the Margin, 0 all around, and then we will edit the Top and Bottom.
03:02The Top can be 5 pixels, the Bottom can also be 5 pixels, and click OK.
03:09So that parent container is our footer.
03:11I will go all the way up to find it and remove the background-color.
03:15So now those headings look good.
03:20Let's also create a style for paragraph text in the footer.
03:24I am just going to change that here to a p, and we will 0 out the margins so that
03:31there isn't any extra spacing anywhere.
03:34That will take care of some formatting issues for us.
03:37Now, I do have these little images over here, and I would like to add a little
03:41bit of space between all of them.
03:44So I will create a general style for all linked images in the footwork in that
03:49section. That gives them a little bit of padding on the right.
03:52How about 4 pixels?
03:55And then the last thing we can do is create some footer links.
03:59I've got links here, links here.
04:03Now, I would like these to be links for anywhere in the footer.
04:06I'll use a special selector type here, but I am going to modify it.
04:12After the a, I will put a period and then type in the name of the container.
04:17So this is for any link in the footer container.
04:21Here we can specify the color. We can turn that underline off, and we can set
04:28the Font-weight to normal. In case there was any bold applied anywhere else,
04:31that will strip it down.
04:34I can Duplicate this, but instead of link, I can call this one visited.
04:41And I am just going to leave those attributes exactly the same, so they are identical,
04:46and then Duplicate again to create a hover state. And for this, make sure you
04:53select that before you modify it, I will change the color like so.
05:00Sometimes when you create links you have to hand-apply the style to them, so
05:05I'll double-click here. And in the class area just make sure that the style that
05:10you just created is selected. So all these look like they are good to go, but
05:15you may have to hand-apply those on your own at some point.
05:17For instance, like this one, Class is None, if we want it to have the same
05:22styling, just hand-apply it like so.
05:25The building portion of our web site master page is nearly complete. To
05:30preview your progress so far, save your work, launch the page in a browser
05:34window, or click the Live View button at the top of the screen, so you can
05:40track your progress.
05:41And if you need to cross-check your work, take a look at the code in the file, in
05:45your Files panel called 6.buildfooter.html.
Collapse this transcript
Adding metadata and externalizing the CSS
00:00Before we convert our master page into a template, there are two important
00:04things that we still need to do:
00:06we want to embed some valuable metadata into the head of our page and then
00:10relocate our CSS from inside the page to a linked external CSS file.
00:17Metadata refers to the so-called hidden coder tags that go into the head of your
00:22web pages, and they define the page content, but more importantly, this
00:27information is used by search engines to index your page and by web browsers to
00:32properly display and route visitors to the appropriate sections of your site.
00:35So I have a file of metadata that I've already created here. It's a text file,
00:40and I've opened it up in Dreamweaver.
00:42Let's just take a look and talk about what's going on here, briefly.
00:45We have a profile in the head code, and that will help browsers understand what
00:51they're seeing here and it will also help display our favicon.
00:56There's a typical Content-Type meta tag, and that usually just describes the
01:00character set that's being used within the page.
01:02There's our title for Cupcake Marry.
01:05Keywords are important, search terms that people would use in Google to
01:09search for your site.
01:10They're not widely used anymore, but they're sometimes used, and I think it's a
01:14valuable thing to stick it in there.
01:15They don't take up that much room.
01:17Your Description, description can either be the same on every page of your site
01:23or unique to individual pages.
01:25That's a little bit more work, but we have our description there, just a brief
01:28statement about who we are and what we do.
01:30There's your publisher and your copyright information.
01:33The author, the language--
01:35we're English, United States.
01:36The distribution is global.
01:38We want everyone to be able to access this.
01:40In fact, if we think we're going to have new content regularly, we can say
01:44revisit after a certain number of days.
01:47We have our robots. That's really important.
01:49We want all of our content to always be indexable at all times, and we would
01:54want people to follow us if they could follow us.
01:56There's our link to our shortcut favicon,
02:00if we had a .ico file, but right below that there's one for our PNG file.
02:05That's one we'll be using.
02:06And then I always like to put in here a link to the index page, as well as a
02:10link to a site map page, so that people using assistive devices can use their
02:14Tab keys to browse to those.
02:16So we are going to copy this whole thing using a keyboard shortcut, popping into
02:21our code, and then paste it right in.
02:24So I will remove the title, meta, and head and just replace it with
02:29everything that I have.
02:31Most of this is optional, but at minimum I would recommend having your title in
02:35there, your keywords, your description, and the robots, and then if you want the
02:39favicon, good, and definitely index and site map.
02:43That's taken care of.
02:44The other thing we want to do is externalize our CSS code.
02:47Actually, let's pop back over to our CSS section. There's all these styles.
02:53Our master page is almost ready to be converted into a template.
02:56We want to be able to use that template for multiple pages on our web site and
03:00not have to go into individual template-based pages to modify code. We want one
03:04style sheet that will be accessible everywhere.
03:07So you could select these styles, all of them, right-click, choose CSS Styles,
03:13and then Move CSS Rules, but when there's a lot of styles, I find it's easier
03:17just go to the CSS Styles panel, click on the top style, scroll down,
03:23Shift+Click on the bottom style so you've selected all of them, right-click
03:27anywhere, choose Move CSS Rules.
03:31This dialog box pops open.
03:33If there was an existing style sheet, you could select it here, but we want to
03:36create a brand-new style sheet.
03:39Click the OK button.
03:41Tell Dreamweaver what we want to call this.
03:43I usually name my style sheets after my customers or my projects, so this could
03:47be ccm.css. Save it and Dreamweaver will automatically relocate all of those
03:54styles for me and create that new file for me, dropping it here into my Files
03:59panel over on the side.
04:00It does leave the style tags here in case I did need to create some custom
04:04styles for any of my template-based pages later on, but if you scroll back up to
04:09the top, we no longer see the style tag that coordinates with this one. We see a
04:13link to our ccm.css, and there's all of our styles.
04:18Another thing that Dreamweaver did is it dropped in this link tag, and this tells
04:23the browser window to go find this external file and use the contents of that
04:28file when displaying this page in a browser window.
04:32The other thing you might want to do at this stage is, if your page had any
04:37JavaScript in it--and some people use JavaScript to control buttons like
04:41rollover buttons, or maybe they would use it to control visibility of some div
04:46tags--you can externalize your JavaScript in the same fashion.
04:50And to do that, you go to your Commands menu and choose Externalize JavaScript.
04:55It will recognize if you have any JavaScript in your code, and then you can
04:59click that button and it will send it to an external file and create that file for you.
05:04And this is great. Just like working with CSS, having an externalized JavaScript
05:09file will give you access to the same code across multiple pages.
Collapse this transcript
Creating templates with editable regions
00:00Templates are a great way for taking control over your code across a
00:04multipage web site.
00:05What makes them so robust is that they have both editable and locked regions.
00:11That way, when you create a template- based page, you can only modify the content
00:15inside those editable regions.
00:18Even better though, for site-wide changes to those locked areas, you only have
00:22to modify the template and Dreamweaver will automatically take care of updating
00:27all of the template-based pages for you.
00:29To convert a regular HTML file like we have here into a Dreamweaver template,
00:35all you need to do is go to your File menu and choose Save as Template--not Save
00:41As, not Save All but Save as Template-- and you just have to give it a name. So
00:46we can call this ccm or call it whatever you like. This is just for you.
00:51As is the Description field, you can fill it out or not, click the Save button.
00:55Now Dreamweaver asks you if you would like to update links.
00:59Always say Yes, because what it does in the process of converting your file into
01:06a template is it creates a folder here in your Files panel called Templates and
01:12it moves the template file inside that Templates folder.
01:17And when it moves the file, it changes the link's structure, so that an image that
01:22was previously linked to the images folder, now it has this ..- so that it
01:27tells you that you have to go outside the folder and then go back into the
01:31folder called images and then find the image.
01:33So it changes the link structure for you.
01:35So always say yes, unless you have a really good reason to say no.
01:40Templates have by default no editable regions, so you need to create those yourself.
01:46For our project, we really only need two regions: one for the banner so we can
01:50change the banner photo on the different pages of our site, and one for the
01:54middle part of the page that includes both the main content and the sidebar.
01:58That will give us the flexibility to update those areas for the individual
02:02template-based pages of our site, while everything else will remain locked.
02:06We won't be able to access the logo. We won't be able to access the navigation
02:10bar or the footer area in those template- based pages. But if we ever did need to
02:15modify those, we would do that through our actual template.
02:19To create an editable region, the first thing you need to do is select the area
02:23that you want to convert into that editable region.
02:25I already have my banner selected, so all I need to do is create the region.
02:29So you will choose Insert > Template Objects > Editable Region.
02:36When you click on that, this dialog box pops open and it asks you what you want
02:40to call that region. Use semantic naming and you'll do fine.
02:45So I will call this banner image, just banner, and click OK.
02:49And you can identify an editable region in your template by this little blue tab
02:54here. And when you select the blue tab, you can see the name of that region in
02:59the Properties Inspector.
03:01If you click away, sometimes you can also see there's a tiny little blue line
03:05around the outside of that region, and that will also appear in your template-
03:09based pages to quickly help you see which parts you can change and which parts
03:14you can't. The second editable region that I'd like to create is for my main
03:18content area, and I am just clicking that entire area.
03:22Sometimes it might be difficult to select the place that you want while you're
03:27in Design view. For instance, I might click here or click here and I'm not
03:31actually getting the region that I want.
03:33So you could always go down to the quick tag selector--this little area right
03:37here--and if you're clicking inside of an area, it will tell you where you
03:41are within the code.
03:42So I'm in the body. I am in a container called div, inside a container called
03:46main, inside a container called content, inside a heading that happens to be a link.
03:51So if I know I want to create an editable region for this tag, I can click it here.
03:56This is like a great shortcut.
03:59Insert > Template Objects > Editable Region, and for this one I will just call it
04:04MainArea and click Ok.
04:09And let's take a look at the code of what's happening here.
04:12Dreamweaver will drop in opening and closing tags like this, so it will mark the
04:17beginning and the end of those editable regions for you. They are in comment tag
04:23so they will not print out, and they are used exclusively by Dreamweaver to
04:28identify the areas that are locked versus the areas that are editable.
04:33Now creating templates is a really smart way of working in Dreamweaver to
04:37maintain control over your pages in multipage web sites.
04:41Anytime you need to make site-wide changes, simply open up your template, make
04:47your edits, and say yes when Dreamweaver offers to update all the files in your
04:51template-based pages.
Collapse this transcript
7. Building Template-Based Pages
Creating pages and adding content with CSS
00:01Creating template-based pages from a Dreamweaver template is quick and easy, and
00:05it really helps to streamline the site-building process.
00:08Once you create a page, you can update the content inside the editable regions.
00:12Let me show you how it works.
00:13Start by choosing File > New, and here you'll choose Page from Template.
00:18Your managed sites should be listed under the Site category, and any templates
00:22for the selected managed site will appear in that middle category.
00:26So everything is selected and ready to go.
00:28I'll just click the Create button.
00:30This page was based on my homepage, and even though it's a template now, it has
00:35everything I need for my homepage.
00:36So all I really need to do is choose File > Save and call it index.html.
00:42To create my next page on my web site, I usually work from the navigation
00:45menu from left to right.
00:47So I could either do File > New and then choose the template again or I can
00:50even File > Save As and call this one About and then just come in here and
00:56change the content.
00:58Now, we do have a file in the Files panel, a Word document, called CM Website
01:02Content that you can open up to gather all of the content for each page.
01:07So, let me toggle over there and we'll get the content for the About Us page.
01:10Just scroll down here and select everything that's supposed to go on that page,
01:15copy it, and switch back to Dreamweaver.
01:18So I don't need any of this.
01:22I'll delete it and just paste everything else in.
01:26Now, I can just go in and modify the text.
01:29So, for instance, if I needed to create some hyperlinks in the second paragraph,
01:33we say they have two shops, one in Manhattan and one in Brooklyn,
01:38so I can make this a link to the Locations page.
01:42In fact, if my Locations page has two sections for each location,
01:47I can create anchor links on that page and then make this link jump directly to those anchors.
01:52So even though the page isn't created yet, I can still hard-code some of
01:57these links, and to use the anchor, I just use the hash symbol and then
02:02the name of the anchor.
02:03So, I could do the same thing for Brooklyn, but let's finish this one out.
02:07We'll call this Manhattan.
02:09Make sure we put the target in there. And so I could copy this and then select
02:15Brooklyn and paste it in there and then just change this, like so.
02:27Other things that are in here, there could be a link to the coupons.
02:30Now, sometimes you might not know what the page is supposed to be called.
02:34In those cases, you just put a hash tag in the Link field and it will make
02:38it look like a link.
02:39Just remember before you publish your site to go back in the code and look for
02:43any hash tags and update that before you publish.
02:45Let's add a photo in here too. Scrolling back up to the top.
02:49We'll put a photo at the beginning of the second paragraph.
02:52Insert > Image, and you'll choose the file called owners. Drop that in like so.
03:01Now, I want my image to float to the left of all the text rather than being
03:04part of that paragraph,
03:05so we'll need to create a style for it and we can do a custom style.
03:11This way we can selectively apply it to any image, but it won't automatically be
03:15applied to all images.
03:16Create a new class.
03:18Let's call this semantically imgalignlef, and we'll give it a blue border, as
03:25opposed to a yellow border or something else.
03:27So, for this, I want to make sure that the image will float to the left of the content.
03:32So, we'll do a Clear and a Float left.
03:35I would like to give the image a border.
03:37Let's do a solid 10-pixel border with a blue.
03:41So I know the color that I want to use here, just pop in the hexadecimal value.
03:47And let's give it a little bit of a margin so that the text isn't right up
03:51against that right edge on the right side, but we do want the left side to remain
03:55flush with the rest of the text.
03:57Now, I would like to apply this here to alignleft. Oh!
04:01I've picked the wrong one. We want the one that says blue.
04:04I would like to have that rounded corner for this.
04:07So, I am going to go into my CSS and I can access it here by clicking on it, and
04:13there's my style. And I want to append this with that border radius.
04:17Again, I can always access this through the CSS panel, but I'll just type it in border-radius:,
04:22and then I want to give it 15 pixels and then I am going to copy and paste that
04:30line and we will append that with the -moz for Mozilla browsers, like so, and come
04:37back to the source code so we can see our page.
04:40We're not going to see a preview of that in the browser window here or in Design
04:43view or even in Live view.
04:44That will show up when we launch it in a real browser and have it going live.
04:49So, we're done with this page now.
04:50The next thing you'll do is save your work.
04:53When you go to Save, typically you're prompted to save all of your files or you
04:57can also choose Save All, so that will save not only your document but any other
05:02files that you may have modified, like your cascading style sheet.
05:04So, on your own, what I'd like you to do is create the rest of the sample pages
05:09using the copy from that Word document. And the graphics for the entire site will
05:13be provided for you in the Images folder.
05:15Now, some of the other pages for this web site, like Locations, Menu, and Contact
05:19will have custom styles that will help you format and position the content.
05:23You'll find these styles already embedded in the ccm.css file.
Collapse this transcript
Using absolutely positioned (AP) div tags
00:01In addition to working with regular div tags, Dreamweaver lets you work with
00:04what they call AP div tags.
00:06Those are absolutely positioned divs that come with their own CSS, which will
00:12allow you to position a container relative to a parent container.
00:16So if you look at this sample coupon page, we see one parent container with a
00:21dotted gray line. Nested inside of it are three additional containers that are
00:26absolutely positioned relative to the parent.
00:29So let me show you how we can build this page working with AP divs.
00:33You can insert your AP divs either through the Insert menu or the Insert panel.
00:39Choose Insert > Layout Objects > AP Div, and it'll drop in an AP div tag for you
00:45right onto the page.
00:46It will be named apDiv1 or any additional ones that you add, they'll be apDiv2,
00:50apDiv3, et cetera. And it comes with its own CSS.
00:55And we're working with our style sheet in the page here, so I can quickly go in
00:59and modify any of the attributes, so we can see what it's given us already.
01:03It's absolutely positioned. It is 115 pixels high, it's 200 pixels wide, and its
01:11Z-index, its stacking order, is set to number 1.
01:13Now I want this to be my parent container, so I am going to give it some
01:16additional attributes.
01:19Opening up the Rule definition dialog box, let's go through here and add a few things.
01:25So under Box, I need it to be 680 pixels wide and 330 pixels high.
01:35I don't have to mess with the Z-index;
01:35that's already taken care of. But as far as its positioning in the browser
01:40window, I'd like to make sure that I have it exactly where I need it.
01:43So I want 9 pixels on the Left and 162 pixels down from the Top-Left edge of
01:49the browser window, and I also want to give it a nice dashed border or a dotted border.
01:55Let's do dotted here and make it 3 pixels. And the color, instead of black, we'll
02:02make it darker gray, like so.
02:04So it's dropped in that parent container for me. And then to create a nested
02:09container, I'll put my cursor inside of that container.
02:12So now--we can even look at the code. You can see where my cursor is.
02:15It's between the opening and closing div tag there.
02:17Now when I insert my next AP div, I am assured that it's nested inside
02:23its parent container.
02:25Now for this one, I can do the same thing, but make sure you have the new
02:29container selected in the CSS panel before you go and modify its contents.
02:34So this time, I want to make it 170 pixels wide by 265 pixels high.
02:41I'll leave the Z-index the way it is, but as far as its positioning, I would
02:45like to position this one 9 pixels in from the left and 13 pixels down from the tTop.
02:52The Background Color, I will either sample it from the logo or I can pop in a
02:57color that I know, like so, and click OK.
03:01So now we have this container and we can add content to it.
03:06Now I did provide you with a file called demo text, so you can copy the
03:11content that will go in each of the three containers. And I'll just paste that in there, like so.
03:16But another thing that you could do is create a custom style, and I've already
03:20created this custom style called couponbox.
03:23And the neat thing about creating a custom style is that you can apply it over
03:27and over and over again to different containers.
03:29So to apply that style to this container, I'll have it selected, and I just go to
03:34my Properties Inspector and select it.
03:36Now that style has a background image, it has a dashed border, some
03:42formatting, padding, et cetera.
03:44And in order for my text to drop down, I'll just put to a paragraph return to
03:48add some p tags there, and now everything looks good.
03:52So another quick shortcut about working with AP divs is that you can copy and
03:56paste them. And you can tell that it's selected when you see that little tab
03:59there at the top of the screen.
04:02And Edit > Copy, put your cursor to the right side of that div tag, and then you can paste.
04:11That'll paste it right on top, so you just drag it off to the side. And then you
04:15can select that AP div, in this case now it's apDiv3, and you can change the
04:20background color, and maybe I'll sample something from the logo. And you would
04:25just repeat the process.
04:26Here is what the finished page looks like in Dreamweaver anyway.
04:30We've got all three nested AP divs inside the parent container.
04:34Not only can you position and style AP divs, but you can place any contents
04:38inside of them, which can be further styled and positioned with CSS.
04:42AP divs give you the flexibility you need when creating complex layouts
04:47without the use of tables.
Collapse this transcript
Inserting form fields
00:00In addition to providing information to web site visitors, we sometimes need to
00:04collect information from them.
00:07That's when we add a form to our web site.
00:09Forms can be used for all kinds of things like surveys, sign-ups, logins,
00:14searches, feedback, and orders for products and services.
00:18What's more, each form can be custom designed so that you only request the
00:23specific information that you need.
00:26On our web site, we will be adding a simple one-field sign-up form to our
00:30contact page here using a spry and validation form field that has this self-
00:35validating JavaScript.
00:37Let's scroll down to the place on the page where we'll be adding our form, and I
00:40usually like to put forms inside containers and then style those containers.
00:45I am going to select this reminder text, and we will insert a regular div tag and
00:51give it the ID of signupform, and then we can go create the style for it.
00:55I don't want strong. I am going to delete that text in the second. And make sure
00:59that you are choosing your existing external style sheet here before you click
01:03OK. And then I will just pop in some things like Background color, Border color,
01:08things like that. And I've already preselected the colors that I want to use, and
01:13of course, if this was your own project, you can deviate from this.
01:18Let's do a solid border, 10 pixels, de090.
01:25Let's give it a specific size. We will go 450 pixels wide by 80 pixels tall. That
01:31should accommodate our needs--and then zero out all the Padding in and we can
01:35add some specific Padding, give it a little bit of space on the top, a little
01:39bit of space on the bottom.
01:40We can always come in here and adjust it if needed.
01:43Now sometimes there is rendering issues in Dreamweaver with recording software,
01:47so we're not seeing our style applied here, but if you click into the Live view,
01:52you should be able to preview what it looks like.
01:54That's what it'll look like.
01:55But we'll continue working without it. In fact, I do want to modify the style
01:59because I would like it to have that border- radius and we will have to hand-code that in.
02:04So border-radius and : 15 pixels;
02:10and I will copy that line again right below and then modify it for Mozilla, so
02:16-moz- and we are good to go. And I will switch back over to my source code.
02:21Let's just to go Design view.
02:23So now we have our container styled and ready to go, and we can add our form inside of it.
02:29So instead of having INSERT FORM HERE, which I don't need--I will delete it--we
02:34do need to insert a form field.
02:36So we will go to Insert > Form.
02:37I like to use the menus. You can use the Insert panel if you like.
02:41Insert > Form, that puts in a simple form field for us, the opening and closing
02:47Form tabs. And we will put our Form field inside that Form tag.
02:52Now take a look at the Properties Inspector with that Form field.
02:56We can give our form an ID, an action, a target, and a method.
03:01Let's click on here so we can see that.
03:04The action you enter here will tell the browser what to do with the form data
03:08after the visitor clicks the Submit button.
03:10For example, you might input the URL of the file, script, or software that will
03:15collect and process the data.
03:17There are tons of different kinds of options,
03:20so check with your host provider or email marketing service for the
03:23correct action code.
03:25We are going to leave it blank for now, but again, you'll check with your host
03:28provider and you'll put the appropriate content in there.
03:31The next thing we need to do is put our cursor in between the opening and closing
03:35tags and we will insert that Form Field.
03:37Insert > Form, and there are all these regular Form fields but then at the bottom
03:42of this listing, there are all the spry validations fields.
03:45We just need a Text Field area and we will drop that in. And most of these forms
03:50are connected with the Accessibility dialog box and they are prompt to help you
03:54make sure that your pages are as accessible as possible, both to people using
03:59assistive devices and other devices.
04:00So it's important that you fill out these fields to the best of your ability.
04:04Here you have the option of entering an ID, like for assigning JavaScript, and a
04:09label to identify the input tag for this field, along with these other
04:13accessibility attributes.
04:15For the Label field, you might want to enter Email with a colon and a space and
04:21that will put that text right before the form field for you. aAd then for your
04:26Access key, you can put in an A, and for the tab index key you can put a 1.
04:31This would allow people to use keyboard shortcuts to navigate through your form
04:35and this is especially important for multifield forms.
04:39If you wanted to bypass all of this, of course, you can click the OK button
04:42without filling anything in.
04:44So there's my spry field, and spry fields are identified by that blue tab and a
04:49blue outline. And if you look at the code off to the left, you'll see that
04:53everything is inside of a span with an ID of sprytextfield1. There is the
04:57label with the text, email and colon and then there is the input field
05:02et cetera, et cetera.
05:03We can modify the field in our Properties Inspector.
05:08Lets customize our spry text field here.
05:11Under Type, let's choose Email address. In the spry text field off to the left
05:17instead of having this boring, generic name, we will call that one email.
05:22This will help us identify the collected information as well.
05:25Let's now select the form field itself, because that will change the properties
05:29on the Properties Inspector, and we can modify this too.
05:33In the text field, we want to change that to emailaddress.
05:37For the Initial value, we can actually put something in there before they start typing.
05:42So we can say Enter your email address. And then for the Character width we can
05:48say how wide we want that to be.
05:50So we can say 35 pixels wide, or it could be narrower or wider. It's totally up to you.
05:54Now placing your cursor at the end of this spry field but before the closing
06:00form tag, I want to insert a break so I am Shift+Enter or Shift+Return to add
06:05that break. And we need to insert a button for a form so that they can
06:09actually submit it.
06:10Going back to the Insert menu, Form.
06:12There is no spry button so we will just use the regular Button. And again, here
06:16we can choose whether or not to use the label or the ID access key and tag key.
06:21Let's enter b, 2 for those at the bottom and click OK, and that will be added to
06:26our code on the left side here.
06:28And now with our button selected, let's change the Value from Submit to SIGN
06:34UP, and I'll use all caps. And we will change the Button name from button to
06:41signup, all one word.
06:43If our form needs more input fields, we can simply add them from the Insert > Form
06:48menu and then style them appropriately as needed.
06:51We could even create custom CSS styles for individual form input fields.
06:55When we save our file, Dreamweaver will prompt us to save some special support
07:01files that go along with this spry field. And if you say yes or OK here, what it
07:07will do is it will create a folder in your Files panel--
07:09you might have to refresh to see it--a folder called SpryAssets.
07:14The only other thing you need to do to insure that your forms works properly is
07:18to upload that SpryAsset folder to the host server, along with any pages on your
07:24site that include forms made with spry form fields.
07:27Now because of our rendering issue, we can't see how that looks,
07:30so let's go to Design view and choose Live view and then we can take a look
07:35at our finished form.
07:37In fact, if we were to preview this in a actual web browser, we would see our
07:40form container with the rounded corners.
Collapse this transcript
Exploring SEO, metadata, and accessibility
00:00One of the underlying goals for most web sites is to reach as many people as
00:05possible so that you can market and hopefully sell your products and services
00:10and other offerings.
00:12To do that well, however, you need to ensure that your web site is both human- and
00:17search-engine-friendly.
00:19Thankfully, with some simple coding tricks, you can make that happen by
00:22following these simple guidelines.
00:24We're going to talk about search engine optimization, meta tags, and accessibility.
00:29With search engine optimization, or SEO for short, the main goal is to make your
00:34content as indexable as possible by search engines, and especially Google.
00:39Here are the four most important things you can do to make your site more SEO-friendly.
00:44The first thing is to use keyword-rich content in headings.
00:48That's any text styled with heading 1, heading 2, heading 3.
00:52For example, "We sell fresh-from-the- oven, warm and gooey delicious chocolate
00:57chip cookies and other baked treats at our West Village Bakery in New York City"
01:01is much more compelling and informative and keyword-rich than, "We sell cookies
01:06and other treats at our store".
01:08So use lots of keywords embedded in your content and your headings.
01:13The second thing is to use semantic naming for all of your files, folders,
01:19downloadable assets, and images.
01:21For instance, an image named 15997.jpg doesn't tell anybody anything about the
01:28image, but a file named drinks_hot.jpg does.
01:34The third thing to do is to externalize all of your JavaScript and CSS files.
01:40This will not only make your pages smaller in size so they load faster, but will
01:44also put the focus on the page content, rather than its functionality and
01:48presentation, which is mainly what search engines care about.
01:52The fourth thing to do for SEO is to be sure to link to related pages within the web site.
01:58Think of these internal links as roadmaps that tell search engines which parts
02:03of the web site are most important.
02:06With meta tags, which you've learned about in Chapter 6, these are those hidden
02:10tags that go into the heads of your pages.
02:13Be sure to include these on all of your pages throughout your entire web site.
02:17The three most important meta tags are the description, keywords, and title.
02:22Meta descriptions provide search engines with a description of the whole site's contents.
02:29Meta keywords are the seven most important words or terms or phrases that you
02:34think visitors might use to find the site in a search engine.
02:38Unique page titles will display at the top of the browser window and generally
02:43tell visitors and search engines what the page is about.
02:47To make your pages even more SEO-friendly, consider having unique metadata on every page.
02:54Now as far as accessibility goes, not everyone cruises through the web through a
02:58browser with a mouse.
03:00To make your pages as accessible as possible, to the widest possible
03:04audience, including those using handheld or other assistive devices, follow
03:08these four suggestions.
03:10Number one: keep your site's navigation accessible by using a combination of
03:15HTML and CSS instead of rollover graphics with JavaScript.
03:21Number two: make sure that all of your image tags include ALT attributes.
03:26This is another opportunity for you to use short, keyword-rich descriptions
03:32about what's in the photo or graphic.
03:35Images that don't need descriptions should still include the ALT attributes, but
03:39they should be empty as in this example, "images/corner.png" alt="". Number three:
03:48make sure that all of your hyperlinks, those href tags, include title attributes.
03:53Again, create short, keyword-rich titles to describe each hyperlink, as in this example.
04:00You've got a link to a menu page, and the title is Check out our Cupcake menu!
04:05And then the link text itself is our menu.
04:08Number four: use social media to increase traffic to your site.
04:12At minimum, consider joining Facebook, Twitter, and LinkedIn, and provide links
04:17to those business account pages on your web site.
04:19In addition, try to include share links from services like ShareThis or
04:23AddThis so that your visitors can easily share or tweet about what they find on your web site.
04:29While it might take a day or two to review and improve the code on all of your
04:33pages, spending that time to make your pages more SEO-friendly and accessible
04:38should pay off with better search engine rankings and traffic.
04:41Stay realistic about the results, though.
04:44These changes will not catapult you to the number one spot in search engine
04:47results or bring you so many new customers that you can't keep up with sales.
04:51Rather, these changes will make your site easier and faster to access, providing
04:56a clearer avenue to communicate with a larger audience.
05:00For additional information on search engine optimization and accessibility,
05:04see Morten Rand-Hendriksen's lynda.com course, Improving SEO Using
05:10Accessibility Techniques.
Collapse this transcript
8. Testing and Validation
Checking links
00:01One of the things that makes web sites, well, web sites, is the fact that multiple
00:06pages are virtually tied together by hyperlinks.
00:09Smart web sites use links everywhere.
00:12There are in our navigation menu, behind our logos, in our sidebars and footers,
00:17and embedded strategically throughout the pages on our site.
00:21But are they all correctly coded and functioning properly? Let's find out before
00:26we publish our site on the Internet, using Dreamweaver's Link Checker tool.
00:30As long as you've already managed your site in Dreamweaver, you can run the Link
00:35Checker on your entire managed site.
00:37To launch the Link Checker, select Site > Check Links Sitewide.
00:43This opens the Results panel, open to the Link Checker tab at the bottom of your
00:48screen. And as you scroll through the Results panel listing, you'll see a list of
00:53pages, listed by its file name, along with any corresponding links that might be
00:57broken under that Broken Links category on the right.
01:01So to edit a broken link, you can double-click the file name--so if I
01:05double-click here, I will launch the About page--and then you can go to the place
01:09in the source code, update the text yourself. Or if you happen to know what the
01:13link is or what it should be changed to, you can actually edit it right here.
01:16Now I'm not sure what this is and where it is, so I might want to go into the
01:21source code and find it.
01:23So I could scroll through here looking, see if I can find it, or for needle-in-a-
01:28haystack-type things, you can use the Find and Replace tool, and we will look for
01:33it, but we won't actually modify it at this point.
01:36So we can say Find All instances of newsletter. That will switch us over to the
01:40Search tab in the Results panel and it will identify where this is. So this is,
01:46if I double-click it here, it's in the blocked area of our template, which means
01:50that it's not working on all of the pages throughout our entire web site, but we
01:54can fix it in one step by modifying our template.
01:57But let's go back to the Link Checker and look at the second one.
02:01Now the second one is like a bad link.
02:04It should be contact.html and then hash mark list, so let's look for that one as well.
02:11We will go to Find and Replace and we will put in contact#list and see if we
02:17can find where that is.
02:19That, too, is in our footer under the locked area.
02:23So we can quickly fix both of these at once by opening up our template and going
02:28into the footer. Let's see if we can find where those are, scrolling down here.
02:33Let's look at the code while we are here. So the Join Mailing List, that's where
02:38one of our mistakes is so, we will type in html, so that's fixed. And that other
02:45link, a little bit higher up here, it's one of our icons here, this one.
02:51There's no page called newsletter.
02:53There is just a link to the Contact page and the list to join our mailing list.
02:59So now both of those are fixed.
03:02We can do a File > Save. Dreamweaver will prompt us to update all of our pages and
03:08if you want to see what's happening, you can choose Show Log, and it will just
03:11tell you which pages it modified and when it's complete.
03:14Then we can close that down, and then come back to our Link Checker, rerun it by
03:21clicking this button here for the Entire Local Site, and any link that was
03:26previously broken would now be fixed.
03:30Perfect, no more broken links!
03:32Now let's also look to see if there are any listings for external links.
03:38This will give us the opportunity to review the links that are going outside of
03:42our web site. What we can't do though, is verify that they're accurate. But if we
03:47look them over, look for typos, spelling errors, that kind of thing, we might be
03:51able to ensure that they are corrected.
03:53Best case scenario, you would spend the time to go through all the links on
03:57every page on your web site, either through the Link Checker or within the
04:00individual pages, to ensure that everything is pointing to the right direction.
04:04The last thing you might want to look for in the Link Checker area is
04:08for orphaned files.
04:09Those are files that you've created and added assets to your web site. They could
04:14be images, they could be external files like CSS or JavaScript, things that
04:18haven't been used even though they are there in your managed site.
04:22From here you can choose whether or not you want to leave them there, for
04:25later use, or remove them and have your whole site be a little bit lighter in file size.
04:31So, great work!
04:32When you're finished using the Results panel, you can close it using this
04:35dropdown menu here, choosing Close Tab Group.
04:39Remember, properly checking all the links on your site and fixing any that are
04:43broken before you put your site on the Internet will go a long way toward
04:47giving visitors the impression of a professionally organized web site.
Collapse this transcript
Spell-checking
00:00Despite our best efforts, spelling errors sometimes happen, even to the best of us.
00:05Thankfully, Dreamweaver offers a quick and easy way, to check for spelling
00:09errors, fix any that we find, and even add new words to our Dreamweaver
00:13dictionary for future reference.
00:15Here's how it works.
00:16Start by choosing the Commands menu, and select Check Spelling.
00:21This launches the Check Spelling dialog box, and immediately you should see the
00:25first misspelled word listed in the Word not found in dictionary field, and a
00:29suggested replacement word highlighted in the Suggestions menu.
00:33Now this happens to be these people's last name, so we can choose to either add
00:39this word to the personal dictionary, ignore it, change it, ignore all instances
00:44in this document, or change all instances in this document.
00:47We are going to ignore this one and move on to the next word.
00:52Each time you respond to an item in the list, Dreamweaver will continue
00:55searching through the text until it finds the next item, or it reaches the end of the document.
01:00If the search began in the middle of your page, you may see a dialog box asking
01:04if you'd like Dreamweaver to continue checking from the start.
01:07So you can always click Yes to continue. And when Dreamweaver has finished
01:11checking the file, it will display a Spell Check Complete dialog box.
01:15So rather than going through the entire document here, I'll just click Close.
01:19Keep in mind that this feature only works on open files.
01:23So my recommendation is that you start checking your pages from the top of your
01:28Files panel and work on them one at a time from the top down.
01:32Though this takes a little bit longer to go one page at a time, publishing a
01:37web site without any spelling errors is well worth the extra effort.
Collapse this transcript
Site cleanup
00:01When it comes to finding those common coding errors that sometimes happen when
00:04we do a lot of cutting and pasting to build our pages, nothing can beat
00:09Dreamweaver's three easy- to-use cleanup commands.
00:11Let me show you how to use them.
00:12The first one is called Reports.
00:15You can access the Reports through the Site menu, and it brings up this
00:18Reports dialog box.
00:20We want to do the HTML Reports, so I am just going to click on all of those buttons.
00:25Now notice that my Run command is grayed out.
00:27That's because we are asking it to do a report on the current document and
00:31there is no file open.
00:32The nice thing about this one though is we can ask it to run on our entire
00:37current local managed site.
00:39Selecting that option, clicking Run, let it do its thing.
00:43The Results panel opens to the Site Reports tab, listing the two errors that it happen to find.
00:50In fact, the only thing it found was two errors inside the About page, which we
00:55can easily double-click on here to open up the About page. And if we
01:00double-click on the Description, it will bring us right to the problem area, in
01:05which case, it's an image without and alt attribute and we can add that
01:09easily in the Properties Inspector.
01:12And the other one is an empty span tag.
01:14It's just a tag that just got left over in there somewhere, and all we need to do
01:18is come into the code here and remove it.
01:20It's not doing anything for us.
01:22You can save your file and then re-run that command, and when there's nothing
01:29else to find, you'll see that it says Complete at the bottom of the page.
01:34The next thing is the Cleanup command, and that's also up here at Commands > Clean Up.
01:40Now there is Clean Up HTML, but, if you were in XHTML page, it would say Clean
01:45Up XHTML. Dreamweaver will read your DTD and then display the appropriate clean
01:51up extension there.
01:52When you click on that button, this dialog box comes open, and you can choose
01:56which things to clean up.
01:58Now sometimes when you're copying things and pasting, redundancies happen,
02:03nested things happen. You want to just have clean code, as clean as possible.
02:07So if you wanted to remove specific markup, you can turn that option on, or a
02:13specific tag. You can type in that tag, looking for one thing and then removing
02:18them all, like old I tags for italic.
02:20People aren't using those anymore, so you could search for those and remove them.
02:24Click OK and it will run the Clean Up command on your open document. And if
02:29there's nothing to clean up, you get this summary that says there's nothing to
02:32clean up, so you can click Ok.
02:34Now this command only works on one page at a time, so keep that in mind.
02:39The third thing is a tool in Dreamweaver called Clean Up Word, and it's in the
02:43same location, under that Clean Up.
02:45And what this does is it will help you remove any word formatting that
02:50sometimes gets caught up in your page when you paste, or especially if you saved
02:55a Word document as an HTM file and then brought that into Dreamweaver, which
02:59we have not done, but sometimes people do that. A lot of the time there is Word-
03:03specific markup that has no bearing for us in our web site and we would want to remove that.
03:09I mean, it's an awful lot of code.
03:11So you could just leave everything selected here and click Ok.
03:15There are two options here. You can go for super-old Word documents 97/98 or
03:202000 and newer, or if you wanted to look at some of the detailed things that
03:23it could remove and maybe choose not to remove some of them, you can modify
03:28the check boxes here.
03:29We will just click OK and let it run.
03:31It says you may have made some changes to code that is not marked as editable
03:36and if you make any changes here, they won't be saved when you save them.
03:39And what this means is some changes might be in our template, so we would want
03:43to make sure that we have run this on our template as well, just to make sure
03:47that everything is nice and clean.
03:48And if we run it on our template and any changes are found, when we save
03:52our template file it will automatically update those locked areas in our
03:55template-based pages.
03:58So in this case, it found one meta tag that wasn't being needed. It wasn't
04:02necessary, so it removed it, and if there were any tags that were miscoded, like
04:07break tags or things like that, source formatting would have been applied.
04:11And this one too, it needs to be run on individual pages one at a time.
04:16So though these tools might take some time to perform, the results are well worth it.
04:21Having clean code not only makes your pages smaller in file size, but it also
04:25makes your pages load faster in a browser window.
Collapse this transcript
Validation
00:00The W3C Validation tool in Dreamweaver will check your code for tag and syntax
00:06errors against the official recommendations by the W3C.
00:10This gives you the opportunity to fix any problems before you publish.
00:14In addition, you can use Dreamweaver's browser-compatibility tool to identify
00:19any coding issues that can be improved for better browser rendering and
00:23visitor accessibility.
00:24Be advised that the Validation feature is only available in Dreamweaver 4 and 5.5, but not 5.
00:31If you happen to be using Dreamweaver 5, you can still validate your pages by
00:35going to validator.w3.org.
00:39To start running the validation tool, open the file you'd like to validate and
00:44select Window > Results > W3C Validation, or choose File--we will go up here--
00:50Validate, and then choose Validate Current Document(W3C).
00:55This opens up the Validation panel, or the Results panel opened to the validation
01:00tab, and it will list all of the errors and warnings that it finds.
01:05If you're unsure of what an error means, you can select it and right-click to
01:10open the Context menu and choose More Information.
01:14This will bring you an error console and identify the error.
01:18In this case, we have some coding for XHTML in our HTML 4.01 transitional page.
01:27And it's telling us that that backslash before the end of some of our tags in
01:31our meta tag area is unacceptable for this particular doctype.
01:35And because that area is inside of a template, we would need to go in and modify
01:40our template in order to update all of the rest of our pages on our web site.
01:45What's nice about this panel is that you'll see the name of the file, it will
01:48identify the line within the file that the error exists, and then give you a
01:52short overview, or description, of what the error happens to be.
01:55So all of those are exactly the same. We will scroll up to the top.
01:58And some of these are a little bit different, but they're all related to using
02:02XHTML tags within an HTML 4.01 transitional file.
02:07This sometimes happens when you copy and paste. For instance, in this instance,
02:11all of our meta tags were copied and paste from another source file, which
02:15included that XHTML backslash.
02:17And again, we can easily correct for this by going into our templates file.
02:21Let's take a look at another file, and we will rerun the search.
02:26Clicking on this little green button here, one of the options is Settings.
02:30So if we click on the word Settings, it brings us to our Preferences dialog box.
02:34And here is where we could choose the doctype against which the Validator will check.
02:39We could switch over to HTML 4.01 transitional or XHTML transitional. The option
02:46is totally up to you, just know that you need to match your doctype to the type
02:50of code that's being used.
02:51We will just leave it here for now.
02:53Actually let's switch over to HTML 4. 01 transitional, and we will run this
02:57search again on this other page.
02:58Validate Current Document. And in this case, it's saying that no errors or
03:02warnings were found; everything is good to go.
03:05While you're in the Results panel, you want to click on that next tab for
03:08Browser Compatibility, and you can verify whether your open document will cause
03:13any rendering issues in certain browsers, or include any CSS properties or
03:18values that aren't supported by specific browsers.
03:21So clicking on this little button here, you say Check Browser Compatibility.
03:25It will run through everything and if there's no problems, it will say No issues detected.
03:30But let's switch back over to our other file and run that report again, Check
03:34Browser Compatibility, give it a few minutes or few seconds, and it will tell you
03:38if there are any issues detected.
03:39In this case, there are no issues, but if there were, we would see the listing
03:43over on the right side. It would tell us what the problem was. It would
03:46identify which browser and browser type, such as Internet Explorer 6, and we can
03:52choose whether or not we want to live with it or we'd like to write additional
03:55code in order to support that particular browser, or atl east modify the CSS so
04:00that it fails acceptably.
04:03This tool can also be run directly on CSS files, so if we wanted to open up our
04:08cupcakemary.css, we can run that here.
04:13Again, no issues were detected so we are in really good shape.
04:16With both of these tools, you'll need to run them individually on each page in your web site.
04:22But if most of the pages use the same template, the process should go quickly.
Collapse this transcript
9. Publishing via FTP
FTP setup
00:00When you're finally ready to publish your web site on the Internet,
00:03Dreamweaver has you covered. With its built-in file transfer protocol tools,
00:09you can setup your FTP account and start transferring your files to your host
00:13server in a matter of minutes.
00:16To use Dreamweaver's FTP features, you will need to have already registered your
00:21domain name and secured a hosting plan from a host provider.
00:26Your host provider will give you the FTP access information you need to set up
00:31your account in Dreamweaver.
00:33FTP access information usually consists of a URL, a username, and a password.
00:41To set up your FTP account in Dreamweaver, select Site > Manage Sites > Edit or
00:47double-click on the site name to open up the Site Setup dialog box. You'll
00:51go into the Servers category and then click on the Plus button to create a connection.
00:57In the Server Name field, that can be anything you like. My web site Cupcake Mary
01:03is only for your reference.
01:06In the Connect using, we're going to be using an FTP connection, but there are
01:11other options that you can choose from. FTP is the most popular.
01:17In the FTP Address field, you'll type in the name of the FTP address, which can
01:22either be an FTP or HTTP address that your host provider gave to you.
01:28Enter your username and password. Your username can either be an e-mail
01:35address or an actual username. Your password will always show up with those
01:41dots, with hidden characters.
01:44The Root Directory, you can leave that blank and only enter something if your
01:48host provider gave you something. It could be something like public_html or www.
01:55In the More Options area, you probably won't really need to use that unless
02:00you're behind a firewall, in which case you might want to use passive FTP. I
02:04really only go in this area if there's some problem making a connection, and
02:09that's where we'll go to this test button.
02:12If you click on the Test button, Dreamweaver will go out on your Internet
02:15connection and validate the connection, validate the FTP access information
02:19that you just added.
02:21If it was a nice fit, you'll get this dialog box that says Dreamweaver did
02:25connect to your web server successfully.
02:28If there was a problem, you'll get an error message, and you can go into the More
02:31Options section or make sure that you've typed everything in accurately.
02:35Sometimes a little typo will be the reason why you can't get in, so sometimes
02:40I'll just erase and retype everything in fresh.
02:43The Save option here is so that Dreamweaver will save all of this FTP access
02:49information for you for this managed site, so you never have to go in there and
02:53manage it again. And when you're finished, just click the Save button and then you
02:57can see that FTP connection is there, and click the Save button again to close
03:02the Site Setup dialog box.
03:04Dreamweaver is now configured to make an FTP connection between your managed site
03:09and your remote host. You may create as many managed sites with FTP connections
03:14as you like, and toggle between each account as needed.
03:18Dreamweaver will keep track of each site's FTP access information, so you're
03:22always assured of sending the correct files to their correct remote server.
Collapse this transcript
Transferring files
00:00Once you've established an FTP connection with your remote host through
00:04Dreamweaver's Site Setup dialog box, the next step is to transfer copies of your
00:10files from your local copy to your site's remote host server.
00:15The remote server is the live Internet version of your web site.
00:19The first thing to do is expand your Files panel by clicking on the Expand
00:25Collapse button, which is located here.
00:28Remote files will be shown on the left side of your screen, and local files are
00:33listed on the right.
00:35To establish a connection with the remote host server, you'll click the Connect
00:39button, which is right here. Click that once and
00:43give it a second to make a connection.
00:46Transferring your files goes two ways. You can put files onto the server and you
00:53can get files from the server.
00:57If you ever forget which way is which, hover your cursor over the blue and green
01:02arrows here. They only light up when you hover on top of them.
01:06So, I like to think of it like putting something up on a shelf. I'm taking my
01:11local files and then putting them up on the remote server versus getting
01:16something down from the shelf. I'm getting something down from the remote server
01:20onto my local files.
01:22In our case, we want to put our entire site onto the remote server.
01:28The only thing that's there now are some custom error pages, those number
01:33pages, as well as a placeholder page that I previously created for my domain.
01:39The placeholder page is called index.html, and the graphic being used on it is
01:44called placeholder JPEG.
01:45So, before I transfer any of my files, I might want to save that file for later,
01:51and I'll just change the file name to placeholder.
01:55Now there is nothing happening on my web site, so if somebody went there at
01:58this very moment, they wouldn't see anything. They would get one of those error pages instead.
02:04To transfer my files, I need to select everything. Do not select this one here.
02:09What I like to do is click and Shift+ Click to select everything and then I can
02:14click my Put button to put all of my files up on the remote server. You could
02:19also drag and drop the files over into this blank space if you like.
02:24When you click on this button, this dialog box opens. You can click on this arrow
02:29to expand and see what's happening.
02:31It asks you if you want to put dependent files.
02:35A dependent file is any asset that goes with the files, so for an HTML file,
02:41the dependent could be a CSS, an external JavaScript, some spry assets, anything else.
02:46I'm going to say no at this point, because I'm already transferring everything
02:51over and if I say yes, it will do the transfer of all those dependent assets
02:55again and again for each HTML file.
02:59When you're finished transferring your files, click the Connect button to
03:03disconnect and then click the Expand Collapse button to put the files panel back
03:09to its collapsed state.
03:11Transferring your files to the remote server via FTP is one of the quickest and
03:16easiest ways to update the live version of your web site.
03:20For best results, always double-check your work on the Internet to verify that
03:26you can see all your recent changes.
Collapse this transcript
Post-launch site maintenance
00:00Because search engines give extra weight to pages that contain fresh page
00:05content, keeping your live web site up to date is crucial if you want to stay
00:10competitive and keep visitors coming back regularly.
00:14Anytime you make a change to your site, no matter how big or how small, send the
00:19changes to the server right away.
00:21As part of your business plan, you may want to schedule regular updates to your
00:26product or service offerings.
00:28For our web site that might mean updating the menu, cupcake of a month, coupon
00:33offerings, every 30 days. Let's say for example we've decided to add two new
00:39blended drinks to our menu page, so we'll scroll down here and take a look at
00:43our Drinks section in here.
00:46So I'll add a bullet and we'll add the Chai FrappaMary, and we will also add a
00:52Chocolate FrappaMary.
00:56And let's say on our Locations page, we want to change the banner image. I'm
01:00just double-clicking to launch the Select Image Source dialog box, and I'll
01:04choose banner number 9 and click OK.
01:07We can save both of our pages, so I'll do Save All. And then if we want to send
01:12those files to the server, we'll make our connection. We can expand the files
01:18panel or not; it doesn't matter. We just have to remember which two pages that
01:22we just made changes to and put them onto the remote server.
01:27Now in this case I may have created a new graphic for the banner, and I'm going
01:32to say Yes, go ahead and include those dependents, and I'll say Yes to All.
01:36So, this might take another second or two for all the files to get transferred
01:41over, those assets that go along with the two files that I'm sending, but that's
01:45good. I'm making sure that any files that go along with those changes are
01:49definitely over on the remote server.
01:53When you're finished transferring your files, disconnect and collapse the Files
01:57panel. And remember that SEO study show that sites with fresh regularly updated
02:03content are indexed faster and more regularly by search engines, and they tend to
02:09generate more traffic than sites with old static information.
02:13To keep your visitors coming to your site often, try to make daily, weekly,
02:19or monthly updates.
Collapse this transcript
Conclusion
Goodbye
00:00Web design is a field that's constantly evolving. To stay on top of current
00:05trends and keep your skills fresh, you may want to check out the following
00:08recommended web sites for tutorials, news, freebies, and other goodies.
00:13For web tutorials, my favorite resource is w3schools.com. Here you can learn
00:19about HTML, browser scripting, XML, server scripting, web services, web building,
00:26and a whole bunch of other things.
00:28Another really great site for tutorials, as well as web-related news, is SitePoint.
00:34And another great site for news and information about web-related things is
00:38Smashing Magazine. This is definitely one to follow on Facebook and on Twitter.
00:43More advanced designers might appreciate the articles on alistapart.com, and you
00:49can find some really great Photoshop tutorials and goodies at psd.tutsplus.com.
00:57For design inspiration, definitely check out Vandelay Design in their
01:02Blog Galleries category.
01:05You can also find some really decent freebies, like textures and background files,
01:10here on the BittBox web site. And if you're looking for up-to-date resources for
01:16web designers, check out Webdesigner Depot.
01:19As far as training goes, you might find exactly what you're looking for on lynda.com.
01:25I hope you've enjoyed this Designing Web Sites from Photoshop to
01:28Dreamweaver course.
01:29It's now your job to take these skills and run with them.
01:33The truly best way to learn is with hands-on practice.
01:36Thanks for watching! See you next time.
Collapse this transcript


Suggested courses to watch next:

Web Site Strategy and Planning (1h 37m)
Jen Kramer

Dreamweaver CS5 Essential Training (15h 22m)
James Williamson


Photoshop CS5 Essential Training (11h 15m)
Michael Ninness


Are you sure you want to delete this bookmark?

cancel

Bookmark this Tutorial

Name

Description

{0} characters left

Tags

Separate tags with a space. Use quotes around multi-word tags. Suggested Tags:
loading
cancel

bookmark this course

{0} characters left Separate tags with a space. Use quotes around multi-word tags. Suggested Tags:
loading

Error:

go to playlists »

Create new playlist

name:
description:
save cancel

You must be a lynda.com member to watch this video.

Every course in the lynda.com library contains free videos that let you assess the quality of our tutorials before you subscribe—just click on the blue links to watch them. Become a member to access all 98,405 instructional videos.

start free trial learn more

If you are already an active lynda.com member, please log in to access the lynda.com library.

Get access to all lynda.com videos

You are currently signed into your admin account, which doesn't let you view lynda.com videos. For full access to the lynda.com library, log in through iplogin.lynda.com, or sign in through your organization's portal. You may also request a user account by calling 1 1 (888) 335-9632 or emailing us at cs@lynda.com.

Get access to all lynda.com videos

You are currently signed into your admin account, which doesn't let you view lynda.com videos. For full access to the lynda.com library, log in through iplogin.lynda.com, or sign in through your organization's portal. You may also request a user account by calling 1 1 (888) 335-9632 or emailing us at cs@lynda.com.

Access to lynda.com videos

Your organization has a limited access membership to the lynda.com library that allows access to only a specific, limited selection of courses.

You don't have access to this video.

You're logged in as an account administrator, but your membership is not active.

Contact a Training Solutions Advisor at 1 (888) 335-9632.

How to access this video.

If this course is one of your five classes, then your class currently isn't in session.

If you want to watch this video and it is not part of your class, upgrade your membership for unlimited access to the full library of 1,893 courses anytime, anywhere.

learn more upgrade

You can always watch the free content included in every course.

Questions? Call Customer Service at 1 1 (888) 335-9632 or email cs@lynda.com.

You don't have access to this video.

You're logged in as an account administrator, but your membership is no longer active. You can still access reports and account information.

To reactivate your account, contact a Training Solutions Advisor at 1 1 (888) 335-9632.

Need help accessing this video?

You can't access this video from your master administrator account.

Call Customer Service at 1 1 (888) 335-9632 or email cs@lynda.com for help accessing this video.


site feedback

Thanks for signing up.

We’ll send you a confirmation email shortly.


By signing up, you’ll receive about four emails per month, including

We’ll only use your email address to send you these mailings.

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

By signing up, you’ll receive about four emails per month, including

We’ll only use your email address to send you these mailings.

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked