New Feature: Playlist Center! Pick a topic and let our playlists guide the way.

Start learning with our library of video tutorials taught by experts. Get started

Creating a CSS Style Guide: Hands-On Training
Illustration by

Marking up text by hand


From:

Creating a CSS Style Guide: Hands-On Training

with Laurie Burruss

Video: Marking up text by hand

Although the Properties Inspector makes it easy for the web designer to do a lot of formatting and marking up tags, there are many, many more tags that are not available through the Properties Inspector. So one shouldn't be afraid of using some hand coding and trying out some other things in marking up their page. Let's try Definition List, a very popular tag, but one not available in the Properties Inspector. I have made it identifiable in my Design View by putting a dl in front of it to remind me this is where we will do the Definition List.
Expand all | Collapse all
  1. 6m 58s
    1. Welcome
      1m 9s
    2. Objective of this course
      3m 38s
    3. Using the exercise files
      2m 11s
  2. 28m 26s
    1. Starting Dreamweaver for the first time
      3m 38s
    2. Defining a website
      4m 3s
    3. Understanding the Dreamweaver interface
      9m 43s
    4. Setting up a custom workspace
      4m 10s
    5. Setting essential preferences
      6m 52s
  3. 56m 54s
    1. Laying out a page in a text document
      3m 40s
    2. Creating and saving a new document
      3m 27s
    3. Inserting an image
      8m 22s
    4. Marking up text using the Property Inspector
      6m 48s
    5. Marking up text by hand
      9m 21s
    6. Inserting, formatting, and selecting a table
      8m 16s
    7. Creating links
      12m 26s
    8. Styling a footer
      4m 34s
  4. 22m 15s
    1. Using Modify Page Properties to create embedded styles
      12m 22s
    2. Creating links with CSS
      4m 55s
    3. Working with Code, Split, and Design views
      4m 58s
  5. 8m 52s
    1. Defining browsers to test a web page
      2m 24s
    2. Previewing a web page in a browser
      6m 28s
  6. 16m 44s
    1. Using a span tag to add a class and customize appearance
      10m 34s
    2. Using the Tag Inspector to create and edit additional styles
      6m 10s
  7. 48m 42s
    1. Exporting existing styles into an external style sheet
      7m 0s
    2. Using the CSS Styles panel to add a new style
      5m 43s
    3. Using the div tag to create a content container
      11m 8s
    4. Overriding the default browser styles
      2m 46s
    5. Applying padding and margins
      4m 57s
    6. Styling header tags
      5m 34s
    7. Creating and styling compound tags
      5m 12s
    8. Editing preexisting rules
      6m 22s
  8. 19m 36s
    1. Improving the Footer
      5m 12s
    2. Commenting a CSS style sheet
      7m 0s
    3. Creating a custom color palette
      7m 24s
  9. 3m 6s
    1. Style sheet final review
      3m 6s

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
please wait ...
Creating a CSS Style Guide: Hands-On Training
3h 31m Beginner Mar 06, 2009

Viewers: in countries Watching now:

A web site is just a web site unless it’s designed with a unique style. Creating a CSS Style Guide: Hands-On Training highlights the importance of a CSS style guide, which serves as an interface for the design team and a communication tool for the client. Laurie Burruss calls on her background as director of digital media at Pasadena City College and takes an informative, real–world approach to this topic. She shows how Dreamweaver CS4 can be used to develop a coherent site–wide emotion that boosts brand identity. The course culminates with building a working web style guide for professional use. Exercise files and a downloadable PDF quiz accompany the course.

Download the exercise files from the Exercise Files tab.

Topics include:
  • Planning a site from a blank file
  • Creating and editing a style guide with just HTML
  • Using the Property Inspector for text markup
  • Inserting images, tables, and footers for a custom look
  • Creating and editing an external CSS style sheet
  • Building a custom color palette for a site
  • Testing web pages in various browsers
  • Styling tips for professional sites
Subject:
Web
Software:
CSS
Author:
Laurie Burruss

Marking up text by hand

Although the Properties Inspector makes it easy for the web designer to do a lot of formatting and marking up tags, there are many, many more tags that are not available through the Properties Inspector. So one shouldn't be afraid of using some hand coding and trying out some other things in marking up their page. Let's try Definition List, a very popular tag, but one not available in the Properties Inspector. I have made it identifiable in my Design View by putting a dl in front of it to remind me this is where we will do the Definition List.

I am going to put my I-beam right there and delete that, now that we know. In Code View, let's bring that up so we can see them side-by-side. There are three parts to the Definition List. There is the parent tag, which is called the dl, Definition List. There is the actual word that will be defined, which is called the Definition Term, dt, and then there is the Definition Data or the definition of that word, dd. In order to do this, we need to select the entire group to put the tag on.

That will be the parent tag, the dl. Right-click, drop down through the menu and remove the p tag. We don't want the p tag on this particular grouping. Now we want to wrap the parent tag or the dl tag. Right-click, choose Wrap Tag, go ahead and start typing D. We know that we are going to make this a dl, and you can see that the code hints appear right here. You can scroll down, if you don't remember. You can start looking through those. There is the dl, d for Definition, l for List. Select that, hit your Return key, click anywhere in the document window, and that will apply.

