[go: up one dir, main page]

0% found this document useful (0 votes)
179 views3 pages

ch4 Class 10 Computer

Uploaded by

Chhavi Gautam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
179 views3 pages

ch4 Class 10 Computer

Uploaded by

Chhavi Gautam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Class -10th

Exercise Chapter-4 Basic HTML5 Elements


Objective type Questions:
1. Fill in the blanks with the correct words.
1. The paragraph<p> element defines a paragraph.
2. <H3> Tag defines the third level of heading.
3. The <b> tag is a/an container element.
4. The color property is used to specify the foreground color of the
text.
5. The border property allows you to set all the border properties in
one declaration.
6. The<HR> tag inserts a line across the page.
7. If the name of the font contains space, it must be enclosed
within the quotes in font-family attribute.
8. The<DL> tag specifies a definition list.
2. Write T for true statement and F for false one. Correct the false
statement.
a. Browsers insert some spaces before and after each
paragraph.(T)
b. You can nest <b> tags within <i> tags.(T)
c. You cannot change the distance between two lines of text in a
web page.(F)
Correct- You can change the distance between two lines of text
in a web page.
d. CSS does not allow you to set styles of the border of any
HTML5 element. (F)
Correct- CSS allows you to set styles of the border of any
HTML5 element.
e. HTML5 comments are not displayed by a browser. (T)
f. The inline style is applied only to a specific element.(T)
g. <dd> tag should be enclosed within <dt> tags.(F)
Correct-<dt> and <dd>both should be enclosed
within<dl>tags.

<DL>
<DT>…….</DT>
<DD>…….</DD>
</DL>

h. In color:blue, blue is the attribute.(F)


Correct- In color:blue, blue is the value.
3. Choose the correct option.
a. Which of the following is an empty element?
i. <HR> ii. <P> iii. <b> iv. None of these
b. Which of the following defines the most prominent heading?
i.<H6> ii. <H1> iii. <H7> iv. None of these
c. The property is used to specify the horizontal alignment of text or
block of text.
i. text-align ii. align iii. alignment iv. None of these
d. Which of the following property is used to set the top margin.
i. top ii. margin-top iii. top-margin iv. None of these
e. Which tag is used to create an unordered list?
i. <list> ii. <ul> iii. <unorderedli> iv. None of these
f. Which of the following is the default value for the list-style-type
attribute in an ordered list?
i. decimal ii. lower-roman iii. lower-alpha iv. None of these
g. Which of the following is the syntactically correct.
i. text-shadow: 3px 2px green ii. text-shadow: 3px green 2px
iii. text-shadow: green 3px 2px iv. None of these
h. In which of the following will the top-margin be set to 6px?
i. Margin: 0px 0px 0px 6px ii. Margin: 0px 0px 6px 0px
iii. Margin: 0px 6px 0px 0px iv. Margin: 6px 0px 0px 0px

3.Descriptive Type Questions


a. Explain the purpose of the following HTML5 tags?
i. <p> ii. <hr>
Ans: i. <p> The paragraph element is used to insert a paragraph
in a web page. Browsers insert some spaces before and after
each paragraph.
Syntax: <P>…………</P>
ii. <hr> The horizontal rule element identified by the tag
<hr>. The hr element is used to generate a horizontal line
in a web page. This element is used to divide the webpage
into separate sections.
b. How are comments given in an HTML5 document?
Ans: HTML5 comments are text which are not displayed by the
browser. Comments are usually written to provide explanation about
the HTML5 code.
The comment tags are <!—and --> .Anything written inside these
two tags is ignored by the web browser.
e.g. <- - comment text - ->

c. Which property is used to set all the font properties in one


declaration?
Ans: The following property is used to set all the font properties
in one declaration. The syntax is:
font: font-style font-size font-family where,
font-style specifies the font style for the text, font-size specifies the
size of a font and font-family specifies a list of font names.
d. Which set of tags is used to create an ordered list.
Ans: The following set of tags is used to create an ordered list.
<OL>
<LI>………..</LI>
</OL>
e. What values can be assigned to list-style-type property of an
unordered list?
Ans: The following values can be assigned to the list-style-type
property of an unordered list.

None/disc(default)/circle/square

You might also like