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

Dreamweaver CS6 Essential Training
Illustration by
Watching:

Using code hints


From:

Dreamweaver CS6 Essential Training

with James Williamson

Video: Using code hints

There's just no way to sugarcoat it. Writing code by hand can be tedious. Also, if you're just starting out in terms of learning a language, it can be really easy to forget the exact tag you're looking for or remember all the options that you have within a specific tag. That is why I love Dreamweaver's code hinting features. Code hinting helps you speed up writing your code and also gives you an idea of the tags and options available to you. So I want to demonstrate that by working in our Index file which you can find in the 05_03 folder. All right, I'm going to scroll down into my code and as if by magic, we have a little hole right there in our unordered list within the navigation.
Expand all | Collapse all
  1. 1m 4s
    1. What is Dreamweaver?
      1m 4s
  2. 5m 44s
    1. Welcome
      1m 4s
    2. Using the exercise files
      2m 17s
    3. Learning web design
      2m 23s
  3. 1h 0m
    1. Looking at the Welcome screen
      5m 9s
    2. Exploring Windows and Mac interface differences
      5m 6s
    3. Arranging panels
      8m 44s
    4. Managing workspaces
      10m 14s
    5. Exploring the Application toolbar
      6m 21s
    6. Exploring the Document toolbar
      8m 47s
    7. Working with the Property inspector
      9m 30s
    8. Using the Insert panel
      6m 30s
  4. 53m 3s
    1. Understanding basic site structure
      3m 46s
    2. Exploring file naming conventions
      2m 10s
    3. Defining a new site
      5m 23s
    4. Managing files and folders
      7m 57s
    5. Adding remote servers
      7m 4s
    6. Uploading files
      12m 46s
    7. Previewing in browsers
      9m 11s
    8. Managing multiple sites
      4m 46s
  5. 36m 41s
    1. Creating new documents
      6m 49s
    2. Setting up new document preferences
      5m 30s
    3. Setting accessibility preferences
      6m 49s
    4. Working with starter pages
      4m 32s
    5. Managing starter pages
      13m 1s
  6. 37m 23s
    1. Getting text into Dreamweaver
      8m 43s
    2. Importing Word documents
      4m 6s
    3. Adding structure to text
      7m 35s
    4. Creating lists
      4m 35s
    5. Creating definition lists
      4m 0s
    6. Using the Quick Tag Editor
      8m 24s
  7. 44m 41s
    1. Exploring the Code toolbar
      5m 41s
    2. Setting code preferences
      7m 19s
    3. Using code hints
      8m 8s
    4. Wrapping tags
      5m 7s
    5. Adding comments
      6m 29s
    6. Using snippets
      7m 32s
    7. Formatting source code
      4m 25s
  8. 1h 19m
    1. Setting CSS preferences
      9m 32s
    2. An overview of the CSS Styles panel
      9m 23s
    3. Creating a new CSS rule
      6m 42s
    4. Using the CSS Rule Definition dialog
      7m 25s
    5. Organizing styles
      7m 22s
    6. Modifying style properties
      6m 17s
    7. Controlling CSS through the Property inspector
      6m 37s
    8. Attaching external style sheets
      5m 54s
    9. Using CSS visual aids
      7m 3s
    10. Using CSS Inspect
      6m 48s
    11. Using the Code Navigator
      6m 39s
  9. 1h 11m
    1. Managing assets in Dreamweaver
      7m 30s
    2. Setting external image editing preferences
      4m 26s
    3. Placing images on the page
      10m 12s
    4. Exploring Photoshop integration
      7m 17s
    5. Modifying Smart Objects
      9m 42s
    6. Modifying image properties
      8m 4s
    7. Styling images with CSS
      6m 45s
    8. Using background graphics
      7m 28s
    9. Positioning background graphics
      10m 10s
  10. 36m 23s
    1. Link basics
      3m 17s
    2. Setting site linking preferences
      2m 19s
    3. Creating links in Dreamweaver
      9m 17s
    4. Using absolute links
      3m 43s
    5. Using named anchors
      6m 41s
    6. Creating an email link
      5m 25s
    7. Creating CSS-based rollovers
      5m 41s
  11. 44m 30s
    1. Reviewing table structure
      5m 20s
    2. Importing tabular data
      6m 46s
    3. Creating accessible tables
      6m 11s
    4. Exploring basic table styling
      9m 42s
    5. Styling alternate rows
      8m 57s
    6. Creating custom table borders
      7m 34s
  12. 59m 15s
    1. Understanding how forms work
      2m 45s
    2. Reviewing form design
      3m 44s
    3. Creating accessible forms
      5m 16s
    4. Setting form properties
      2m 39s
    5. Using the fieldset and legend tags
      2m 52s
    6. Inserting text fields
      6m 56s
    7. Inserting list menu items
      7m 54s
    8. Inserting checkboxes
      4m 14s
    9. Inserting radio button groups
      3m 52s
    10. Inserting submit buttons
      2m 25s
    11. Exploring basic form styling
      8m 2s
    12. Exploring form element styling
      8m 36s
  13. 33m 25s
    1. Adding CSS3 transitions
      8m 29s
    2. Spry overview
      2m 44s
    3. Using Spry widgets
      3m 57s
    4. Adding Spry effects
      8m 1s
    5. Using the Widget Browser
      7m 4s
    6. Extending Dreamweaver
      3m 10s
  14. 1m 2s
    1. Additional resources
      1m 2s

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 ...
Dreamweaver CS6 Essential Training
9h 24m Beginner May 07, 2012

