Top 10 HTML MCQ With Answers
1] CSS full form?
- color and style sheets
- Cascade style sheets
- Cascading style sheets
- None of the above
Answer: 3) Cascading style sheets
2] Which of the following is the correct syntax for external style sheet?
- <style src="example.css>
- <style src= example.css>
- <stylesheet> example.css </stylesheet>
- <link rel="stylesheet"
type="text/css" href="main.css">
Answer: 4)
<link rel="stylesheet" type="text/css" href="main.css"
3] The property in CSS use to change the background color of element ?
- bgcolor
- background-color
- color
- All of the above
Answer: (c)
background-color
4] The property in CSS use to change the text color of element
- bgcolor
- background-color
- color
- All of the above
Answer: 3) color
5) The CSS property use to control the element
font-size
- text-size
- text-style
- font-size
- None of the above
Answer: 3 )
font-size
6] The HTML attribute use to define the inline styles
- styles
- style
- class
- None of the above
Answer: 2)
style
7] The HTML attribute use to define the internal stylesheet
- <style>
- style
- <link>
- <script>
Answer: (a)
<style>
8] Which of the following CSS property is use to set the background image of element?
- background-attachment
- background- color
- background-image
- None of the above
Answer: 3)
background-image
9] How to create an unordered list in HTML?
- <ul>
- <li>
- <ol>
- <i>
Answer: 1) <ul>
10] Which character is use to represent the closing of a tag HTML?
- \
- !
- /
- \\
Answer: 3) /
Related Post :-
No comments:
Post a Comment