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

Getting text into Dreamweaver

From: Dreamweaver CS6 Essential Training

Video: Getting text into Dreamweaver

In this chapter we are going to discuss using Dreamweaver to add text and structure to your HTML. Although you can certainly type to your heart's content inside Dreamweaver, chances are that most of the copy you work with will be created either by you or another person in a program other than Dreamweaver. So we are going to start by discussing how to get text from those programs into Dreamweaver. So I have the programs.htm file open from the 04_01 directory. You'll notice that over here in the main content section I don't have any content.

Getting text into Dreamweaver

In this chapter we are going to discuss using Dreamweaver to add text and structure to your HTML. Although you can certainly type to your heart's content inside Dreamweaver, chances are that most of the copy you work with will be created either by you or another person in a program other than Dreamweaver. So we are going to start by discussing how to get text from those programs into Dreamweaver. So I have the programs.htm file open from the 04_01 directory. You'll notice that over here in the main content section I don't have any content.

This is pretty typical. You will create a page, and you style it, and then you'll go out to get the content that someone else has written or that you've written in a word processing program and you'll just paste it in. So it's actually a really common workflow. I notice over here in the Files panel I have an assets directory folder and inside that I have this Word document programs.doc. Now the great thing about Dreamweaver is it recognizes that this is a Word program. In fact, within Dreamweaver's Preferences, you can tell it what type of program to use when editing specific types of files.

The default one for Word is of course naturally Word. So if I double-click this icon, this is going to go ahead and open up this file directly inside of Word. So here we are in Word and I can see that someone's been very helpful to us in terms of formatting the content for me. So they have structured the content, they have applied styles to it. And let's break down kind of the styling that they have applied, the structure that they have added, and we can talk about how that's going to translate once I get back over in the Dreamweaver. So if I click inside the first heading here Academic Programs, I can see that the default style Heading 1 has been used.

If I click inside the paragraph, I can see that the custom style Body Copy has been applied to this. Now I appreciate somebody styling this for me, I'm not really sure I'm all that supportive of their color choices, but it's nice of them to go ahead and format this for you and you are going to find that people will do this a lot for you if they are giving you content. They will create a Word document and they will try their level best to make it look exactly the way they want it to look on the webpage. Actually, they're not helping you at all when they do that. So I want to talk about the things that they can do that will help you and some of the things that they might do that might not be so helpful that you need to look out for.

So again with all of the headings you will notice that we are using default the Heading 1, Heading 2, and Heading 3 styles. That's important because there are preferences within Dreamweaver that are going to help retain that structure and make sure that the proper structural tags in the HTML are used for this content. You will also notice that certain text doesn't have a style applied to it, but we do have formatting such as Bold or Italic applied to it as well. Dreamweaver has options to remember that as well and that can save you a little bit of time when you copy and paste this text.

So what I am going to do now is I am going to go ahead and do a Select All and I am just going to copy this text and then I am going to jump back into Dreamweaver. Alright! So here I am back in Dreamweaver. I am going to place my cursor right inside this main content region. But one of the things you'll probably notice, if you're like me and you're in Design view, is I have this sort of dotted line or dashed line all the way around this area. That's to let me know visually that there is a region an element here that is acontaining element that I can put content inside of. In fact, if you click inside this and you look down here in the tag selector, you'll see that I'm now inside of a paragraph tag which is inside this article element with an ID if mainContent.

So again that's just another way to sort of double-check and make sure you're in the right place. Now before we paste our text, I want to bring up the Preferences inside Dreamweaver that guide this process and show you what the results of those different preferences will be. So, if I go up to Edit and choose Preferences, on the Mac you'd go to Dreamweaver and choose Preferences, I am going to go right here to the Copy/Paste category. So we have a few options here. The first option is Text only, then we have Text with structure. You will notice it's talking about basic structural elements like paragraphs, list, tables, and things like that.

Then we have Text with structure plus basic formatting, which is bold and italic. Now this is the default preference actually. So if you haven't set this before, that's the one that you are likely to see selected and then finally we have Text with structure plus full formatting and that's bold, italic plus styles. We have another set of options below this and we have some checkboxes down here. I want to talk about what these will do for you. The first one is Retain line breaks. So if somebody in Word has done what's known as a soft return. So instead of hitting Enter or Return, they hit Shift+Enter or Shift+Return to break down to another line, but stay within the same paragraph, Dreamweaver will honor that for you and it will put a line break tag, a br tag in the code rather than a paragraph.

