June 2015
Beginner
354 pages
8h 23m
English
Before adding the complicated game logic to our matching game, let's prepare the HTML game structure and all the CSS styles:
matchgame.js inside the js folder.index.html file with the following HTML code:<!DOCTYPE html> <html lang="en"> <head> <meta charset=utf-8> <title>CSS3 Matching Game</title> <link rel="stylesheet" href="css/matchgame.css" /> </head> <body> <header> <h1>CSS3 Matching Game</h1> </header> <section id="game"> <div id="cards"> <div class="card"> <div class="face front"></div> <div class="face back"></div> </div> <!-- .card --> </div> <!-- #cards --> </section> <!-- #game --> <footer> <p>This is an example of ...
Read now
Unlock full access