We launched a new IT training category! Check out the 140+ courses now.

Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Marking up text using the Property Inspector

From: Creating a CSS Style Guide: Hands-On Training

Video: Marking up text using the Property Inspector

Right now, all our text looks the same on this web page, but we want to give certain text more weight and other text less weight, we want it to have meaning. We want our main headers to be larger, our subheaders to be smaller. We want our body text to look one way. So let's start adding some semantic markup, this is called formatting your HTML. Let's select the first line of text, which is our Simple Text navigation bar. We can see by using the Tag Inspector at the bottom of the document window that this has a p tag that is nested in. If I went to Code View right now and looked at this, you can see that a p tag is wrapped around this line.

Marking up text using the Property Inspector

Right now, all our text looks the same on this web page, but we want to give certain text more weight and other text less weight, we want it to have meaning. We want our main headers to be larger, our subheaders to be smaller. We want our body text to look one way. So let's start adding some semantic markup, this is called formatting your HTML. Let's select the first line of text, which is our Simple Text navigation bar. We can see by using the Tag Inspector at the bottom of the document window that this has a p tag that is nested in. If I went to Code View right now and looked at this, you can see that a p tag is wrapped around this line.

So if you are not sure what kind of tags or formatting you have, you can always select it and look at the Tag Inspector. Let's click on Design View. I'm going to leave the navigation bar alone right now. We will come back to it later. I would like to start formatting the three headers that I have here. The first thing I notice is I would like to keep it semantic, make it meaningful. I have talked about this over and over again. Main Heading means it's the largest one, but Heading 2, a better name for that would be a Sub-Heading. Then Heading 3 means it's going to be smaller.

One of the things we know about heading is Heading 1 down to 3, Heading 1 is our largest one, 3 is a smaller one, and we can go on down with the numbers getting smaller and smaller. Let's select Main Heading 1, including the h1 that indicates just that we are going to make this an h1 format. Come down to your Properties Inspector, go to your Format dropdown menu and select Heading 1. There you go, pretty big heading. It's done in the default style of the browsers and what's recommended by the W3C. This is exactly how it would appear in a browser if you added no style sheets.

Let's select Sub-Heading 2, and apply, as I have indicated, an h2 tag. Go down to Format, click on the dropdown menu, select Heading 2. So you can see, this is really easy and fun. Select Heading 3, we are going to apply an h3 tag or formatting to that, select that, and now it's applied. If we go back to Split View and match up our windows to look at that, we can see that Heading 1, Heading 2, and Heading 3 are all applied.

A great way to think about code is that it's a set of instructions that tells the browser how to display your page. So we are saying, when you see these words, Main Heading1, h1, put them in an h1 tag and display it that way in the browser. It's simply a set of instructions telling the browser what to do. Let's go back to Design View. This is going to be body text, and the p tag or Paragraph tag is a perfect tag for that. But let's just check to make sure when you are being a web designer. You can never err too much on the side of caution. Although you and I both know that this paragraph is probably in a p tag, let's select it and make sure.

How do we check? We look down at our Tag Inspector and see that in fact it does have the p tag wrapped around it. I am going to move and scroll up the page a little bit. The next two areas that we want to look at are list, the Unordered List and the Ordered List, and I want to do this in Split View, so you can see how the code displays this. This is a more complicated tag, but its one that you can do using your Properties Inspector. Scroll up so that they match visually. There we go. There is our Apples. You can see the Apples there and you can see our Apples here.

Let's select the Apples, Oranges, and Lemons. Then look down at your Properties Inspector, and you will see that there is a bullet list or that's what you call it in Microsoft Word, but in HTML, we call this an Unordered List, the tag is ul. Let's click on that button. Notice what happened over here in Code View and also what happened in Design View. In Design View, it added a bullet. It compressed the space or the line height of the items, and it grouped them as one main element.

In Code View, this is very important to notice, ul is a mother or a parent tag. It defines this whole grouping. It's saying that whatever appears within this tag will be part of an Unordered List. An Unordered List is just a group of things. It means they have something that relates to it, but they don't need to be in any particular order. So that's what an Unordered List is. In this case, we have all kinds of fruit, it doesn't matter whether Lemons is at the top or Oranges is at the top, it's just a group, a generic grouping, and that is how we should use the Unordered List tag, as a group of things.

The child tag is the li or line tag. Needs an opening and closing tag, and you can have as many of the li tags as you want. This is basically list item. The coders were smart when they named these. They used things that we could all remember. ul, Unordered List, first initial of the two words. Li, list item, or some people like to say line Item, it doesn't matter, but it will help you remember visually if you can think of these as being just initials for what they stand for. So you have got that. Let's go down to the Ordered List. Ordered List has order of importance, usually 1, 2, 3, A, B, C, Roman numeral I, II, III, something that matters what the order is.

For instance, in this case, these are the three things my son does when he wakes up. Wake up, Dress yourself, Eat breakfast. So I'll go down to the Properties Inspector. Look for what we call the numbered list if you are working in Microsoft Word, but inside of Dreamweaver we call this the Ordered List or the ol tag. Dreamweaver instantly applies that. It works just the way the other list did. We have a parent tag, ol, that wraps around the entire grouping or the entire list and then each list item or line has its own tag.

In this case it displays a little bit differently, in fact, a lot differently. It adds the numbers 1, 2, 3. Just like in Microsoft Word we will be able to change these later on. We could have Roman numerals. We could have all different kinds of ordering numbers or alphabets here. The important thing to see here is that the order does matter, and that's why we use an Ordered List. So don't confuse the two. One is a group of generic or related items, and the other one really has to do with showing importance from top to bottom.

Now that we know how to apply HTML formatting or what is called semantic markup using the Properties Inspector, we will take a look at hand coding some of the tags and some of the markup.

Show transcript

This video is part of

Image for Creating a CSS Style Guide: Hands-On Training
Creating a CSS Style Guide: Hands-On Training

35 video lessons · 28161 viewers

Laurie Burruss
Author

 
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

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
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.


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.

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 preferences from 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

Your file was successfully uploaded.

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.