Class and ID attributes

CSS classes and IDs are enclosed in parentheses (). just after phrase modifiers or block modifiers.

Textile example: Class and ID attributes

p(my-class). This paragraph that has a class and this _(#special-phrase)emphasized phrase_ has an id.

Textile input (editable)

Browser output

HTML output

More about: Class and ID attributes

1. An id attribute on a paragraph:

p(#my-paragraph). This is a paragraph that has an @id@.

2. Both a class and an id attribute on a paragraph:

p(myclass#myid). This paragraph has both a @class@ and an @id@.

3. An emphasized phrase with an id attribute:

This *(#special-phrase)emphasized phrase* has an @id@.

See something wrong in this page? Outdated info, a broken link, faulty code example, or whatever? Please write an issue and we’ll fix it.