Viewers: in countries Watching now:

Discover how to build web sites, prototypes, and more in this course on Adobe Dreamweaver CS6. Author James Williamson shows designers how to take control of their site by properly naming and structuring files and folders; how to create new documents and web pages from scratch or with starter pages; and how to add content such as text, images, tables, and links. James also provides a background on the languages that power projects built in Dreamweaver—HTML and CSS—and introduces the programming features in the application, for developers who want to dig right into the code. The last chapter shows how to finesse your project with interactive content such as CSS3 transitions and Spry widgets.

Topics include:
  • Choosing and customizing a workspace
  • Defining a new site
  • Uploading files to your site
  • Creating new documents and web pages
  • Formatting source code
  • Working with CSS
  • Placing images and background graphics
  • Creating links
  • Styling a basic table
  • Creating a web form with buttons, check boxes, and list menus
  • Adding Spry effects
Subject:
Web
Software:
Dreamweaver
Author:
James Williamson

Using code hints

There's just no way to sugarcoat it. Writing code by hand can be tedious. Also, if you're just starting out in terms of learning a language, it can be really easy to forget the exact tag you're looking for or remember all the options that you have within a specific tag. That is why I love Dreamweaver's code hinting features. Code hinting helps you speed up writing your code and also gives you an idea of the tags and options available to you. So I want to demonstrate that by working in our Index file which you can find in the 05_03 folder. All right, I'm going to scroll down into my code and as if by magic, we have a little hole right there in our unordered list within the navigation.

I have to 'fess up. I did that so that we can show off some of the code hinting features. So the structure of these links, we have the text of the actual link itself which is surrounded by an a tag; a stands for anchor and what that has do with links, I don't know. But then we also have an href attribute that points to the page that we're linking to and a title that lets people know a little bit more about that link. That is in turn, surrounded by a list item tag, and remember, the list items are grouping all of these links in one unordered list to let user agents know that hey, these links all relate to each other.

Okay, so we want to finish the last link in the page which is going to go to the About Us page. And for me to do that I'm just going to start hand-coding and I'm going to start off by coding the list item. And I'm going to start off by opening up one of my angle brackets here and I notice that I get a full list of all of the HTML tags available to me and it's pulling that from the Tag library that we talked about in our last movie. Now if I scroll through this list, I don't even have to type again. I can select exactly the tag I'm looking for, hit Return, and it'll finish it for me. Now if you do want to type though, notice that if I type-in an l, it jumps down into the ls and if type-in an i, it jumps right down to list item.

Now at this point I could hit Return and you really wouldn't see much happening because this is a list item and it only has two letters. But if it was something really long like block quote, it would finish typing it out for me, which is nice. So I'm just going to hit Return or Enter and you can see my cursor is just sitting right there after the tag is finished. Now if I hit a Space, Dreamweaver assumes that I want an attribute for this tag and it gives me a list of all of the available attributes for the list item tag. Now in this case I don't need an attribute, so I'm just going to hit Backspace and then use my closing angle brackets there to close out my initial opening list item tag. Now I like building the structure of things out as I go, so instead of opening up my link here, I'm going to go ahead and close my list item out and I can do that very simply and easily by opening up another angle bracket and hitting the Forward Slash (/), and notice that it'll go ahead and complete the rest of the closing tag for me.

So that speeds up that process as well. Now in terms of how these closing tags are created, that's entirely up to you. If I go back to my Preferences really quickly, I can see that in the code hinting Preferences, I have some options about closing tags being completed. I like the default option, which is after typing in the start of the closing tag. But some people prefer this that the moment they finish typing their opening tag, go ahead and create the closing tag. Now I don't like that because it sort of leaves you here outside of the tag and now you've got to click back in it to keep writing. So I'm not a huge fan of that method, but it's all based on personal preference.

So you could try out both of them and see which method you like better. Now code hinting can do a lot more for us than just help us complete our tags. Notice for example that when we start doing our link, I'm going to click inside the list items and then I'm going to go ahead and start an anchor tag. As soon as we start our anchor tag, if I hit Space to start doing the attributes that I need here, again, I get a nice list of all the attributes of the link tag, and if I hit H, it's going to jump down to the list of hs and what I'm looking for is href. href points out to an external resource, which in this case is going to be the page.

Now you'll also notice something pretty interesting about the href attribute as compared to some of the other attributes. It has a nice little icon beside it that looks like a link and it's because it is. It's linking out to an external resource. Now that's more than just a visual cue as to what this does. That actually has some functionality to it. Let me show you what I mean. When I hit Return, what it's going to do for me is it's not only going to finish out the attribute, but it's also going to type-in the Equals sign (=) and it's going to place my cursor directly inside the Quotation Marks, meaning I could start typing the path to the page that I wanted to link to.

But what if I don't remember the path to the page? What if I know the page that I want, but I don't have the directory structure memorized or maybe it's a really long directory structure that I don't feel like typing out? Well, you'll notice that the code hinting tooltip hasn't entirely gone away. I've got this little Browse icon up there, and if I hit Return before I start typing, watch what it does. It says, oh, you want to link out to a page. Well, who do you want to link out to? So I'm going to browse into the about folder, find the about.htm, highlight that, click OK, and it's going to finish that out and resolve that path for me.

That's a huge timesaver. Now the next thing you need to do is do another space and then I'm going to title. So in this case, I'll just type-in ti, it'll get down to title. Once again, hitting Return finishes that attribute for me, places me within the Quotation Marks, and now I can just type -in About Us and there's my attribute. Now I'm going to finish my opening link tag, then I'm going to type-in the word About, and then again, using our code hinting I'll close the link tag. Now because I was explaining it there, it took a little bit of time to complete that.

But if you were just going through and using the code hinting features that I just showed you, you will very quickly and easily write the rest of this code without having to type out the whole line. It's all about saving time. Now there is a lot more that's involved in terms of what code hinting can do for you as well. Before we move on, I want to show off a little feature for you in CSS in terms of code hinting. So I'm going to save this page and switch over to the main.css. Now what I want to do is I want to scroll down to about Line 141. At Line 141, you'll find the class selector for the orange class.

so this is going to style any element that has the class of orange applied to it or the class attribute that equals orange. Currently right now, all it's doing is doing a text-transform, it's transforming all the text to uppercase and it's making the text bold. What I want to do is I want to set a color on it and I also want to give it a background graphic. Code hinting is going to help me do both of those things. So if I go to right here where there is a Semicolon (;) right after the property of font-weight equals bold, I'm going to hit Return, again, code hinting pops up automatically. So if you don't know CSS, now you have a list of all the properties that you can set for this, and if you have an idea in terms of what you're wanting to do, you can choose it from this list of properties.

Well, I want to set the color, so I'm just going to type-in co, it's going to jump down to color, and I'm going to hit Enter. Now at this point, you'll notice that again, one of the values here is color and it has this little Color Palette beside it. As soon as I begin typing something, for example, let's say I want to use RGB, as soon as I type-in rgb, I get this nice little Color Picker that comes up, which is really cool. So now visually, I can pick a color, I can even go into this option here to change the color formatting, whether I want to use rgba which is going to give me alpha transparency or just the rgb value itself.

I can change those preferences on the fly as I code which is really, really cool. So I could go ahead and choose an orange color here for this particular selector, then hit Semicolon (;) to close that out. And then if I want to do a background graphic, watch what happens here. I can go in and type backg, for background, hit Return or Enter, it's going to take me to my attributes. And if I just type-in a u, again, URL is going to come up. And just like we had in the HTML code hinting, URL has a little link icon beside it that tells me that this is clickable, and if I just hit Return, it's going to allow me to browse out for the image that I'm looking for.

So I can just go out, browse out to images, I'm going to go down until I find this sort of diagonal pattern right here, click OK, and then type-in the Semicolon (;) to save that. So if I save my file and preview this in the Browser, you can see the work that we've done, our about link is now up there, and notice this text that has the orange class applied to it not only is orange which is what we're going for, but has that diagonal background pattern to it as well. And writing the code for that was made a lot easier through the use of code hinting. So it doesn't matter whether you're writing HTML or CSS, there's simply not a good reason not to take advantage of code hints.

They just make you more productive.

There are currently no FAQs about Dreamweaver CS6 Essential 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 Dreamweaver CS6 Essential 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

Notes cannot be added for locked videos.

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.