We have two classes with the word “summary” in their names. The first, located near the top of the style menu in MDN’s editor (unfortunately) is called “summary”. This class was added to support the now-defunct Zone system, and allowed marking a paragraph to be rendered in somewhat larger text, with some form of border. The first one on the page got pulled up and drawn in a special space in the zone’s header area. That’s all it was meant to be used for, really.
Unfortunately, people confuse it with the other class with “summary” in its name: “seoSummary”. This one is used to demarcate the page’s summary or description metadata, which is used in many ways:
- When Google indexes the page, the “seoSummary” text is given to Google as the page description, and is therefore presented to users on search engine result pages.
- MDN’s KumaScript macros that generate links, such as
{{domxref}}
,{{HTMLElement}}
,{{cssxref}}
, and{{jsxref}}
use the SEO summary as the value of the link’stitle
attribute, thereby adding a tooltip to the link in most browsers. - Similarly, the sidebar generating macros, such as
{{APIRef}}
and{{ToolsSidebar}}
use the SEO summary to add tooltips to the links they contain. - Macros that automatically construct menus and landing pages, such as
{{LandingPageListSubpages}}
,{{SubpagesWithTags}}
, and{{SubpageMenuByCategories}}
, use the SEO summary as the contents of the<dd>
element in each<dt>
/<dd>
pairing.
Because of the similarities in the names of these classes, the fact that both are in the style menu, and the one that should be used exactly once on every single page is at the bottom of the style menu, we find pages being created using “Summary” rather than “SEO Summary”. We need to figure out a way to mitigate this problem.
The first and most obvious idea I had was simply to move the “SEO Summary” option in the style menu up to near the top, and the “Summary” one much farther down.
I also think we should rename the “Summary” option to something more like “Blurb” or “Featured Paragraph”.
Opinions, please?
Sheppy