There are other tags that can be used to format text, a limited sample of which are given below. Note again that these describe what the content between the opening closing tags is; what it looks like is immaterial, in this context.
- specifies that a line of text represents code.
- specifies that a word is defined inline (to be useful, the opening
dfntag requires a
titleattribute with its value set to the definition of the term)
- specifies that the word is an abbreviation; same requirements as
- defines deleted text
- defines a short quotation
- defines superscript text, such as for a footnote
- defines subscript text
Finally, note that all of these tags must be nested inside another that provides a context for the block of text as a whole: typically
<p>, although there are many other possibilities.
Feel free to experiment with the above, but try to use them in the context of real-world examples – i.e. find a short quotation from a book and use the
<q> tag around it, rather than using elements to “see what they look like”.