Programming in HTML5 with JavaScript and CSS3 Quiz Questions and Answers

Answer :
  • an interpreted

Explanation :

JavaScript is an interpreted language, not a compiled language. C++ or Java codes needs to be compiled before it is run. The source code is passed through a program called a compiler, which translates it into bytecode that the machine understands and can execute. There is no such need in case of JavaScript.
Answer :
  • Selector

Explanation :

HTML element h1 is used in CSS for styling then it is also called a selector. Attributes are the special words which control the element’s behaviour. To show the start and end of HTML element, tag is used.
Answer :
  • 5

Explanation :

n JavaScript, the scope of variables is not changed in conditional statements and loops. Scope is only changed in case of functions, therefore a is defined even outside the ‘if’ conditional block
Answer :
  • < style >

Explanation :

<style> </style> tag is used to embed CSS in HTML page, while <script> </script> is used to embed JS in HTML. <!DOCTYPE html> is HTML5 declaration.
Answer :
  • Declaration

Explanation :

In CSS, color:red is the declaration for an element saying that the given element has to apply a red color. Color is one of CSS property.
Answer :
  • <p>Client</p>

Explanation :

JavaScript is a Browser Side Scripting Language. ASP, PHP, Perl are Server Side Scripting Language.
Answer :
  • Border-bottom-width

Explanation :

The border-bottom-width CSS property sets the width of the bottom border of a box.