Skip to Content
Adobe® Dreamweaver® CS4 Bible
book

Adobe® Dreamweaver® CS4 Bible

by Joseph Lowery
March 2009
Beginner to intermediate
1321 pages
46h 24m
English
Wiley
Content preview from Adobe® Dreamweaver® CS4 Bible
140
Part I
Laying the Groundwork in Dreamweaver CS4
Indent control options
Indenting your code generally makes it more readable. Dreamweaver defaults to indenting most
HTML tags with two spaces, giving extra indentation grouping to tables and frames. All these
parameters can be altered through the Code Format category of the Preferences dialog box.
The first indent option enables indenting, and you can switch from spaces to tabs. To permit indent-
ing, make sure a checkmark is displayed in the Indent checkbox. If you prefer your code to be dis-
played flush left, turn off the Indent option altogether.
To use tabs instead of the default spaces, select Tabs from the drop-down list. If you anticipate trans-
ferring your code to a word-processing program for formatting and printing, you should use tabs;
otherwise, stay with the default spaces.
Dreamweaver formats both tables and frames as special indentation groups. Within each of these
structural elements, the related tags are indented (or nested) more than the initial two spaces. As
you can see in Listing 4-1, each table row (
<tr>) is indented within the table tag, and the table data
tags (
<td>) are nested within the table row.
LISTING 4-1
An Indented Code Sample
<table border=”1” width=”75%”>
<tr>
<td>Row 1, Column 1</td>
<td>Row 1, Column 2</td>
<td>Row 1, Column 3</td>
</tr>
<tr>
<td>Row 2, Column 1</td>
<td>Row 2, Column 2 </td>
<td>Row ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Adobe® Dreamweaver® CS5 Bible

Adobe® Dreamweaver® CS5 Bible

Joseph W. Lowery
Dreamweaver® CS3 Bible

Dreamweaver® CS3 Bible

Joseph W. Lowery
Dreamweaver CS6 Bible

Dreamweaver CS6 Bible

Joseph W. Lowery

Publisher Resources

ISBN: 9780470382523Purchase book