0% found this document useful (0 votes)
9 views

HTML Basics and CSS MCQ by V.

Uploaded by

For Like
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

HTML Basics and CSS MCQ by V.

Uploaded by

For Like
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

HTML BASICS AND CSS MCQ

1. What is the full form of CSS?


i. Cascading Style sheets.
ii. Cascading style store
iii. Cascading style shift
Ans : Cascading style sheets
2. Choose the correct way to write green text using HTML code.
i. <h2><font color=”green”> Welcome to T Balaji Publications</font></h2>
ii. <h2 font color = green> Welcome to T Balaji Publications <font> <h2>
iii. <hsghsk;fhbSKdhbKSghdkSDhghg;JSKDG>
Ans : 1
3. In the given options which is the start tag only?
i. <br>
ii. <p>
iii. <html>
iv. All of the above
Ans : <br>
4. Which tag is used for bold elements?
i. <b>
ii. <strong>
iii. <boldtext>
iv. 1 and 2 both are true
v. 2 and 3 are true
And : 4 ( 1 and 2 both are true
5. Which is the correct example of the Image links ?
i. <a href=”myfile.htm”><img src=”rainbow.gif”></a>
ii. <a> my file.jpg </a>
iii. None of them
iv. 1 and 2 both are true
Ans : 1
6. If you haven’t entered border setting you will see a small border around the Image after
turning it into a link. To turn off this border, simply add _______ to the <img> tag ?
i. Border=”0”
ii. Border 0
iii. <Border>0
Ans: 1
7. The comment ______ tag is used to insert comments in the source code.
i. (<!-- -->)
ii. (<#-- -->)
iii. (<-- -->)
iv. (<*-- -->)
Ans : 1
8. Quote element is used for?
i. Short quotation
ii. Phrase
iii. Paragraph
iv. Essay
Ans : 1
HTML BASICS AND CSS MCQ

9. What tag is used for anchor tag?


i. <anchor></anchor>
ii. <link> ------ </link>
iii. <a> ------ </a>
iv. None of the above
Ans : 3
10. Choose the correct example of target attribute ?
i. <a href = “/html/Index.htm”target = “_blank”>Opens In New</a>
ii. <a href = “/html/Index.htm”target = “_Self”>Opens In self</a>
iii. <a href = “/html/Index.htm”target = “_Parent”>Opens In Parent</a>
iv. <a href = “/html/Index.htm”target = “_Top”>Opens In Body</a>
v. All options are true
Ans : 5
11. Which of the following CSS property is used for controlling the layout?
i. Display
ii. Color
iii. Text
iv. None of the above
Ans : 1
12. Which of the following css property specifies the origin of the background image?
i. Background origin
ii. Background size
iii. Origin
Ans : 1
13. What function is used to insert values of a CSS variable?
i. Var()
ii. Rand()
iii. Varchar()
iv. Clac()
Ans : 1
14. Which CSS property is used to create an image reflaction?
i. Inage-reflect
ii. Box-reflect
iii. Reflect-img
iv. All of the above
Ans : 2
15. What are the different types of gradients in CSS?
i. Linear Gradients
ii. Conic Gradients
iii. Radial Gradients
iv. All of the above
Ans : 4
16. Which CSS Property specifies the painting area of the background?
i. Background-size
ii. Background-clip
iii. Background-img
iv. None of the above
Ans : 2
HTML BASICS AND CSS MCQ

17. Which of the following has introduced text, list, box, margin, border, color, and background
properties?

a) HTML

b) PHP

c) CSS

d) Ajax

Ans : CSS

18. Which of the following type of HTML tag is used to define an internal style sheet?

a) <script>

b) <link>

c) <class>

d) <style>

Ans : d) <style>

19. Which of the following CSS property is used to make the text bold?

a) text-decoration: bold

b) font-weight: bold

c) font-style: bold

d) text-align: bold

Ans : (b)

20. Which of the following are the CSS Extension Prefixes for Webkit?

a) -chrome

b) -web

c) -o-

d) -webkit

Ans : (d)

21. Which of the following is the correct syntax to link an external style sheet in the HTML file?

a) <link rel=”stylesheet” href=”style.css” />

b) <link rel=”stylesheet” src=”style.css” />

c) <style rel=”stylesheet” src=”style.css” />

d) <style rel=”stylesheet” link=”style.css” />

Ans : (a)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy