Overview / Web Technology
Web technology reference for developers
HTML
Structure of content on the web
CSS
Code used to describe document style
JavaScript
General-purpose scripting language
HTTP
Protocol for transmitting web resources
Web APIs
Interfaces for building web applications
Web Extensions
Developing extensions for web browsers
Accessibility
Build web projects usable for all
Web Technology
Web technology reference for developers
Filter sidebar
In this articleDocument
activeElement
adoptedStyleSheets
alinkColor
Deprecatedall
Deprecatedanchors
Deprecatedapplets
DeprecatedbgColor
Deprecatedbody
characterSet
childElementCount
children
compatMode
contentType
cookie
currentScript
defaultView
designMode
dir
doctype
documentElement
documentURI
domain
Deprecatedembeds
featurePolicy
ExperimentalfgColor
DeprecatedfirstElementChild
fonts
forms
fragmentDirective
fullscreen
DeprecatedfullscreenElement
fullscreenEnabled
head
hidden
images
implementation
lastElementChild
lastModified
lastStyleSheetSet
Non-standard DeprecatedlinkColor
Deprecatedlinks
location
pictureInPictureElement
pictureInPictureEnabled
plugins
pointerLockElement
preferredStyleSheetSet
Non-standard Deprecatedprerendering
ExperimentalreadyState
referrer
rootElement
Deprecatedscripts
scrollingElement
selectedStyleSheetSet
Non-standard DeprecatedstyleSheets
styleSheetSets
Non-standard Deprecatedtimeline
title
URL
visibilityState
vlinkColor
DeprecatedxmlEncoding
DeprecatedxmlVersion
DeprecatedadoptNode()
append()
browsingTopics()
Experimental Non-standardcaretPositionFromPoint()
caretRangeFromPoint()
Non-standardclear()
Deprecatedclose()
createAttribute()
createAttributeNS()
createCDATASection()
createComment()
createDocumentFragment()
createElement()
createElementNS()
createEvent()
DeprecatedcreateExpression()
createNodeIterator()
createNSResolver()
DeprecatedcreateProcessingInstruction()
createRange()
createTextNode()
createTouch()
Non-standard DeprecatedcreateTouchList()
Non-standard DeprecatedcreateTreeWalker()
elementFromPoint()
elementsFromPoint()
enableStyleSheetsForSet()
Non-standard Deprecatedevaluate()
execCommand()
DeprecatedexitFullscreen()
exitPictureInPicture()
exitPointerLock()
getAnimations()
getElementById()
getElementsByClassName()
getElementsByName()
getElementsByTagName()
getElementsByTagNameNS()
getSelection()
hasFocus()
hasStorageAccess()
hasUnpartitionedCookieAccess()
importNode()
moveBefore()
ExperimentalmozSetImageElement()
Non-standardopen()
prepend()
queryCommandEnabled()
Non-standard DeprecatedqueryCommandState()
Non-standard DeprecatedqueryCommandSupported()
Non-standard DeprecatedquerySelector()
querySelectorAll()
releaseCapture()
Non-standardreplaceChildren()
requestStorageAccess()
requestStorageAccessFor()
ExperimentalstartViewTransition()
write()
Deprecatedwriteln()
afterscriptexecute
Non-standard Deprecatedbeforescriptexecute
Non-standard Deprecatedcopy
cut
DOMContentLoaded
fullscreenchange
fullscreenerror
paste
pointerlockchange
pointerlockerror
prerenderingchange
Experimentalreadystatechange
scroll
scrollend
scrollsnapchange
Experimentalscrollsnapchanging
Experimentalsecuritypolicyviolation
selectionchange
visibilitychange
BeforeUnloadEvent
DOMStringMap
ErrorEvent
HTMLAnchorElement
HTMLAreaElement
HTMLAudioElement
HTMLBRElement
HTMLBaseElement
HTMLBodyElement
HTMLButtonElement
HTMLCanvasElement
HTMLDListElement
HTMLDataElement
HTMLDataListElement
HTMLDialogElement
HTMLDivElement
HTMLDocument
HTMLElement
HTMLEmbedElement
HTMLFieldSetElement
HTMLFormControlsCollection
HTMLFormElement
HTMLFrameSetElement
DeprecatedHTMLHRElement
HTMLHeadElement
HTMLHeadingElement
HTMLHtmlElement
HTMLIFrameElement
HTMLImageElement
HTMLInputElement
HTMLLIElement
HTMLLabelElement
HTMLLegendElement
HTMLLinkElement
HTMLMapElement
HTMLMediaElement
HTMLMenuElement
HTMLMetaElement
HTMLMeterElement
HTMLModElement
HTMLOListElement
HTMLObjectElement
HTMLOptGroupElement
HTMLOptionElement
HTMLOptionsCollection
HTMLOutputElement
HTMLParagraphElement
HTMLPictureElement
HTMLPreElement
HTMLProgressElement
HTMLQuoteElement
HTMLScriptElement
HTMLSelectElement
HTMLSourceElement
HTMLSpanElement
HTMLStyleElement
HTMLTableCaptionElement
HTMLTableCellElement
HTMLTableColElement
HTMLTableElement
HTMLTableRowElement
HTMLTableSectionElement
HTMLTemplateElement
HTMLTextAreaElement
HTMLTimeElement
HTMLTitleElement
HTMLTrackElement
HTMLUListElement
HTMLUnknownElement
HTMLVideoElement
HashChangeEvent
History
ImageData
Location
MessageChannel
MessageEvent
MessagePort
Navigator
PageRevealEvent
PageSwapEvent
PageTransitionEvent
Plugin
DeprecatedPluginArray
DeprecatedPromiseRejectionEvent
RadioNodeList
UserActivation
ValidityState
Window
WorkletGlobalScope
Baseline Widely available
This feature is well established and works across many devices and browser versions. Itâs been available across browsers since March 2017.
The Document.dir
property is a string representing the directionality of the text of the document, whether left to right (default) or right to left. Possible values are 'rtl'
, right to left, and 'ltr'
, left to right.
A string.
Specifications Specification HTMLdir
global attribute.
This page was last modified on Apr 10, 2025 by MDN contributors.
View this page on GitHubâ¢
Report a problem with this contentRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3