Prev | Current Page 15 | Next

Charles Wyke-Smith

"Stylin' with CSS: A Designer's Guide 2nd Edition"

gif" alt="a picture of my dog" />
This chapter focuses on XHTML and how to use it, but the most
important thing to know right now is this: XHTML de?¬? nes a
document??™s structure.
3. CSS (Cascading Style Sheets) enable you to de?¬? ne how each
marked-up element of your content is presented on the page. Is
that paragraph??™s font Helvetica or Times? Is it bold or italicized?
Is it indented or ?¬‚ ush with the edge of the page? CSS controls
the formatting and positioning of each of the content elements.
To format the size of the text in a paragraph, I might write
p {font-size: 12px;}
which would make the text 12 pixels high. Almost this entire
book is dedicated to teaching you CSS, but the most important
thing to know right now is this: CSS de?¬? nes a document??™s
presentation.
Strictly speaking, XHTML and CSS
aren??™t programming languages, but
mechanisms for marking up and
styling content respectively, so I am
using the term ???language??? in a general
way here.
This img tag also has two attributes
for the image source and alternative
text respectively??”see the sidebar
???What Are Attributes???? to learn more.
STYLIN??™ WITH CSS - CHAPTER 1 6
What Are Attributes?
Attributes can be added to a tag and can help further de?¬? ne that tag. Each
attribute comprises two parts: the attribute name and the attribute value, in
the format name="value".


Pages:
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27