HTML/CSS
Which tag contains all the contents of an HTML document you can see? <body> <html> <head> <title>
<body>
Which of the following is the correct HTML element to define emphasized text?
<em>
If "padding: 10px 5px 20px 0px" is given. What does this represent? left:10px , top:5px , right:20px , bottom:0px top:10px , right:5px , bottom:20px , left:0px right:10px , bottom:5px , left:20px , top:0px bottom:10px , left:5px , top:20px , right:0px
top:10px , right:5px , bottom:20px , left:0px
How do we add a comment in CSS file?
/*Geeksforgeeks*/
How many different styling techniques are used in CSS?
3
What is the default margin of the body element?
8px
Which among the following is a correct way to open a Hyperlink in new tab? <a href="https://www.geeksforgeeks.org/" new tab></a> <a href="https://www.geeksforgeeks.org/" target=newtab></a> <a href="https://www.geeksforgeeks.org/" target="_blank"></a> <a href="https://www.geeksforgeeks.org/"></a>
<a href="https://www.geeksforgeeks.org/" target="_blank"></a>
What is the correct HTML element for inserting a line break?
<br>
What is the full form of CSS?
Cascading style sheet
What is the function of the <p> tag?
Defines a paragraph
What does HTML stand for?
Hypertext Markup Language
Where in HTML document is the conventionally correct place to put reference to an external style sheet?
In the HEAD section
Which HTML tag is used for internal style sheet? Internal Style CSS Internal Style
Style
Using padding clears the area outside Border Content Margin All of the above
content
What is the correct representation to change the color of h2 element? h2 { background-color: #008000 } {h2 background-color: #008000} h2.all{ background-color: #008000 } {h2.all background-color: #008000} {h2.all background-color: #0080
h2 { background-color: #008000 }
The HTML code for adding a picture begins with the ___________ element src img scr png
img
Which of the following is the correct CSS syntax? p:color=green, font-size=15px {p:color=green, font-size=15px} p {color:green, font-size:15px;} p {color:green; font-size:15px;}
p {color:green; font-size:15px;}
What is the correct CSS syntax to make all paragraph (p) elements bold? {p font-size:bold;} p{font-weight :bold;} <p style="font-size=bold;"> None of the Above
p{font-weight :bold;}
Select the correct among the following for linking an external style sheet. <link rel="stylesheet" type="text/css" href="style.css"> <style rel="stylesheet" type="text/css" href="style.css"><link>stylesheet <link href="style.css">stylesheet
<link rel="stylesheet" type="text/css" href="style.css">
Which one of the following is the correct way of adding Inline styles? <p style="font-size:16px;">Geeksforgeeks</p> <p inline style="font-size:16px">Geeksforgeeks</p> <p inline style="font-size 16px">Geeksforgeeks</p> <p style="font-size 16px;">Geeksforgeeks</p>
<p style="font-size:16px;">Geeksforgeeks</p>
Which HTML element is used for Important text? <box. <important> <strong> <i>
<strong>
Which is the correct syntax to set the unordered-list item marker to a square? ul style="list-style-type:square"> <ul style="square"> <ul list-style: "square"> <ul style=square>
<ul style="list-style-type:square">