Let's check that out in the Code View. Here is the opening tag, dl, and it is completely wrapped around, the opening and close tag has been properly applied. Within the parent tag, we need to put the Definition Term. Let's select that part that should be the Definition Term, Blue, all the way to the end of the sentence. Right click. We don't need to remove a tag this time. We want this tag to be embedded in that parent tag, so select Wrap Tag. Start to type. This is going to be the Definition Term, d, and then if you want to you can scroll down where we know that it is the dt. You can simply type dt, Definition Term pops up in the menu, click anywhere outside. Let's look back over at our Code View and inside of the parent tag dl, we see the dt or Definition Term that was applied correctly.

The third and last thing we need to do is tag the Definition Data or the Definition of the word we are trying to do, which in this case is the color of the sky. Right click. Again, choose Wrap Tag. This one will be dd and now Dreamweaver knows and intuitively understands that we are trying to format or markup the Definition List, and it jumps to the dd tag, which it's expecting because we are doing it in that order. Go ahead and hit Return or Enter, click on the document window, there you go.

Let's take a sec to see it in Design View so we get an overall impression of how our page looks, and that is the correct display for the Definition List. Remember, all lists have a parent tag and then a way to display the parts inside of the tag. The Definition List is popular because it has two different child tags and that allows you to style your content three different ways. You will see more when we get to the CSS style sheets. Let's return to Split View, and let's try it another way. Maybe an easier way is some way that might make us get a little more comfortable. What if we didn't know anything about the Definition List? Well, one of the great features inside of Dreamweaver is our Help menu. Let's click on Help, and let's scroll down to Reference. Included with the application is a set of the O'Reilly Reference Materials. Let's click on the dropdown menu. These are all of the O'Reilly books that are included with your version of Dreamweaver CS4. It's fantastic.

We will use the HTML Reference right now. It always jumps to whatever tag you have your I-beam on inside your document. Evidently I had mine somewhere inside the Unordered List, but we want to be working on our Definition List. So let's click on the dropdown menu for Tag. It's in alphabetical order. Let's go up to d. we know it's a Definition List, select dl, and this is what makes me love this tool. It gives you the opening and closing tag. It describes how you should use the tag and the parts of this tag. That it has child tags that go within it. If you scroll to the bottom, you will see that it actually gives you an example.

So if you don't know anything about how to setup the tag and you don't know how to use the parent and child tags, just simply select this, copy it, close your Reference Guide. In Code View, let's go to the end of our Definition List that we just created, the one about Blue, find the close tag, which is /dl, insert our I-beam, hit the Return key, and then let's do a Command+V or Paste. Terrific! Now we have the example inside. If we click on the Refresh key on the right, you will see that that example now is displaying inside of our page. But it's not the content that we want. Let's try making a new definition.

I would like to define what Yellow is. So let's select their content and type the word Yellow. Let me override that, click on your Refresh button. Notice again, it appears in our Design View. Then select everything within the dd tag or the Definition Data, and we will write 'Yellow is the color of bananas and New York taxis.' Again, click on that Refresh button. Wow, looks great. I like to keep checking again in Design View to get an overall impression of my design, to see if the code and the markup looks correct, and that does.

Another popular tag that you can do using the Properties Inspector is the blockquote. Lots of us will be inserting quotations and indented items inside of our main body content. So let's move on down to the blockquote, select that, and let's go into Split View so you can see what's happening when I select those words. When I select those words, you can see that one, there is a line break in there, which we don't want. So we are going to delete that. Then let's select the text again.

You can also see that we do not have the opening and close tag selected, and there is an easy way to get around this. I'm going to go back into Design View. If you don't know whether you have your opening and closing tag selected, you can simply go down to your Tag Inspector and select that tag. If we go back into Split View, you will now see our selection includes not only our content but the tag. This is very important when you are going to be changing tags that you get rid of the old tag and insert the new tag.

Click back in Design View and we are going to use what we call the Quick Tag Editor by using a hot key, Command+T or Ctrl+T. Notice now it knows that we have the p tag wrapped around this content. We want to eliminate the p tag and instead put the blockquote. Again, it appears in our code hints. Select that, click on Return, click anywhere in the document, and now it's properly applied. Beginners, again, I can't emphasize how important it is to keep looking in Split View to make sure that what you think you did is what you did. There, clean code. blockquote opening, blockquote closing, no extraneous tags. This is exactly the way we want to markup our document.

So what have we learned? It's okay to hand-code. Don't be afraid to try it. The Help features, particularly the O'Reilly References can not only teach you code, but make it easier for you to insert code. Finally, we have this great tool, the Command+T, Ctrl+T Quick Tag Editor. The Quick Tag Editor can do three things, Insert, Edit, and Wrap Tags, and also if we are not sure if we have selected both the content and the tags, always check down in the Tag Inspector at the bottom. This makes it a lot more fun and you will try a lot more things if you feel free to try using and inserting hand codes and tags.

There are currently no FAQs about Creating a CSS Style Guide: Hands-On Training.

 
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.
Upgrade now


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

join now Upgrade now

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Creating a CSS Style Guide: Hands-On Training.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

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.

Sign up and receive emails about lynda.com and our online training library:

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

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.