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

Chapter 2. CSS Basics > Creating Your Own Inline HTML Tags

Creating Your Own Inline HTML Tags

You have already seen how you can change the way that HTML tags work using CSS. Yet almost all HTML tags contain some existing properties that you either have to accept or redefine (see "Managing Existing or Inherited Property Values" later in this chapter). For example, the <b> tag automatically behaves as if "font-weight: bold" has been set.

What do you do if you want to start from scratch? Although you can't create your own HTML tags per se, you can use either the <span> or <div> tag, along with classes and IDs, to get close.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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