Informatics Practices Class 12 Important Questions Chapter 9 HTML and XML
1 Mark Questions
Which tags of HTML are used to
(i) Change the font in a page
(ii) Add a row in a table? (Delhi 2014)
(i) < FONT > tag is used to change font in a page.
(ii) <TR> tag is used to add a row in a table.
Which tags/attributes of HTML are used to
(i) Insert the picture in the web page.
(ii) Insert an empty line on the web page. (All India 2014)
(i) <IMG> tag is used to insert a picture in a web page.
(ii) <BR> tag is used to insert an empty line in the web page.
Name two tags that are present in every HTML code. (All India 2014C)
Two tags that are present in every HTML code:
Write the name of HTML tag used to include an image in an HTML web page. (Delhi 2012)
To include an image in HTML web page the < I MG src = “pathname”> tag is used. Here, in place of a pathname, we have to specify the location on the computer, where the image is stored.
Write HTML code for the following:
To provide a hyperlink to a website (HOTS; Delhi 2012)
To provide a hyperlink to a website http://www.w3school.com, we have to write following statement:
<A href=“http://www.w3school.com”> Click Here </A>
Write the name of HTML tag used to include numbered list in a HTML web page. (All India 2012)
To include a numbered list in a HTML web page, we have to use the <OL> tag.
Write HTML code for the following:
To provide hyperlink to a website (HOTS; All India 2012)
To provide hyperlink to a website http://www.cbse.nic.in, we have to use the following tag:
<A href=“http://www.cbse.nic.in”> Click Here</A>
Which HTML tags are used for making a table and adding rows in an HTML document? (Delhi 2011; All India 2011)
To make a table, the <TABLE > tag is used. We can use <TR> tag to define and insert a row into the table and to specify the data to be entered in the table we use the < TD > tag.
How is <OL> tag different from <UL> tag of HTML? (Delhi 2011; All India 2011)
The <UL> tag in HTML is used to define an unordered or bulleted list, where the list items are displayed using bullets without numbering. Whereas, <OL> tag is used to define the ordered list, where the list items are displayed by using the numbers in different number formats.
Java is writing an HTML code. How can she see, how the code would look as a web page? (Delhi 2011C)
She have to save the HTML code file created in a text editor with .htm or .html extension. Thereafter she needs to open the file in a web browser like Internet Explorer.
What is wrong in the following HTML code: (HOTS; Delhi 2011C)
<UL type = “a” start = 3>
The corrected code is as follows:
<OL type = “a” start = “3”>
What is the full form of HTML?
HTML stands for HyperText Markup Language.
What is an HTML tag?
Tags have a simple structure. They begin with a ” < ” and end with a ” > “. Between the’ < >” angular bracket the tag name and may be some attributes are written, depending upon the tag.
How can you use a picture as a link?
We can put an <IMG> between <A> and </A>, so the user can click on the picture to follow the link.
What is the use of comment in an HTML web page?
We can put comments in your HTML file that won’t display on the web page. This lets you explain why your HTML code is in a certain way, to anyone viewing your HTML source code.
How can you set a column or a row spanning over more than one rows or columns? (HOTS)
Sometimes, we need one cell to span more than one column across or more than one row deep. In these cases, we can use the colspan and rowspan attributes of the <TD> tag.
What is a hypertext link?
A hypertext link is a special tag that links one page to another page or resource. If you click the link, the browser jumps to the given link’s destination.
How do you align a table to the right (or left)?
You can use <TABLE align = “right” > to align a table to the right. (Use align = “left” to align it to the left.) Any content that follows the closing </TABLE> tagwillflow around the table.
How do you create a link that sends me an e-mail?
Use a mailto link.
How can you show HTML examples without them being interpreted as a part of my document?
Within the HTML example, first, replace the ‘&’ character with ‘&’ everywhere it occurs. Then, replace the ‘<’ character with ‘ < ‘ and the ‘>’ character with ‘ >’ in the same way.
Note: It may be appropriate to use the CODE and/or pre-elements when displaying HTML examples.
2 Marks Questions
Explain with the help of example(s) the difference between container and empty elements of HTML. (Delhi 2014)
The differences between container and empty element are as follows:
|Container Element||Empty Element|
|This type of elements requires starting as well as matching closing tag.||This type of elements require only starting tag.|
|These tags affect everything that comes between their starting and ending tag.||Empty elements are just carried out their specific job.|
e.g. <HR>, <BR>
Give two attributes of table element of HTML. (All India 2014)
Two attributes of table element are:
Write two features of XML. (All India 2014C)
Features of XML
- XML is the text files which can be managed by any text editor.
- XML is widely used as a format for document storage and processing, both online and offline.
Differentiate between the <TR> and <TD> tags of HTML with the help of an appropriate example. (Delhi 2013)
The ” <TR>” tag is used to define a table row. A row is made up of either table headers or table cells. Table rows are not allowed to directly contain data. Instead, table rows act as a container for the cells “<TD>” or the headers “<TH >” which contain data that is displayed in the table.
Why does not cTABLE width=100%> use the full browser width? (HOTS)
Graphical browsers leave a narrow margin between the edge of the display area and the content. Also, note that navigator always leaves room for a scrollbar on the right, but draws the scrollbar only when the document is long enough to require scrolling. If the document does not require scrolling, then this leaves a right ‘margin’ that cannot be removed.
We hope the Informatics Practices Class 12 Important Questions Chapter 9 HTML and XML help you. If you have any query regarding Informatics Practices Class 12 Important Questions Chapter 9 HTML and XML, drop a comment below and we will get back to you at the earliest.