Chapter 5 HTML (HyperText Markup Language) Solutions
Question - 31 : - What is the purpose of using type attribute used in lists?
Answer - 31 : - type attribute specifies the type of numbers or bullets depending on whether the list item is inside an ordered list or unordered list.
Question - 32 : - What is the purpose of using start attribute used in lists?
Answer - 32 : -
This attribute is used to change the beginning value of an ordered list. Normally, the ordered list begins with 1. It lets you further customise an HTML ordered list by setting a new starting digit for the ordered list element.
Syntax
e.g.
Ordered List with type attribute
<0L start=‘1" type=“1” >
Rose Lotus Lily Output
Question - 33 : - Explain the following with the help of an example.
(a) ……..
Answer - 33 : -
(a) tag makes the text bold.
e.g. This is a bold text
Output
This is a bold text
(b)
tag with attribute type of value “1” displays the lists of items with arabic numerals,
Mango Apple Banana Output
1. Mango 2. Apple 3. Banana
Question - 34 : - What is the ……..
tag? Name any two attributes used with this tag.
Answer - 34 : -
………
tag is used for the ordered list, i.e. a list of items to be displayed in a particular order. An ordered list is also a list of items. An ordered list starts with the
tag. Each list item starts with the - tag.
e.g.
A B Two attributes of
tag are: start and type.
Question - 35 : - What is definition list?
Answer - 35 : -
Definition List
This is a list of items, with a description of each item. HTML definition lists (
) are indented list without any bullet symbol or any number in front of each item. This list elements have a unique array of tags and elements; the resulting lists are similar to those you would see in a dictionary.
Tags used in definition lists are as follows:
Opening tag that detines the start of the list.
- List item that defines the definition term.
- Definition of the list item.
- Closing tag that defines the end of the list.
Question - 36 : - What are the role of ………. tags in HTML?
Answer - 36 : -
The and tags are used to mark the beginning and end of the HTML document. The basic purpose of this tag is to make the browser and text editor identify that the document is an HTML document.This is a container element and does not affect the appearance of the document. The element contains only the and elements, which in turn contains a number of other elements.
The most basic structure of all possible Web documents is
……………
…………..
…………..
Question - 37 : - Explain the tag < HEAD >
Answer - 37 : -
Tag
This element is a container for all the header elements. The tag must include a title for the document that can include scripts, styles, meta information and many more. The second line of your HTML document should be .
The content contained in the head section of your document provides information to the browsers and search engines but, it is not displayed directly on the Web page. The end of the head tag is indicated by .
e.g.
Header information comes here
Question - 38 : - Distinguish between tag and tag with the help of an example of each.
Answer - 38 : -
tag is used to specify the default setting of the text. It takes the same attributes as tag. The only difference is that the tag affects all the text that follows until a new tag affect that is encountered. tag affects the text that comes upto its closing tag.
e.g.
Hi Everyone
HTML is a Web language
It is used for creating Web pages.
Here, in the above example only the text enclosed in is affected by font setting, rest of the text gets affected by basefont setting.
Question - 39 : - What is a tag? Name any two attributes used with this tag.
Answer - 39 : - tag specifies a default font size, color and face for the font, the browser will use to render normal document text, i.e. the text, for which no other font setting has been provided. It occurs only for one time in the document. The attributes of this tag are size and face.
Question - 40 : - Where can a comment be placed in an HTML document? How is it useful?
Answer - 40 : -
Comments are inserted in HTML code with the help of tag. To insert the text as comment, type the text between tag, then that text will be ignored by the browser and invisible for the user.
e.g.
This is a book