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
  • PrintPrint

Workshop

The Workshop has quiz questions and exercises to help you put to use what you just learned. If you get stuck, the answers to the quiz questions are in the next section. But try to answer them first. Otherwise, you’ll be cheating yourself.

Quiz

1. What is the difference between a <span> tag and a <div> tag?

2. What are the two main methods used to make new styles, classes, and IDs you have been introduced to?

3. What is the benefit of moving styles to an external style sheet?

Answers

1. The <span> tag is an inline tag, meaning that if it’s applied to content in a line, the content stays on the same line. The <div> tag, on the other hand, is a block tag, meaning it creates a new block or line that the content it wraps is placed on. For this reason, <span> is used to highlight words or elements, whereas <div> is used to group sections.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

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

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint