Confirmed users
104
edits
(Port style guide from www.mozilla.org to wiki so it's not exiled to the archives.) |
|||
| Line 41: | Line 41: | ||
'''Anchors should not be empty.''' They should enclose some relevant fragment of text. For example, to create an anchor for a section add the id attribute to the enclosing section or div tag (if there is one) or to the heading tag itself (if there isn't). If this is done right, styling the anchoring element can be a meaningful and useful styling. | '''Anchors should not be empty.''' They should enclose some relevant fragment of text. For example, to create an anchor for a section add the id attribute to the enclosing section or div tag (if there is one) or to the heading tag itself (if there isn't). If this is done right, styling the anchoring element can be a meaningful and useful styling. | ||
== | == Code == | ||
=== Code Format === | === Code Format === | ||