-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHTML and CSS Test.txt
More file actions
262 lines (181 loc) · 4.74 KB
/
HTML and CSS Test.txt
File metadata and controls
262 lines (181 loc) · 4.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
1. Choose the correct HTML element for the largest heading:
<h6>
<head>
<heading>
<h1>
2. What is the correct HTML element for inserting a line break?
<break>
<lb>
<br>
3. What is the correct HTML for adding a background color?
<body style="background-color:yellow;">
<body bg="yellow">
<background>yellow</background>
4. Choose the correct HTML element to define important text
<b>
<i>
<strong>
<important>
5. Choose the correct HTML element to define emphasized text
<i>
<em>
<italic>
6. What is the correct HTML for creating a hyperlink?
<a>http://www.w3schools.com</a>
<a href="http://www.w3schools.com">W3Schools</a>
<a url="http://www.w3schools.com">W3Schools.com</a>
<a name="http://www.w3schools.com">W3Schools.com</a>
7. Which character is used to indicate an end tag?
*
^
<
/
8. Inline elements are normally displayed without starting a new line.
True
False
9. How can you make a numbered list?
<list>
<ul>
<dl>
<ol>
10. How can you make a bulleted list?
<dl>
<ul>
<ol>
<list>
11. What is the correct HTML for inserting an image?
<img src="image.gif" alt="MyImage">
<image src="image.gif" alt="MyImage">
<img href="image.gif" alt="MyImage">
<img alt="MyImage">image.gif</img>
12. What is the correct HTML for inserting a background image?
<background img="background.gif">
<body style="background-image:url(background.gif)">
<body bg="background.gif">
13. HTML comments start with <!-- and end with -->
True
False
14. Block elements are normally displayed without starting a new line.
False
True
15. Which HTML element defines the title of a document?
<title>
<head>
<meta>
16. Which HTML attribute specifies an alternate text for an image, if the image cannot be displayed?
longdesc
alt
title
src
17. Which HTML element is used to specify a footer for a document or section?
<bottom>
<footer>
<section>
18. In HTML, you can embed SVG elements directly into an HTML page.
False
True
19. What is the correct HTML element for playing video files?
<movie>
<media>
<video>
20. In HTML, onblur and onfocus are:
HTML elements
Style attributes
Event attributes
21. Which HTML element defines navigation links?
<nav>
<navigate>
<navigation>
22. In HTML, what does the <aside> element define?
A navigation list to be shown at the left side of the page
Content aside from the page content
The ASCII character-set; to send information between computers on the Internet
23. Which HTML element is used to specify a header for a document or section?
<head>
<section>
<header>
<top>
24. What does CSS stand for?
Creative Style Sheets
Colorful Style Sheets
Cascading Style Sheets
Computer Style Sheets
25. What is the correct HTML for referring to an external style sheet?
<style src="mystyle.css">
<link rel="stylesheet" type="text/css" href="mystyle.css">
<stylesheet>mystyle.css</stylesheet>
26. Where in an HTML document is the correct place to refer to an external style sheet?
In the <head> section
At the end of the document
In the <body> section
27. Which HTML tag is used to define an internal style sheet?
<style>
<css>
<script>
28. Which HTML attribute is used to define inline styles?
class
font
style
styles
29. Which of these is the correct CSS?
body:color=black;
{body;color:black;}
{body:color=black;}
body {color: black;}
30. How do you insert a comment in a CSS file?
// this is a comment //
// this is a comment
' this is a comment
/* this is a comment */
31. Which property is used to change the background color?
bgcolor
background-color
color
32. How do you add a background color for all <h1> elements?
h1.all {background-color:#FFFFFF;}
h1 {background-color:#FFFFFF;}
all.h1 {background-color:#FFFFFF;}
33. Which CSS property is used to change the text color of an element?
text-color
fgcolor
color
34. Which CSS property controls the text size?
text-size
font-size
font-style
text-style
35. Which property is used to change the font of an element?
font-family
Both font-family and font can be used
font
36. How do you make the text bold?
font-weight:bold;
font:bold;
style:bold;
38. How do you display a border like this:
The top border = 10 pixels
The bottom border = 5 pixels
The left border = 20 pixels
The right border = 1pixel?
border-width:10px 5px 20px 1px;
border-width:10px 1px 5px 20px;
border-width:5px 20px 10px 1px;
border-width:10px 20px 5px 1px;
39. Which property is used to change the left margin of an element?
padding-left
margin-left
indent
40. How do you select an element with id "demo"?
.demo
*demo
demo
#demo
41. How do you select elements with class name "test"?
#test
*test
.test
test
42. How do you select all p elements inside a div element?
div + p
div.p
div p