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

HTML Hyperlink and Tag Revision Guide

The document outlines a Term-2 Examination revision for HTML, including fill-in-the-blank questions, true or false statements, code completion tasks, error identification in HTML code, and application-based questions. It covers various HTML concepts such as links, lists, and tables, along with syntax and expected outputs. Additionally, it asks for explanations of HTML tags and differentiation between link types.
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)
178 views3 pages

HTML Hyperlink and Tag Revision Guide

The document outlines a Term-2 Examination revision for HTML, including fill-in-the-blank questions, true or false statements, code completion tasks, error identification in HTML code, and application-based questions. It covers various HTML concepts such as links, lists, and tables, along with syntax and expected outputs. Additionally, it asks for explanations of HTML tags and differentiation between link types.
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

Term-2 Examination (2024-25)

Revision-1-HTML

Fill in the Blanks

1. An __________ is used to display a web page within a web page.


2. ___________________opens the link in a new window or tab.
3. In an ordered list ____________attribute is used to change the scheme of
numbering.
4. In HTML, links are created using ______________ tag.
5. An _____________ is useful to surf many web pages on a website.
6. __________ is the attribute of iframe tag.

State True or False

1. HTML links are Hyperlinks


2. The content inside the <title> element will be shown in the browser's
page tab
3. The html tag ends with a backward slash .
4. <br>tag draws a horizontal line.
5. <dl>tag defines the list

Complete the missing code .

1. Use the correct HTML tag to make the text below into a link to
"[Link]" and open the link in a new tab
< = >School Library< >

2. Set the body background colour to red

<body = >

Identify the error in the code and rewrite the corrected code.
1. The following code is intended to create an ordered list, but it is not
displaying as expected. Find the error and fix it.
<ol>
<li>First item
<li>Second item</li>
<li>Third item</li>
</ol>

2. The following HTML code is intended to create a table, but it is not


displaying as expected. Identify the error and write the correct code
<body>
<tr>
<th> Name </th>
<th> Age </td>
<tr>
<td> John </td>
<td> 12 </th>
</tr>
</table>
</body>
Application Based Question

• Kanishk wants to add an address to a webpage, and he want each part of


the address to appear on a new line instead in one long paragraph. Which
HTML tag should you use?

Answer the Following


1. Explain List in HTML with Syntax and Output
2. Explain any 3 tags in HTML
3. Differentiate Between External Absolute and External Relative link
4. Create an HTML document to create the below table with the first
row background color as red.
[Link] Name Author
1. Harry Potter J.K. Rowling
2. The Very Hungry Caterpillar Eric Carle

Common questions

Powered by AI

In HTML, the 'type' attribute of the <ol> tag is used to change the numbering scheme, allowing you to specify different numbering types such as '1', 'A', 'a', 'I', 'i'. This customization can enhance readability or improve the visual structure of list items based on context or audience preferences.

HTML can define a webpage's structure and content, while attributes like 'style' help format appearance directly within tags. For instance, setting the body background color involves the 'style' attribute as in '<body style="background-color:red;">'. Attributes offer inline customization but should be used judiciously to maintain clean, structured code.

An HTML table should begin with the <table> tag and include <tr> for rows, <th> for headers, and <td> for cells. A common mistake is mismatched tags, such as using <td> where <th> is needed or vice versa. Ensuring all tags are correctly paired and closed resolves display issues, as shown by fixing '<th> Age </td>' to '<th> Age </th>'.

An external absolute link specifies a full URL, such as 'http://www.example.com/page.html', used to link to a resource on a completely different website. An external relative link is based on the location of the current file, such as '../page.html', and is used for linking within the same domain but different subdirectories. Absolute links are ideal for reaching pages outside the current website, while relative links suit inter-page navigation within the same domain.

Mistakes include using <body> without a <table> tag, mismatched <th> and <td> tags, and missing surrounding <table> tags. The corrected version is: '<table><tr><th>Name</th><th>Age</th></tr><tr><td>John</td><td>12</td></tr></table>'. Wrapping with <table> and matching tag pairs are crucial for correct rendering.

The <iframe> tag is used in HTML to display a web page within another web page, and it includes attributes such as 'src' to specify the URL of the page to display.

The <br> tag is appropriate for inserting line breaks, making it suitable for separating address components to ensure each part appears on a new line. This tag forces a break without needing additional block elements or styling, streamlining multi-line display.

To create a hyperlink that opens in a new tab, use the <a> tag with the 'target' attribute set to '_blank'. For example, '<a href="Library.html" target="_blank">Link</a>'. Opening in a new tab can be useful for keeping the original page accessible, allowing users to continue browsing without losing their place.

You might use an iframe to embed external content, like videos or documents, directly into a page, keeping users engaged without navigation away. However, drawbacks include potential security risks, slower loading times due to multiple sources, and limited browser compatibility. Careful implementation and modern alternatives should be considered to mitigate these issues.

A common error is neglecting to close <li> tags properly. In the provided unordered list, the closing <li> tag is missing for the first item. Adding '</li>' after '<li>First item' will resolve the issue. The corrected list should be: '<ol> <li>First item</li> <li>Second item</li> <li>Third item</li> </ol>'.

You might also like