• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 2. CSS Basics > Creating Your Own Block-Level HTML Tags

Creating Your Own Block-Level HTML Tags

In the preceding section, you saw how you could create your own tag from scratch that could be nested within other tags: an inline tag. But you often need to be able to set up a "block" that separates itself from other content in the document (Figure 2.20).

Figure 2.20. The title for the page has been placed in red letters in a block with a black background, while the content for the page is in the block with a gray background.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint