When not to use inline markup
In some contexts it does not make sense to tag everything that you can with inline markup. Use the semantics of the context to determine whether to apply tagging. The following table provides some examples:
Case |
Wrong |
Right |
1 |
<userinput><option>132</option></userinput> |
<userinput>132</userinput> |
2 |
<userinput><cmdname>cd</cmdname> <filepath>/usr/bin</filepath></userinput> |
<userinput>cd /usr/bin</userinput> |
3 |
<title>How to use the <cmdname>grep</cmdname> command</title> |
<title>How to use the grep command</title> |
Case 1The semantics of userinput override the semantics of option. The fact that 132 is an option is irrelevant to the purpose of the instruction; namely, that the user is to type 132 into some field.
Case 2The semantics of userinput override the semantics of cmdname and filepath. The fact that cd is the name of a command and that /usr/bin is a filepath doesn't matter because all we want to do is to tell the user to type cd /usr/bin into some field.
Case 3A purpose of a title is to help readers find content. Involved semantic tagging of title content does nothing to help readers find content faster. inline tags that make sense within title include sup for superscript, sub for subscript, or inline elements that have content provided through conref.