Giter VIP home page Giter VIP logo

m2-3-js--thedom-p1's Introduction

JavaScript - The DOM - P1

Setup

yarn install

Fundamentals

Starting today, there will be a fundamentals section in each workshop. Start by completing this section before moving on to the following exercises.

See the README.md for more information.


Exercise 1 - Creating DOM Nodes

In this exercise, we'll see how to create web pages using Javascript alone!

In the exercise-1 folder, there are the following files.

  • example.html (READ ONLY) This is the file that contains the HTML of a short webpage.
  • styles.css (READ ONLY) Some styles that are used in example.html
  • exercise.html (READ ONLY) This is the HTML file in which you will use JavaScript to recreate the HTML content from example.html
  • scripts.js This is where you will write the JS required to inject all of the HTML into exercise.html
  • assets Some images used in the example

Create the content of a webpage entirely with Javascript.

  1. Recreate the content structure from example.html.
  2. To do this, you are not allowed to modify any of the HTML files, only scripts.js should be modified.
  3. Once you've completed this, compare example.html and your exercise.html file using "Live Preview", you will notice that they look nothing alike.
  4. Add code to the scripts.js that will add a <link> to the styles.css in the <head> of exercise.html.

In other words: We'll start by recreating the HTML structure, without worrying about the styles. Once the HTML is correct, we'll add a <link> tag, which will add the relevant styles.

How do I do this?

You'll need to make extensive use of document.createElement!



๐ŸŸก - Minimally complete workshop (75%) - ๐ŸŸก

Exercise 2


๐ŸŸข - Complete workshop (100%) - ๐ŸŸข

m2-3-js--thedom-p1's People

Contributors

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