/
HTML and CSS Essentials
Save to my account
Sign up
HTML and CSS Essentials
HTML and CSS Essentials
Study
1
Question
What does the element !DOCTYPE html indicate?
Answer
It indicates the document type definition being used by the document.
2
Question
What tag is used to create an unordered list in HTML?
Answer
The tag used to create an unordered list is <ul>.
3
Question
What does the float property define?
Answer
The float property defines the position of content.
4
Question
What tag is used to create a form in HTML?
Answer
The tag used to create a form is <form>.
5
Question
What input type is used to define a field for entering a number?
Answer
The input type 'number' defines a field for entering a number.
6
Question
What input type is used to define an image as a submit button?
Answer
The input type 'image' defines an image as a submit button.
7
Question
What input type is used to define a field for an email address?
Answer
The input type 'email' defines a field for an email address.
8
Question
What input type is used to define the range control?
Answer
The input type 'range' defines the range control.
9
Question
What input type is used to define a date picker that includes the year, month, day, and time?
Answer
The input type 'datetime-local' defines a date picker that includes the year, month, day, and time.
10
Question
What input type defines a file select field and a 'Browse' button for uploads?
Answer
The input type 'file' defines a file select field and a 'Browse' button for uploads.
11
Question
What input type is used to define input fields that should contain a telephone number?
Answer
The input type 'tel' is used to define input fields that should contain a telephone number.
12
Question
What attribute of the input tag specifies the maximum value for an input field?
Answer
The attribute 'max' specifies the maximum value for an input field.
13
Question
What attribute of the input tag specifies a regular expression to check the input values?
Answer
The attribute 'pattern' specifies a regular expression to check the input values.
14
Question
What attribute of the input tag specifies that an input field is read only?
Answer
The attribute 'readonly' specifies that the input field is read only.
15
Question
What attribute of the input tag specifies that the input field should automatically get focus when the page is loaded?
Answer
The attribute 'autofocus' specifies that the input field should automatically get focus when the page is loaded.
16
Question
What attribute of the input tag specifies the width of an input type 'image'?
Answer
The attribute 'width' specifies the width of an input type 'image'.
17
Question
What attribute of the input tag is used to apply CSS style to the individual input element?
Answer
The attribute 'class' is used to apply CSS style to the individual input element.
18
Question
What tag is used by search engines to search information provided with the web page?
Answer
The tag used by search engines is <meta>.
19
Question
What attribute of the meta tag specifies the name of the meta data?
Answer
The attribute 'name' specifies the name of the meta data.
20
Question
What does the meta http-equiv attribute 'set-cookies' do?
Answer
The meta http-equiv 'set-cookies' sends the cookies back to the server.
21
Question
What can a block contain in CSS?
Answer
A block can contain one or more declarations separated by a semicolon.
22
Question
What does CSS stand for?
Answer
CSS stands for Cascading Style Sheets.
23
Question
What is an external style sheet used for?
Answer
An external style sheet is used when you want to make changes on multiple pages.
24
Question
What tag is used for including an external style sheet on every page?
Answer
The <link> tag is used on every page for external style sheets.
25
Question
What file extension must an external style sheet be saved with?
Answer
.css
26
Question
What property is used to set the background color in your webpage?
Answer
The property 'background-color' is used to set the background color in your webpage.
27
Question
What property is used to add strike-through marks, underline, overline etc.?
Answer
The property 'text-decoration' is used to add strike-through marks, underline, overline etc.
28
Question
What property controls the horizontal alignment of any block-level text?
Answer
The property 'text-align' controls the horizontal alignment of any block-level text.
29
Question
What property allows you to control the size of the font?
Answer
The property 'font-size' allows you to control the size of the font.
30
Question
What property is used to set an image as the background of a webpage?
Answer
The property 'background-image' is used to set an image as the background of a webpage.