HTML and CSS Reference
In-Depth Information
<meta charset='utf-8'>
<title>Card Battle</title>
<link rel="stylesheet" href="game.css">
<div class="row">
<h1>Card Battle!</h1>
<section id="game" class="row"> <!-- The game section starts -->
<div id="start-scene" class="scene">
<a href="#" id="start-btn" class="button"></a>
<div id="game-scene" class="scene out"></div>
<div id="gameover-scene" class="scene out won loss">
<p><a href="#" id="back-to-menu-button" class="button"></
</section> <!-- The game section ends -->
<section class='how-to-play row'>
<h2>How to Play?</h2>
<p>Pick one card and watch the battle result. Beat opponent
before you run out of HP.</p>
<div class="row">
<p>Copyright goes here.</p>
<!-- Loading all the JS logics -->
<script src='js/patch.js'></script>
<script src='js/scenes.js'></script>
<script src='js/game-scene.js'></script>
<script src='js/game.js'></script>
2. The HTML only defines how the content and game elements are grouped and
organized. The styling is always done in CSS. So, we have the following style rules
defined in the game.css file:
#game {
width: 480px;
Search WWH ::

Custom Search