Basic Html - Study Mode

[#121] Identify the count of mistakes in the following markup. <html>
<head>
</head>
<body>
<li>
<ul><p> Hello </p></ul>
</li>
<br>
<hr>
</body>
</html>
Correct Answer

(B) 3

Explanation

Solution: <p> should not be in <li> ,<br> and <hr> shpuld be closed.

[#122] Rendering engine is not responsible for
Correct Answer

(D) none of the mentioned

Explanation

Solution: All the options mentioned are responsibility of rendering engine.

[#123] Firefox uses _________ rendering engine.
Correct Answer

(B) Gecko

Explanation

Solution: Gecko is a web browser engine used in many applications developed by Mozilla Foundation and the Mozilla Corporation as well as in many other open source software projects. Gecko is free and open-source software subject to the terms of the Mozilla Public License version 2.

[#124] State true or false. It is faster to render HTML and CSS than to interpret and execute JavaScript.
Correct Answer

(A) True

Explanation

Solution: When it comes to ordering your CSS and JavaScript, you want your CSS to come first. The reason is that the rendering thread has all the style information it needs to render the page. If the JavaScript includes come first, the JavaScript engine has to parse it all before continuing on to the next set of resources.

[#125] What is the use of “defer” attribute?
Correct Answer

(B) It defers script execution until the page has been rendered

Explanation

Solution: The defer attribute is a boolean attribute. When present, it specifies that the script is executed when the page has finished parsing.