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

Chapter 3. Basic (X)HTML Structure > Creating Inline Spans

Creating Inline Spans

While you can organize big chunks of your Web page into head and body sections, into divisions, or even with headers (h1, h2, etc.), you can name smaller chunks or spans of text or other inline elements in order to identify them and apply styles to them.

To name inline spans

1.
At the beginning of the inline content, type <span.

2.
If desired, type id=“name”, where name uniquely identifies the spanned content.

3.
If desired, type class=“name”, where name is the identifying name of the class that the spanned content belongs to.

4.
Type > to complete the opening span tag.

5.
Create the inline contents you wish to name.

6.
At the end of the span, type </span>.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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