0% found this document useful (0 votes)
68 views2 pages

HTML Practical Test for Class X

The document is a revision test for Class X in Computer Applications focusing on HTML coding. It includes short answer questions requiring HTML code for specific tasks and long answer questions that involve creating a styled webpage and generating a table. Additionally, it features objective type questions assessing knowledge of HTML tags and attributes.

Uploaded by

djbraiganj
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)
68 views2 pages

HTML Practical Test for Class X

The document is a revision test for Class X in Computer Applications focusing on HTML coding. It includes short answer questions requiring HTML code for specific tasks and long answer questions that involve creating a styled webpage and generating a table. Additionally, it features objective type questions assessing knowledge of HTML tags and attributes.

Uploaded by

djbraiganj
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

Date: 05.10.

2024
HTML PRACTICAL FILE
Revision Test
Class - X
COMPUTER APPLICATION (Code 165)
M.M.: 25
Time allotted: 1 hr.

Short Answer Type Questions (2 marks each)

1. Write a HTML code to display a paragraph in red color in size 4 but its first letter should be of size 7 and blue
color.
2. Write HTML code to provide hyperlink to a website [Link]

Long Answer Type Questions (3 marks each)

1. Write down the HTML code to generate a page in the format and style shown below:
a. Title of the page is “MAHARAJA: Home”.
b. Background colour of the page is Yellow.
c. Link color of the page should be GREEN and Visited Link colour should be BLUE.
d. All Font type in the page are ARIAL and color BLACK except the heading ‘!!MAHARAJA!!’ which
is in COURIER font and in RED colour.
e. Pages linked with Indian Dishes: Vegetarian as ‘[Link]’ and Non-vegetarian as ‘[Link]’.
f. Pages linked with Continental Dishes: Vegetarian as ‘[Link]’ and Non-vegetarian as
‘[Link]’.
g. The horizontal rule before the bottom message is of size ‘5’ and is not shaded.

2. Observe the following table and write the HTML code to generate it.
Date: 05.10.2024
Objective Type Questions (1 mark each)

1. This tag defines the HTML header and doesn’t affect the appearance of the document.
2. HTML is what type of language?
a. Scripting language c. Network protocol
b. Programming language d. Markup language
3. Which HTML tag produces the largest heading?
a. <h2> c. <h6>
b. <h4> d. <h5>
4. _________ is known as the father of World Wide Web.
5. HTML webpages can be read and rendered by _________.
6. Identify the errors and write the correct code:
a. <BODY background=”red”>
b. <FONT type=”Arial”>
7. Which tag is used in this expression x2?
8. The href attribute is mandatory with <a> tag.
a. True b. False
9. The default color of a hyperlink in a webpage is _______.
10. An e-mail link can be created using sendto: attribute.
a. True b. False
11. A __________ can be inserted in HTML document which can act as a container for all the input elements.
12. Which element allows for the creation of groups of options in a select menu?
a. <select> c. <option>
b. <group> d. <optgroup>
13. Apart from <b> tag, what other tag makes text bold?
a. <fat> c. <black>
b. <strong> d. <emp>
14. _______ attribute is compulsory to use with <audio> tag.
15. URL in HTML stands for
a. Universal Resource Locator c. Uni Resource Locator
b. Uniform Resource Locator d. None of these

Common questions

Powered by AI

To create a structured option menu in an HTML form, utilize the `<select>` element with nested `<optgroup>` for grouping options: `<select><optgroup label='Group A'><option>Option 1</option></optgroup></select>`, where `<option>` tags allow individual selections .

Besides `<b>`, the `<strong>` tag can also be used to make text bold; however, `<strong>` applies semantic emphasis, suggesting the text carries strong importance, unlike the `<b>` tag which is solely for presentation .

The `src` attribute is compulsory with the `<audio>` tag as it specifies the URL of the audio file to be played. Without it, the audio element cannot source content to render .

To create a hyperlink to an external website using HTML, you use the `<a>` tag with the `href` attribute. For example: `<a href='http://www.cbse.nic.in'>Visit CBSE</a>`. The `href` attribute is mandatory for linking .

In HTML, the default color of a hyperlink (unvisited) is typically blue, and the change after a link has been clicked is to purple. Custom styles can be applied using CSS with properties like `a:link { color:green; }` and `a:visited { color:blue; }` .

HTML stands for HyperText Markup Language, and it is fundamentally categorized as a markup language. It structures and describes the content of web pages .

Tim Berners-Lee is known as the father of the World Wide Web .

To structure an HTML page with specific aesthetic features: set the title using `<title>MAHARAJA: Home</title>`, define the page background as yellow using `<body style='background-color:yellow;'>`, configure link colors with CSS such as `a:link {color:green;}` and `a:visited {color:blue;}`, set all font types to Arial via `<body style='font-family:Arial; color:black;'>`, except headings like `!!MAHARAJA!!` in Courier and red: `<h1 style='font-family:Courier;color:red;'>!!MAHARAJA!!</h1>`. Also link inner pages with `<a href='IndVeg.html'>Vegetarian</a>` for sections .

To display a paragraph in red color with a font size of 4, except for its first letter which should be size 7 and blue, you would use the following HTML code: `<p style='color:red; font-size:4;'><span style='color:blue; font-size:7;'>F</span>ollowing text of the paragraph.</p>` .

The HTML tag `<head>` defines the header of the HTML document and is used to contain metadata and link stylesheets or scripts. It does not directly affect the appearance of a document's content .

You might also like