Page 79 - CA 165 ver 1.0 Class 10
P. 79
3. Which attribute does not come in <HR> tag?
Solved Exercise i. Size ii. Color
iii. Width iv. Length
PART A 4. Which of the following attributes is used to define the thickness of horizontal rule?
A. Very short answer type questions. i. Size ii. Noshade
1. Which tag stores the information about a document? iii. Width iv. Align
2. Which tag specifies or holds the entire content of a web page? 5. The maximum width of an attribute value can be up to ..................................... characters.
3. Which tag and its attribute sets the color of the text for the entire web page? i. 256 ii. 1024
4. Which attribute is used to change the colour of the links you have already visited? iii. 512 iv. There is no maximum width
5. Which tag and the attribute is used to specify the font name of a piece of text? Ans. 1. iv. 2. ii. 3. iv. 4. i. 5. ii.
6. Which attribute is used to align a picture in the center?
PART B
7. Which tag is used to reduce the size of the text to one less than the default text size?
A. Short answer type questions.
Ans. 1. <HEAD> 2. <BODY> 3. <BODY> tag and TEXT attribute
1. What is a markup language?
4. <BODY> tag and VLINK attribute 5. <FONT> tag and face attribute
6. <CENTER> 7. <SMALL> Ans. Markup language is a language which is used to mark the contents that helps in designing web pages. The
web pages of a website are published and are linked together with the help of markup languages. HTML
B. Fill in the blanks. is a markup language.
1. HTML stands for ..................................... . 2. What are the different types of tags? Explain giving suitable examples.
2. ..................................... refers to the code of instructions used in HTML to perform an action. Ans. There are two types of tags that are used in HTML: Container Tag and Empty Tag.
3. We can write the HTML code using a ..................................... . The tags which are used in pairs are called ‘Container Tags’. Such tags define a section of text and
specify about the formatting of all the contents inside it. Example: <H1>................</H1>.
4. The ..................................... lets us view the HTML page.
Empty tags are not used in pairs and do not have any ending tag and indicate ‘one time’ instructions.
5. An HTML page is saved with the extension ..................................... .
Empty tags represent formatting constructs such as line breaks, inserting images, etc. Example: <HR>.
6. A tag along with its attributes and text contained inside it is called an ..................................... .
3. Observe the given text and explain the tags used for its formatting:
7. <br> is an example of a ..................................... tag.
“KEEP SMILING”
Ans. 1. Hyper text markup language 2. Tag 3. Text Editor 4. Browser Ans. The tags used in formatting is <b> tag and <center> tag.
5. .html or .htm 6. Element 7. Empty <B> or <STRONG> are container tags. These tags are used to make the text bold.
C. Case Based MCQs <CENTER> is a container tag. It is used to align the text, picture, table, etc. in center of the screen.
Attributes refer to additional features that can be added with the tags, to apply or to change and enhance the 4. What are Comments? How can comments be inserted in an HTML document?
appearance of different parts of a web page. Attributes are written immediately after an opening tag is separated Ans. Comments are used to add remarks to the programs created in any language. They provide additional
by tab, space or return characters. The ending tag does not contain any attributes or value. information about the program. Comments can be inserted in an HTML document by using exclamatory
1. Which of the following is not a use of attribute? sign (!) followed by (-). Example: <!- This comment is given by Mr. Albert ->.
i. to define data source or destination 5. Differentiate between <hr> and <hn> tags.
Ans.
ii. to specify URLs (Uniform Resource Locators) <HR> Tag <Hn> Tag
iii. to specify the characteristic of the text to which a tag is applied <HR> stands for ‘Horizontal Rule’. H stands for heading and (n) denotes heading size
iv. All of these are uses of attributes i.e., from 1 to 6.
It is an empty tag.
2. Attribute for choosing type of font is ..................................... . It is a container tag.
i. Character ii. Face It is used to add shaded horizontal lines across a They are used to add headings in the HTML
iii. Font iv. Type web page. document with different size levels.
Introduction to HTML 77

