Day 66 of 100DaysOfSpec, blockquote and ol elements
I am reading and taking notes on the HTML specifications for 100 days as part of #The100DayProject. Read the initial intent/backstory. I am a Microsoft employee but all opinions, comments, etc on this site are my own. I do not speak on behalf of my employer, and thus no comments should be taken as representative of Microsoft’s official opinion of the spec. Subsections not listed below were read without comment.
Currently reading in 4.4 Grouping content
UAs = user agents = browsers and other HTML document parsers/renderers
4.4.4 The blockquote element
“The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a footer or cite element, and optionally with in-line changes such as annotations and abbreviations.”
How that ends up looking, in code:
There’s some more examples you should consider perusing, but those are some super basic cases.
- “Another source” can be text from the same page by another person. For example, when you’re snarkily responding to someone else’s comment and would like to refrence their opinions directly in your comment.
- The optional
citeattribute is a valid URL to the original source, and is mainly for “private use”, though it can be surfaced by UAs if they desire.
- You can abbreviate, annotate, etc. but all notes about how you’ve changed the quote (“emphasis mine”, for example) go INSIDE the blockquote element. I suppose this helps keep the notations attached to the content if it gets parsed in interesting ways.
4.4.5 The ol element
- Considered palpable content if the element has at least one
- Can contain as direct children
liand script-supporting elements.
- Besides global HTML attributes, you can set
start(what value to start counting items at, default is “1”),
- Quite a few ARIA role attributes available besides the default
tree. Get specific with your list semantics!
- Should note for those that don’t know: you can set a value attribute on a list item inside an
olelement and disrupt the natural (ordinal) counting value. (1,2,3,4,500 or 10, 9, 8, 7.5…)
- The values for the type attribute are very shorthand:
type="1"for decimal numbering (1., 2., 3.) or
type="a"for lowercase alphabetical (a., b., c.), for example.