Then we also have this really nice little feature that cleans up Word paragraph spacing. It's very common for people in Word to get space between their paragraphs by hitting Return or Enter twice rather than going up and formatting that space. So what Dreamweaver will do for you is it will rip out all those empty paragraphs so you don't end up with code that's just littered with empty paragraphs. Then finally we have the Convert smart quotes to straight quotes. So if for example someone did smart quotes and they have these curly quotes and you need straight quotes for measurements or something like that, you can rip those out as well.

So what I am going to do is I am just going to go up and experiment with these different preferences that we have. I am going to start with Text only. So if I click OK and I paste my content in now, Text only is exactly what I get. I don't get any line breaks, I don't get anything other than just one huge paragraph with all of that text. That has the advantage of stripping out any formatting from Word that we don't need. You will notice a lot of times when you paste text in from Word that it brings in some pretty funky formatting; line breaks that you didn't mean to bring in, paragraphs that are all over the place, and this is one way to sort of just strip all that stuff out and allow you to go back in and apply your own structure to it.

Of course, this particular workflow is going to be a little bit more manually labor-intensive, because now I would have to go in, manually insert all my paragraphs and headings and things like that. So I am going to undo that. I am going to back to my Preferences. This time I am going to go to the other extreme and I am going to do Text with structure plus full formatting. Now for a lot of new Dreamweaver users this seems like Mecca. They are like, wait a minute. I can bring in the text from Word and retain all of the formatting? That means I can work in Word the way I like to and bring it in and poof! My webpage magically looks just like that.

Well, there are some problems with this particular workflow. Let's check those out. If I click OK and then paste my text again, notice that it does come in and it does sort of retain the formatting. This particular file has an external CSS file that's driving the look and the feel and the presentation, if you will, of the text. So what we are seeing here is we are seeing some conflicting styles. It's retaining some of the formatting from Word and it's getting a lot of its formatting from the external CSS file. To really understand what's going on here, we are going to need to switch over to the Code. So I am going to switch over to Code view and I can see that these paragraphs that it brought in also have these classes applied to them like BodyCopy and MsoNormal.

Now if you remember from the Word document, BodyCopy was one of the styles that we had up there. So it actually brought that style in, but it brought that style in as a class. It also places the style in the head of the document as an embedded style and you can see it sort of writes a custom selector around this. I doubt that this is a workflow that you really want to embrace, because if you're controlling your entire site with your external CSS file, you are going to have a lot of styling conflicts, you are going to have more classes applied to your files than you need and it's just not a very efficient way of working. So once again I am going to go back to Design view and I'm going to undo that.

I'm going to go up and do one final preference and this time I am going to do Text with structure plus basic formatting. Now this one is almost exactly like the option above it, the only difference is if anybody has applied bold text or italic text inside of Word, it's going to honor that in Dreamweaver and I want to show you how it honors that. So I am going to bring this back in, I'll click OK, paste the text again. And you will notice I don't need to go back out and copy it. It just remembers whatever is in the clipboard. So now you'll notice that the formatting is being controlled by my external CSS file.

The structure is being controlled by the structure that I gave to the content inside Word. You will notice when I click inside Academic Programs for example, it's a Heading 1, when I click inside Academic Departments, it's a Heading 2. All my paragraphs are coming in as separate paragraphs, and right down here the text that has bold applied to it inside Word, you will notice that that is inside of a strong tag. So it's not writing a custom CSS selector for that, it's actually using the HTML structure to achieve the same exact results within Dreamweaver. So copying and pasting text into Dreamweaver is likely to be a very common workflow for you, and because of that, Dreamweaver has a lot of different options within its Preferences to help control how the text is brought in.

Now this is a workflow, this copying and pasting of text in the Dreamweaver is a workflow that you are going to use a lot, but there is another way to bring text in the Dreamweaver from Word and we are going to take a look at that option in our next movie.

Show transcript

This video is part of

Image for Dreamweaver CS6 Essential Training
Dreamweaver CS6 Essential Training

90 video lessons · 54238 viewers

James Williamson
Author

 
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

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.

Join now "Already a member? Log in

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

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.