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.
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
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
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
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.Recommended textbooks for you
![New Perspectives on HTML5, CSS3, and JavaScript](https://www.bartleby.com/isbn_cover_images/9781305503922/9781305503922_smallCoverImage.gif)
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning
![New Perspectives on HTML5, CSS3, and JavaScript](https://www.bartleby.com/isbn_cover_images/9781305503922/9781305503922_smallCoverImage.gif)
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning