Skip to main content

Posts

Showing posts with the label html5 upwork

Upwork/oDesk HTML5 test Answer

1. Which of the following statements regarding WebSockets is true?   Answers:  • All of the above.  2. Assuming that some text needs to be written on an HTML5 canvas, select a replacement for the commented line below:  <canvas id="e" width="200" height="200"></canvas>  <script>  var canvas = document.getElementById("e");  //insert code here  context.fillStyle = "blue";  context.font = "bold 16px Arial";  context.fillText("Zibri", 100, 100);  </script>   Answers:  • var context = canvas.getContext("2d");  3. What is the role of the <dfn> element in HTML5?   Answers:  • It is used to define a definition term.  4. Which of the following is a possible way to get fullscreen video played from the browser using HTML5?   Answers:  • <video height="100%" width="100%">  5. Consider the following items of a <select> list:  <option value="89"...