Consider the following sample of HTML code. Hi What is the error present in this code? There should be an brace for the sample declaration block. The font-size declaration should not use a hypen There should not be “ “after id. There should not be semicolon after red.

New Perspectives on HTML5, CSS3, and JavaScript
6th Edition
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Patrick M. Carey
Chapter3: Designing A Page Layout: Creating A Website For A Chocolatier
Section: Chapter Questions
Problem 13CP3
icon
Related questions
Question

Consider the following sample of HTML code.

<style>

#sample {

Color: Red;

Font-size: 50pt;

Position: absolute;

Left: 0px

Top: 0px;

Animation-name: move;

Animation-duration: 3s;

 

Keyframe move {

0# {color:red ; left: 0px; top: 0px; }

50# { color: blue; left 200px; top: 0px; }

100# { color: red; left 0px; top: 0px; }

}

</style>

<div id “sample”>Hi </div>

What is the error present in this code?

  • There should be an brace for the sample declaration block.
  • The font-size declaration should not use a hypen
  • There should not be “ “after id.
  • There should not be semicolon after red.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
JQuery and Javascript
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning