GithubHelp home page GithubHelp logo

accessing-the-dom's Introduction

Accesing Elements with the Document Object Model in JavaScript

The DOM

  • The Document Object Model (DOM) is a programming interface and representation of a structured document. In the context of web development, the DOM specifically refers to the hierarchical, tree-like structure that represents HTML. It provides a way for programs to interact with and manipulate the content, structure, and style of web documents.

Components of the DOM

  1. Dynamic Interaction: Developers can use JavaScript to access, modify, and manipulate elements and content in the DOM dynamically. This enables the creation of interactive and dynamic web pages without requiring full page reloads.

  2. Model for Programming: The DOM provides a set of objects, properties, and methods that allow developers to programmatically interact with elements. It serves as a bridge between the static HTML content and the dynamic behavior of web applications.

  3. Representation of State: The DOM represents the current state of the web page, and changes made to the DOM are reflected visually in the rendered page. This is the basis for creating real-time updates and interactive user experiences.

Activities

  1. Open and review the website 1 folder in this repo. You can open it in the browser to see how it is structured. Complete the exercises in the scripts.js file.
  2. Open and review the website 1 folder in this repo. You can open it in the browser to see how it is structured. Complete the exercises in the scripts.js file.

accessing-the-dom's People

Contributors

lhack47 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.