Uploaded by liongmichaelow

CSS and HTML - Fill in the Blanks

advertisement
CSS & HTML Fill in the Blanks
1. What does CSS stand for? CASCADING STYLE SHEETS
2. What is the correct HTML for referring to an external style sheet?
<LINK REL=”STYLESHEET” TYPE=”TEXT/CSS” HREF=”MYSTYLE.CSS”>
3. Where in an HTML document is the correct place to refer to an external style sheet? IN THE
<HEAD> SECTION
4. Which HTML tag is used to define an internal style sheet? <STYLE>
5. Which HTML attribute is used to define inline styles? STYLE
6. Which is the correct CSS syntax? BODY{COLOR:BLACK;}
7. How do you insert a comment in a CSS file? /*THIS IS A COMMENT*/
8. Which property is used to change the background color in CSS? BACKGROUND-COLOR
9. How do you add a background color for all <h1> elements? H1{BACKGROUNDCOLOR:#FFFFFF;}
10. Which CSS property is used to change the text color of an element? COLOR
11. Which CSS property controls the text size? FONT-COLOR
12. What is the correct CSS syntax for making all the <p> elements bold? P{FONTWEIGHT:BOLD;}
13. How do you display hyperlinks without an underline? A{TEXT-DECORATION:NONE;}
14. How do you make each word in a text start with a capital letter? TEXTTRANSFORM:CAPITALIZE
15. Which property is used to change the font of an element? FONT-FAMILY
16. How do you make the text bold? FONT-WEIGHT:BOLD;
17. 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= 1 pixel ?
BORDER-WIDTH:10PX 1PX 5PX 20PX
18. Which property is used to change the left margin of an element? MARGIN-LEFT
19. When using the padding property, are you allowed to use negative values? NO
20. How do you make a list that lists its items with squares? LIST-STYLE-TYPE:SQUARE;
21. How do you select an element with id’demo’? #DEMO
22. How do you select elements with class name ‘test’? .TEST
23. How do you select all ‘p’ elements inside a ‘div’ element? DIV P
24. How do you group selectors? SEPARATE EACH SELECTOR WITH A COMMA
25. What is the default value of the position property? STATIC
26. A webpage displays a picture. What tag was used to display that picture? IMG
27. <b> tag makes the enclosed text bold. What is the other tag to make text bold? <STRONG>
28. Tags and test that are not directly displayed on the page are written in ……….. section. <HEAD>
29. Which tag inserts a line horizontally on your web page? <HR>
30. What should be the first tag in any HTML document? <HTML>
31. Which tag allows you to add a row in a table? <TR> AND </TR>
32. How can you make a bulleted list? <UL>
33. How can you make a numbered list? <OL>
34. Choose the correct HTML tag to make a text italic. <I>
35. Choose the correct HTML tag to make a text bold. <B>
36. What is the correct HTML for adding a background color? <BODY BGCOLOR=”YELLOW”>
37. Choose the correct HTML tag for inserting a line break. <BR>
38. What does vlink attribute mean? VISITED LINK
39. Which attribute is used to name an element uniquely? ID
40. Which tag creates a checkbox for a form in HTML? <INPUT TYPE=”CHECKBOX’>
41. Which of the following is not a pair tag? <IMG>
42. To create HTML document you require a: JUST A NOTEPAD CAN BE USED
43. Special formatting codes in HTML document used to present content are TAGS.
44. HTML documents are saved in ASCII TEXT.
45. The ………. character tells browsers to stop tagging the text. / (SLASH SYMBOL)
46. In HTML document, the tags CAN BE WRITTEN IN BOTH UPPERCASE OR
LOWERCASE.
47. There are ………. different heading tags in HTML. 6(SIX)
48. How to create a blank line in your webpage? INSERT <BR> TAG
49. When should you use path along with file name of picture in IMG tag?
WHEN THE LOCATION OF IMAGE FILE AND HTML FILE ARE DIFFERENT.
50. What does HTML stand for? HYPER TEXT MARKUP LANGUAGE
51. Who is making the Web standards? THE WORLD WIDE WEB CONSORTIUM
52. The correct HTML element for the largest heading: <H1>
53. What is the correct HTML element for inserting a line break? <BR>
54. What is the correct HTML for adding a background color using inline style CSS?
<BODY STYLE=”BACKGROUND-COLOR:YELLOW;”>
55. The correct HTML element to define important text. <B>
56. The correct HTML element to define emphasized text <EM>
57. What is the correct HTML for creating a hyperlink?
<A HREF=HTTP://WWW.GMAIL.COM>GMAIL</A>
58. Which of these elements are all <table> elements? <TABLE><TD><TH><TR>
59. What is the correct HTML for making a text input field? <INPUT TYPE=”TEXT>
60. What is the correct HTML for making a drop-down list? <SELECT>
61. What is the correct HTML for making a text area? <TEXTAREA>
62. What is the correct HTML for inserting an image?
<IMG SRC=”IMAGE.GIF” ALT=”MYIMAGE”>
63. What is the correct HTML for inserting a background image?
<BODY STYLE=”BACKGROUND-IMAGE:URL(BACKGROUND.GIF)”>
64. Which HTML element defines the title of a document? <TITLE>
65. Which HTML attribute specifies an alternate length for an image, if the image cannot be
displayed? ALT
66. What is the correct HTML element for playing video files? <VIDEO>
67. What is the correct HTML element for playing audio files? <AUDIO>
68. Which of the following is an attribute of <table> tag? CELL PADDING
Download