Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HTML5 Game
- HTML: Interface
- Javascript: Logic
- Softwares:
- Google Chrome: https://www.google.com/intl/en/chrome/browser/
- Notepad++: http://notepad-plus-plus.org/download/
- HTML Elements
- text: span <span> TEXT </span>
- container: div <div> CONTENT </div>
- button: button <button> TEXT </button>
- link: a <a> TEXT </a>
- canvas: canvas <canvas>
- image: img <img>
- break-line: br <br>
- input: input <input>
- HTML Attributes:
- id
- style
- href <a> only
- src <img> only
- <div> CONTENT </div>
- <div attr="value" attr2="value2"> CONTENT </div>
- <a href="http://rainingchain.com/">RainingChain.com</a>
- <img src="https://mdn.mozillademos.org/files/3563/HTML5_Logo_128.png">
- HTML Style
- text (div, span, button, a)
- font:20px Arial;
- color:red;
- text-decoration:underline
- font-weight:bold;
- text-align:center;
- <span style=" attr:value; attr2:value2; "> TEXT </span>
- <span style=" font:20px Arial; color:red; text-decoration:underline; font-weight:bold; "> TEXT </span>
- <button style=" font:20px Arial; color:red; text-decoration:underline; font-weight:bold; "> TEXT </button>
- <div style="text-align:center;">
- <span style="color:red; font:30px Arial; font-weight:bold;">Game Over</span>
- <br>
- <span style="font:20px Arial;">Score: 123</span>
- <br>
- <br>
- <button>Play again</button>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement