Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

Cruisin’ with style...

It’s time for another test drive, so reload your “index.html” file again. This time you’ll see the Starbuzz Web page has a whole new look.

image with no caption
image with no caption

Who Does What?

Even though you’ve just glanced at CSS, you’ve already begun to see what it can do. Match each line in the style definition to what it does.

image with no caption

There are no Dumb Questions

Q:

Q: CSS looks like a totally different language than HTML. Why have two languages? That’s just more for me to learn, right?

A:

A: You are quite right that HTML and CSS are completely different languages, but that is because they have very different jobs. Just like you wouldn’t use English to balance your checkbook, or Math to write a poem, you don’t use CSS to create structure or HTML to create style because that’s not what they were designed for. While it does mean you need to learn two languages, you’ll discover that because each language is good at what it does, this is actually easier than if you had to use one language to do both jobs.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial