Git Product home page Git Product logo

lecture-exercise-document-object-model-manipulation's Introduction

The Document Object Model (DOM) & DOM Manipulation Exercise

Getting STarted

  1. Make sure you have forked this github Repo to your GitHub account.

    You can do this by clicking the "Fork" button in the top right corner of this page.

    https://github.com/olitreadwell/lecture-exercise-document-object-model-manipulation

  2. Open the forked repo in your browser.

  3. Open a codespace for the forked repo.

    You can do this by clicking the blue "Code" button

    Choosing the 'Codespaces' tab

    Clicking the "New codespace" or "+" button

  4. We will be working in the index.html file, initially.

  5. Open the index.html file in the file explorer.

  6. Open a preview of the index.html file in a new browser tab.

    You can do this by right-clicking on the index.html file in the file explorer and selecting "Open Preview".

    In the bottom right corner of the preview window, click the "Open Browser" button.

    This will open a new browser tab with the index.html file loaded.

    Or you in the bottom bar of your local or in-browser editor, you can click the Port 3000 button and choose the Live Preview: Open in External Browser option.

Activities

  1. Where should we include styles.css & script.js?

  2. View the HTML site in the Chrome DevTools and better understand how the DOM is like a Tree

  3. Change the URL for an HTML image using the Chrome DevTools Elements Window

  4. Select an HTML element using getElementById()

  5. Select an HTML element using querySelector()

  6. Store an HTML element in a variable

  7. Change the text of an HTML element using innerText

  8. Change the style of an HTML element using style

  9. Remove an HTML element using remove()

  10. Add an HTML element using appendChild()

lecture-exercise-document-object-model-manipulation's People

Contributors

olitreadwell avatar

Watchers

 avatar  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.