This tutorial will show you time-saving tips, techniques, and tools in Dreamweaver using:
There is a host of DW shortcuts that can save you time editing and reviewing code. Below is a brief list of some important shortcuts that you should learn:
For a complete listing of Dreamweaver shortcuts, go to keyboard shortcuts on Adobe web site.
The Quick Tag Editor (CTRL+T) can be using to insert, wrap, and edit content in the Design View without having to use the Code View:
You can write multiple lines of code simultaneously use multi-cursors in Code View.
Code hints help users learn HTML, CSS, and other web standards, and visual aids like auto-indentation, code coloring, and resizable fonts help reduce errors and make your code easier to read.
For more information, see Coding environment in Dreamweaver.
The Tag Chooser can be helpful when you want to select an element in Code View:
Instead of manually searching and replacing, use the Find and Replace command to do the work for you.
The Find and Replace dialog box (Find > Find and Replace in Files) can be used to search for attributes and element even if no files are open in Dreamweaver (e.g., searching within a folder).
NOTE: The Find and Replace Quick Find bar is at the bottom of the Dreamweaver workspace.
For more information on find and replace, see Find and replace text, tags, and attributes.
Keyboard shortcuts for find and replace:
For a complete list of find and replace keyboard shortcuts, see Find and replace keyboard shortcuts.
Dreamweaver supports linting (analyzing code for potential errors) for HTML, CSS, and JavaScript.
The Lint Checker provides live code error monitoring and inform you by displaying a red circle with an x in it at the bottom of the screen:
Tips on using the Lint checker:
For more information, see Lint code.
The DOM panel suport multiple selections, editing of elements, classes, and IDs, and insertion of new elements. You can layout and design most part of your web page by using just the DOM panel.
NOTE:
Emmet is a tool that is used as an HTML and CSS abbreviation expander. Emmet Commands can be used to create shorthand code that can be expanding into actual code. It use CSS operators.
It works by typing an Emmet command and then pressing the TAB key. Moreover, the cursor is also correctly positioned between opening and closing tag or attribute quotes.
Emmet uses CSS selector operators for its abbreviation engine to create structured code. (e.g., child selector (>) and sibling operator (+). It also uses the dot (.) for classes, hash sign (#) for IDs and the asterisk (*) for multiplication.
Type a Emmet command and then press the TAB key.(e.g., table)
<!-- -->
<input type="text">
<script src=""></script>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.NOTE: p>Lorem by itself will yield a 30 words Lorem Ipsum placeholder text.
Voluptate ipsam, illum, ab, sed eveniet iusto quibusdam nemo
illo autem nisi tempora dicta temporibus fugit possimus
dolores nobis laboriosam blanditiis dolor.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Harum, sint.</p>
<p>Velit accusantium, id facere? Numquam harum, fugiat nemo tempora aliquam.</p>
<p>Vero quas tenetur cupiditate sequi adipisci, ea maiores eligendi, fugiat!</p>
<p>Delectus dicta consequuntur itaque libero quam odit placeat veritatis, quidem.</p>
NOTE: Note that the multiplier is applied to the p element containing the Lorem Ipsum text not the Lorem keyword.
<ul class="nav">
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<ul class="nav">
<li><a href="">item1</a></li>
<li><a href="">item2</a></li>
<li><a href="">item3</a></li>
<li><a href="">item4</a></li>
</ul>
<ul>TIP: It is helpful to place parenthesis arournd the element that will be repeated so that you can see what is muliplied:
<li id="myID1" class="myClass"></li>
<li id="myID2" class="myClass"></li>
<li id="myID3" class="myClass"></li>
<li id="myID4" class="myClass"></li>
</ul>
<div class="myclass"></div>
<div class="myclass"></div>
<div class="myclass"></div>
<div class="myclass"></div>
<img src="" alt="">
<link rel="stylesheet" href="">
<div>
<p></p>
</div>
<div>
<p></p>
<img src="" alt="">
</div>
<div class="row">
<div class="col-sm-3"></div>
<div class="col-sm-3"></div>
<div class="col-sm-3"></div>
<div class="col-sm-3"></div>
</div>
<ul>
<li><a href=""></a></li>
<li><a href=""></a></li>
<li><a href=""></a></li>
<li><a href=""></a></li>
<li><a href=""></a></li>
</ul>
NOTE: Notice how the cursor is automatically placed in the first href attribute. How cool is that!!!
<nav>
<ul>
<li><a href=""></a></li>
<li><a href=""></a></li>
<li><a href=""></a></li>
<li><a href=""></a></li>
</ul>
</nav>
<div class="container">
<div class="jumbotron"></div>
</div>
<div class="container"></div>
NOTE: The three climb-up operators (^^^) basically said "climb-up" three levels and add an element at the same level. Same for the second climb-up operator. Climb-up two level and addan element at the same level.
Instead of standard element names, Emmet CSS uses abbreviations.
Type a Emmet command and then press the TAB key.(e.g., table)
padding: ;
NOTE: It has to be in a style element; otherwise you will get a paragraph.
margin: ;
NOTE: To add individual padding or margin, type pt for padding-top: ; , pr for padding-right: ; , pb for padding-bottom: ; , and pl for padding-left: ;. The same holds true for margins.
padding: 10px;
padding: 20px 0 20px 20px;
@font-face {
font-family:;
src:url();
@font-face {
font-family: 'FontName';
src: url('FileName.eot');
src: url('FileName.eot?#iefix') format('embedded-opentype'),
url('FileName.woff') format('woff'),
url('FileName.ttf') format('truetype'),
url('FileName.svg#FontName') format('svg');
font-style: normal;
font-weight: normal;
}
@media screen {
}
<div>
<ul>
<li>Line Item 1</li>
<li>Line Item 2</li>
<li>Line Item 3</li>
<li>Line Item 4</li>
</ul>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempore itaque officia atque, delectus
architecto magni tenetur, perspiciatis velit, necessitatibus dolore quo aspernatur earum expedita.
Veniam, quibusdam, fuga. Maxime, eaque, voluptas!</p>
<p>Exercitationem quasi soluta quidem voluptatibus, tempore necessitatibus velit laborum, reiciendis
maiores illo animi accusantium vitae laboriosam est in hic cumque iste quas. Ipsum saepe, pariatur cupiditate
deleniti! Neque earum, culpa.</p>
<p>Accusamus laboriosam dolorem animi? Eum commodi repellendus odio quod facere. Omnis possimus
impedit error alias odit. Laborum repellat, esse fuga animi facere quaerat praesentium libero eveniet.
Corrupti necessitatibus, velit odit.</p>
<p>Provident laborum est non explicabo maiores itaque voluptate voluptas unde. Ducimus fuga aliquam
saepe vel cum laboriosam dolore ab, accusamus doloribus error, distinctio laudantium quia! Culpa id iure
vero natus.</p>
</div>
Press exclamation mark (!) and then the TAB key to create the HTML framework elements. How cool is that!!!
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
</body>
</html>
Go to Emmet Document for a complete listing.
The Snippets Panel (Window > Snippets or CTRL+F9) can be used to create your own reusable code within any file or you can use the host of snippets that comes with Dreamweaver.
BIG TIP: You can rename a Trigger Key in the Snippets panel and then use it like an Emmet command in the Code View. (e.g., bsa for Bootstrap Accordion)
Libraries items can be used to create reusable assets that can be used across files
Instead of using a third-party FTP Client program, you can do FTP from within Dreamweaver to save you time not have to move back and forth between two applications.
Behaviors are pre-defined JavaScript code that performs varies actions (e.g., swap image) when they are triggered by an event (e.g., mouse over). Below are the steps to apply an image to a page:
Dreamweaver offers more than a dozen built-in behaviors that can be accessed from the Behaviors panel by selecting Window > Behaviors or SHIFT+F4. You can also download behaviors for free or for a small fee. Below are some functionalities that a behavior can do:
The triggering elements often involves a hyperlink applied to a range of text or to an image which may need a dummy link (#) in order for it to work correctly.
Multiple behaviors can be applied to the same trigger. For example, you can swap one image with another and change the image caption at the same time.
EXAMPLE: SWAP IMAGE BEHAVIOR:
Creating personalized content is very important to make an immediate connection with the reader, and hopefully increase your success rates with email marketing.
You can now use the Campaign extension for Dreamweaver to create personalized email campaigns. To get started:
If you use Dreamweaver to create email campaigns, you can now go a step further and add personalized content (such as the reader's name, or a personalized call to action) using data from Adobe Campaign.
Dreamweaver automatically syncs up with Campaign so that your content changes in Dreamweaver are available for you in Campaign. All you then have to do is enter an email address, and send a personalized campaign to your email recipient.
For more information, see Create personalized email campaigns.
The Insert Panel (Window > Insert or CTRL+F2) can be used to insert a host of different types of elements and Frameworks:
Frameworks can be used to simplify the process of creating complex pages.
* To select a different version of BootStrap, select Site > New Site and then click on the Bootstrap tab on the left and then select the BootStrap version (3.4.1 and 4.3.1)from the drop-down menu.
The CSS Designer Panel can be used to interactive edit CSS elements on the page.
See CSS Properties for more detail on how to set CSS properties in the CSS Designer panel
Templates can be used to make updating pages easier. You can also use the general and Bootstrap starter templates.
Media Queries can be created in Dreamweaver interactively from the Media Queries ribbon.
TIP: You can set a breakpoint before adding grid so that Dreamweaver will write the correct grid class (md / lg)
See CSS Media Queries for details on how to create media queries.
Dreamweaver supports common CSS preprocessors (e.g., Sass, Less, and SCSS) to save time and create cleaner CSS code.
For more information, see Using CSS preprocessors in Dreamweaver.
See LESS Preprocessors for more details
See SASS Preprocessors for more details
You can use Dreamweaver to connect to most database application from within Dreamweaver.
You can use Git to manage version control and collaboration. See Using Git in Dreamweaver for more details.
Git is an open source version control system that can be used to manage your files, including source code from within Dreamweaver without using a third party application.
You can also use Git:
The Files panel supports a new Git view that allows you to manage the untracked, modified, staged, and committed files associated with your site.
The Git panel (Windows > Git) include:
As a web developer, you can:
Right-click on the code and choose Refactor from the menu and select:
For more information, see How to write and edit code in Dreamweaver.