💻
NoVariety Documentation
  • Overview
  • ROBLOS Documentation
    • Terminal Language
    • Coding Language
  • ROBLOS Website Creator
    • AppInstaller Files
    • HTML Interpreter
    • CSS Interpreter
      • position
      • size
      • anchor-point
      • layout-order
      • text-scale
      • text-wrap
      • color
      • background-color
      • background-transparency
      • border-size
      • border-color
      • rotation
      • visible
      • content
    • LUAScript
      • download
        • commit
      • Player
      • DOM
        • Document
          • title
          • setTitle
          • getTitle
          • addEventListener
          • removeEventListener
          • dispatchEvent
          • createNode
          • querySelector
          • getElementById
          • cloneNode
        • Elements
          • getElementById
          • getElementsById
          • querySelector
          • querySelectorAll
          • appendChild
          • insertBefore
          • removeChild
          • insertAttribute
          • removeAttribute
          • cloneNode
        • Window
          • Location
            • reload
            • to
            • teleport
          • localStorage
            • setKey
            • getKey
            • deleteKey
            • getKeys
          • alert
          • input
      • delay
      • setTimeout
      • setInterval
      • clearInterval
      • MarketPlace
        • promptGamepass
        • promptProductPurchase
        • promptPurchase
        • hasGamepass
        • hasAsset
        • purchaseSuccess
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. ROBLOS Website Creator
  2. LUAScript
  3. DOM

Elements

PreviouscloneNodeNextgetElementById

Last updated 1 year ago

Was this helpful?

An element is a part of a webpage. In and , an element may contain a data item or a chunk of text or an image, or perhaps nothing. A typical element includes an opening tag with some , enclosed text content, and a closing tag.

Example: in <p class="nice">Hello world!</p>, '<p class="nice">' is an opening tag, 'class="nice"' is an attribute and its value, 'Hello world!' is enclosed text content, and '</p>' is a closing tag.

Elements and are not the same things. Tags begin or end an element in source code, whereas elements are part of the , the document model for displaying the page in the .

Functions
Documentation

getElementById

getElementsById

querySelector

querySelectorAll

appendChild

insertBefore

removeChild

insertAttribute

removeAttribute

cloneNode

getElementById
getElementsById
querySelector
querySelectorAll
appendChild
insertBefore
removeChild
insertAttribute
removeAttribute
cloneNode
XML
HTML
attributes
tags
DOM
browser