In this lab, I created my version of the game Rock, Paper, Scissors. First off, I created my HTML, CSS, and Javascript files. The <body>, <html>, <head>, <title>, and <meta> tags have been created in the HTML file. I typed in <link rel="stylesheet" type="text/css" href="Lab_17.css"> inside the <head> tags and <script src="Lab_17.js" type="text/javascript"></script> inside the <body> tags to link my CSS and JavaScript files to my HTML file. Inside the <body> tags, I typed in my name, date, and lab number for the heading of the lab with <div id="header"><h1>Lab 17</h1><h2>Wei Jian Zhen</h2><h3>12/24/2019</h3></div>. Next I built the game with <div> tags which inside it, has <p> tags and <img> tags that display the game. One side is for the human player and the other is for the computer player. Knowing how to build games is useful to a web designer in case he or she wants to make a gaming website.
Link: http://techteach.us/Web2020/ZWeiJian/WCP/Labs/Lab_17/Lab_17.html
No comments:
Post a Comment