Week 2: Intro to HTML and JavaScript
- Due Apr 9, 2020 by 11am
- Points 0
In Introduction to HTML and JavaScript Links to an external site., I recommend that you do the lessons in this order:
• Do Lesson 2 Links to an external site., then try making a simple HTML page of your own. It doesn't need to be fancy or beautiful, but at least try to make the text in the Web page look the way you want it to look.
• Do Lesson 1
Links to an external site., and make some changes in the script to get your Web page to print different things to the JavaScript console. Note that the script runs automatically when the window has loaded. Here are a couple experiments you might want to try, to get slightly different behaviors. 1) Research the <button>
Links to an external site. tag online, and see if you can make a JavaScript function that runs when you click on a button in your Web page. 2) Research the document.getElementById()
Links to an external site.
method and a paragraph element's innerHTML
Links to an external site. property, to see if you can make your JavaScript print something in the Web page window instead of in the console.
• Do lessons 3, 4, and 6. (Lesson 5 is pretty advanced, and might be too nerdy for you at this point, but go ahead and do it if you want. Lesson 7 is inessential, but feel free to do it if you want.)
• Try doing some of the tasks in lesson 8 as a form of self-test.
Please post any questions you have to the Discussions board, as your peers will likely have similar questions, and the answers can be made public this way. If you know the answer to one of your peers' questions, please feel free to respond!