The page-type front matter key
The page-type
front matter key describes the type of an MDN page.
This allows MDN content tools to better automate content checking and sidebar organization.
Like any other front matter key, the page-type
key is specified in the YAML at the start of "index.md":
md
---
title: Geolocation.getCurrentPosition()
slug: Web/API/Geolocation/getCurrentPosition
page-type: web-api-instance-method
browser-compat: api.Geolocation.getCurrentPosition
---
Each main area of the site — JavaScript, CSS, and so on — has a set of domain-specific page-type
values, and there is also a set of generic values that can appear in any area of the site.
Generic page types
These page types are not specific to a particular MDN technology area:
guide
: a generic guide page with no specific structure. See Conceptual page.landing-page
: a page that acts primarily as a navigation aid, listing links to other pages. See Landing page.how-to
: a page that acts primarily as a goal-oriented how-to article.tutorial
: a page that is the overview page of a learning-oriented article.tutorial-chapter
: a page that is a part of a multipart tutorial.
Domain-specific page types
This section lists page types that are specific to a single area of MDN.
Learning Area page types
This section lists page-type
values for pages under Learn. Every page in that part of the tree must have a page-type
, and its value must be one of those listed below or one of the generic page type values.
learn-topic
: an overview of a topic, that is, a collection of modules like CSS.learn-module
an overview of a module, that is, an ordered collection of guides, like Introduction to HTML.learn-module-chapter
a guide that is part of a module, like Mobile accessibility.learn-module-assessment
a special guide with an activity allowing to assess the comprehension of a module or a part of it, like Test your skills: basic controls.learn-faq
: the answer to a specific question about web development, like What is a domain name?.
Accessibility page types
This section lists page-type
values for pages under Web/Accessibility. Every page in that part of the tree must have a page-type
, and its value must be one of those listed below or one of the generic page type values.
CSS page types
This section lists page-type
values for pages under Web/CSS. Every page in that part of the tree must have a page-type
, and its value must be one of those listed below or one of the generic page type values.
css-at-rule
: an at-rule, like@charset
.css-at-rule-descriptor
: an at-rule descriptor, like@counter-style/prefix
.css-combinator
: a combinator, like the descendant combinator.css-function
: a function, likemax()
.css-keyword
: a keyword, likeinherit
.css-media-feature
: a media feature, likehover
.css-module
: a module, like CSS Animations.css-property
: a property, likebackground-color
.css-pseudo-class
: a pseudo-class, like:enabled
.css-pseudo-element
: a pseudo-element, like::before
.css-selector
: a basic selector, like the class selector.css-shorthand-property
: a shorthand property, likebackground
.css-type
: a data type, like<color>
.
Glossary page types
This section lists page-type
values for pages under Glossary. Every page in that part of the tree must have a page-type
, and its value must be one of those listed below.
glossary-definition
: a page defining a term, like Bézier curve.glossary-disambiguation
: a page providing links to two or more definition pages for an ambiguous term, like Node.
HTML page types
This section lists page-type
values for pages under Web/HTML. Every page in that part of the tree must have a page-type
, and its value must be one of those listed below or one of the generic page type values.
html-attribute
: an HTML attribute, likeautocomplete
.html-attribute-value
: a single value for an HTML attribute, likedns-prefetch
.html-element
: an HTML element, like<button>
.
HTTP page types
This section lists page-type
values for pages under Web/HTTP. Every page in that part of the tree must have a page-type
, and its value must be one of those listed below or one of the generic page type values.
http-csp-directive
: a CSP directive, likescript-src
.http-cors-error
: a CORS error, likeCORSDidNotSucceed
.http-permissions-policy-directive
: aPermissions-Policy
directive, likeaccelerometer
.http-header
: an HTTP header, likeReferer
.http-method
: an HTTP request method likeGET
.http-status-code
: an HTTP response status code, like404
.
JavaScript page types
This section lists page-type
values for pages under Web/JavaScript. Every page in that part of the tree must have a page-type
, and its value must be one of those listed below or one of the generic page type values.
javascript-class
: a definition of a built-in object, likeArray
.javascript-constructor
: an object constructor, likeArray()
.javascript-error
: an error, like RangeError: invalid array length.javascript-function
: a built-in function that isn't an object method, likeencodeURI()
.javascript-global-property
: a global property likeNaN
.javascript-instance-accessor-property
: an accessor property on an object instance, likeMap.prototype.size
.javascript-instance-data-property
: a data property on an object instance, like thelength
property ofArray
.javascript-instance-method
: a method on an object instance, likeArray.prototype.at()
.javascript-language-feature
: a part of JavaScript syntax not fitting into another category, like rest parameters.javascript-namespace
: an object that is not instantiable and has only static members, likeMath
.javascript-operator
: an operator, like Addition (+).javascript-statement
: a statement, likeswitch
.javascript-static-accessor-property
: a static accessor property, likeRegExp.lastMatch
.javascript-static-data-property
: a static data property, likeMath.E
.javascript-static-method
: a static method, likeArray.from()
.
MathML page types
This section lists page-type
values for pages under Web/MathML. Every page in that part of the tree must have a page-type
, and its value must be one of those listed below or one of the generic page type values.
SVG page types
This section lists page-type
values for pages under Web/SVG. Every page in that part of the tree must have a page-type
, and its value must be one of those listed below or one of the generic page type values.
svg-attribute
: an SVG attribute, likecrossorigin
.svg-element
: an SVG element, like<circle>
.
Web API page types
This section lists page-type
values for pages under Web/API. Every page in that part of the tree must have a page-type
, and its value must be one of those listed below or one of the generic page type values.
web-api-overview
: gives an overview of a Web API, like the Fetch API.web-api-global-function
: a global function, likefetch()
.web-api-global-property
: a global property, likeorigin
.web-api-interface
: a Web API interface, likeRequest
.web-api-constructor
: a constructor, likeRequest()
.web-api-instance-method
: an instance method, likecache.add()
.web-api-instance-property
: an instance property, likerequest.headers
.web-api-static-method
: a static method, likeResponse.error()
.web-api-static-property
: a static property, likeNotification.permission
.web-api-event
: an event, likeNotification.click
. See API reference subpage.webgl-extension
: a WebGL extension, likeWEBGL_draw_buffers
.webgl-extension-method
: a WebGL extension method, likeOES_vertex_array_object.bindVertexArrayOES()
.
WebAssembly page types
This section lists page-type
values for pages under WebAssembly/. Every page in that part of the tree must have a page-type
, and its value must be one of those listed below or one of the generic page type values.
webassembly-function
: a global function, that is a method directly under theWebAssembly
object that acts as a namespace, likeWebAssembly.instantiate()
.webassembly-constructor
: a constructor, likeWebAssembly.Exception()
.webassembly-interface
: a WebAssembly interface, likeWebAssembly.LinkError
.webassembly-instance-property
: an instance property, likeWebAssembly.Instance.exports
.webassembly-instance-method
: an instance method, likeWebAssembly.Exception.getArg()
.webassembly-static-method
: a static method, likeWebAssembly.Module.exports()
.webassembly-instruction
: an instruction, or a set of instructions, likeWrap
.
WebDriver page types
This section lists page-type
values for pages under Web/WebDriver. Every page in that part of the tree must have a page-type
, and its value must be one of those listed below or one of the generic page type values.
webdriver-command
: a webdriver command, likeCloseWindow
.webdriver-capability
: a webdriver capability, likeacceptInsecureCerts
.webdriver-error
: a webdriver error, like Insecure certificate.
WebExtensions page types
This section lists page-type
values for pages under Mozilla/Add-ons/WebExtensions. Every page in that part of the tree must have a page-type
, and its value must be one of those listed below or one of the generic page type values.
webextension-api
: a WebExtension API, likealarms
.webextension-api-event
: a WebExtension API event, likeaction.onClicked
.webextension-api-function
: a WebExtension function, likeaction.setBadgeText()
.webextension-api-property
: a WebExtension property, likebrowserSettings.openBookmarksInNewTabs
.webextension-api-type
: a WebExtension type, likecontextualIdentities.ContextualIdentity
.webextension-manifest-key
: a WebExtension manifest key, likeuser_scripts
.
Web Manifest page types
This section lists page-type
values for pages under Web/Manifest. Every page in that part of the tree must have a page-type
, and its value must be one of those listed below or one of the generic page type values.
web-manifest-member
: a member of a manifest, likedescription
.
XPath page types
This section lists page-type
values for pages under Web/XPath. Every page in that part of the tree must have a page-type
, and its value must be one of those listed below or one of the generic page type values.
xpath-function
: a function, likeceiling()
XSLT page types
This section lists page-type
values for pages under Web/XSLT. Every page in that part of the tree must have a page-type
, and its value must be one of those listed below or one of the generic page type values.
xslt-element
: an element of XSLT, like<xsl:message>
.xslt-axis
: an axis of XSLT, likeancestor
.
EXSLT page types
This section lists page-type
values for pages under Web/EXSLT. Every page in that part of the tree must have a page-type
, and its value must be one of those listed below or one of the generic page type values.
xslt-function
: a function of EXSLT, likeexsl:node-set()
.
Firefox page types
This section lists page-type
values for pages under Mozilla/Firefox. Every page in that part of the tree must have a page-type
, and its value must be one of those listed below or one of the generic page type values.
firefox-release-notes
: the release notes for a particular Firefox version, such as Firefox 115 for developers.