WorksheetsHTML BASIC Quiz
Total questions: 55
Worksheet time: 56mins
What is the first thing we have to write in the code
<!Doctype html>
<p>`
<head>
What does this tag stand for? <b>
bright
big
beautiful
bold
An ordered list begins with______ and ends with_________
<ol>and</ul>
<ol>and</ol>
<ol> and </al>
<al> and </al>
The <tr> tag is used to define a
coloum
table
data
row
<TABLE>
USED TO DEFINE A TABLE ROW
USED TO DEFINE A TABLE COLUMN
USED TO DEFINE A TABLE CELL
USED TO DEFINE A TABLE
ANCHOR TAG
<A HREF>
<HREF>
<A>
</AHREF>
TAG OF HORIZANTAL RULER
<H>
</H>
<HR>
</HR>
SYMBOL OF CLOSING TAG
=
<>
/
\
HTML5 documents may contains a ___________ element, which is used to set the header section of a document.
A. header
B. footer
C. section
D. none of the mentioned
The correct sequence of HTML tags for starting a webpage is
A.Head, Title, HTML, body
B. HTML, Body, Title, Head
C. HTML, Head, Body,Title
D. HTML, Head, Title, Body
To create HTML page, you need
A. Web browser
B. Text editor
C. Both A & B
D. None of the above
The stylesheet is used to
code the css page.
link css to the html page.
add css to notepad++
link java script to the html page.
What is the proper CSS format for background color?
back-ground color:orange:
backgroundcolor-orange;
background:color:orange;
background-color:orange;
What is the proper code for an unordered list?
ul
ol
il
al
Every html page is required to have a linked CSS page.
True
False
Comments in coding is used to help
the programmer
anyone viewing the website
the editor of the code
the reader of the code
Which of the following is the correct CSS link tag?
<link rel="styles" href="stylesheet.css">
<link href="stylesheet">
<link rel="stylesheet" src="styles.css">
<link rel="stylesheet" href="styles.css">
While building your webpage, you want to apply inline styles to a specific text element. Which HTML attribute should you use?
style
class
id
format
Which of these is an advantage of CSS?
Good control over the presentation.
Saves time on maintaining the html document.
Makes the web site look less cluttered.
All of the above
HTML document is saved as _____________ extension
.css
.html
.xhtml
.js
How to add a comment in HTML?
<!-- --!>
<!-- -->
//
<-- -->
How do we create a bulleted list?
<li>
<ul>
<list>
<bl>
What CSS property is used to set the font family for text in an HTML element?
font-family
font-style
fontfamily
style-family
Where to use <style> tag in html?
body
head
both body and head
everything
What is missing from this HTML skeleton?
<!DOCTYPE html>
<html>
<body>
</body>
</html>
<head></head>
<div></div>
<img></img>
<head>
How do you change the font color with CSS?
font-color: green;
color: green;
change-font-color: green;
fontcolor=green;
In CSS, what is the difference between an ID and a class selector?
IDs are for styling multiple elements, while classes are for single elements.
IDs are for single elements, while classes are for styling multiple elements.
IDs and classes can be used interchangeably.
IDs and classes have no difference in CSS.
Which is the code to start putting in a drop down box?
<select id="choices">
<selection id="choices">
<dropdown id="choices">
<drop id="choices">
To put in a larger comment box you would use which tag?
<input type="comment" id="comments"/>
<input type="textarea" id="comments"/>
<textarea id="comments"></textarea>
<textarea id="comments" />
Checkboxes are used when more than one option is required to be selected.
TRUE
FALSE
radio buttons are used when more than one option is required to be selected.
TRUE
FALSE
Which input type is used for password input in Form?
secret
password
What HTML input type is used to create this password field?
<input type="text">
<input type="submit">
<input type="password">
<input type="radio">
TRUE or FALSE
The id attribute of the <input> element should always be equal to the for attribute of the <label> element.
False
The attribute is set to checkbox by which tag
<input> tag
<textarea> tag
What form elements are used in creating this text field?
<select> and <option>
<label> and <input>
<textarea> and <input>
<select> and <input>
Which is the apt input type if user need to select the gender
check box
drop down list
text
radio button
A form is gettting user details which is the correct input to retrieve the email address
password
text
numbers
Which attribute tells that either checkboxes or radiobutton belong to same group of information?
id
name
value
none of them
Which element is used to create drop down list
input
select
dropdown
radio
Ryan wants to give his users an option to upload an image in the form.
Which of the following options should he use
<img id="image"/>
<input type="file" id="img"/>
<image id="image"/>
<file id="image"/>
Where is pattern attribute is used in whichj type of input
checkbox
file
tel
which attributes in input-number lets youdefine the least and the most number you can enter in the field?
minimum and maximun
min and max
minn-maxim
minimum only
The elements used to group a particular type of information on the form is _____ and to label the groups name we use ________with it
text , list
fieldset,
legend
legend,
fieldset
none of the above
In a <textarea> to mention the width and height we use attributes
rows and columns
height and width
length and breadth
rows and cols
Something that provide additional information about the HTML elemens is called__________
id
attribute
name
tag
