Training Guide: Programming in HTML5 with JavaScript and CSS3 Ebook

(Nora) #1

Practice exercises CHAPTER 11 453


<script src="Scripts/jquery-1.8.3.js"></script>
<script src="Scripts/default.js"></script>
</head>
<body>

</body>
</html>


  1. In the element, add a
    element whose id is container.

  2. In the container, add a


</video>
<br />
<span id='message'></span>
</div>


  1. In the

  2. After the elements are added, add a message stating that the user needs an
    HTML5 browser.
    Your

  3. In the default.css file, set the background color of the element to a very light
    yellow.

  4. Add a style rule for the container. This style should set the background color to light
    blue, set the border to groove, set the width to 900 pixels, and set the height to 600
    pixels. Set the left and right margins to auto. Set the text-align to center and set the
    padding to 20 pixels.
    The completed default.css file should look like the following.
    body {
    background-color: #FFFFCC;
    }


#container {
background-color: #99CCFF;
Free download pdf