HTML Practical Test for Class X
HTML Practical Test for Class X
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 .