HTML – Basic Web Page Creation Quiz - ICSE Class 6 Computer Studies
Free practice quiz: HTML – Basic Web Page Creation (ICSE Class 6 Computer Studies). 51 multiple-choice questions with answers and explanations. Play online, no sign-up needed.
Play all 51 questions freeSample questions
What is the correct HTML tag for creating a hyperlink?
- <link>
- <a>
- <href>
- <hyperlink>
Show answer
Answer: B. <a>
The `<a>` tag, which stands for anchor, is used to create hyperlinks to other pages or resources. The `href` attribute within the `<a>` tag specifies the URL of the page the link goes to.
What does the `src` attribute in an `<img>` tag represent?
- The size of the image.
- The source URL or path of the image.
- The alignment of the image.
- The description of the image.
Show answer
Answer: B. The source URL or path of the image.
The `src` attribute is essential for the `<img>` tag and specifies the path to the image file that will be displayed on the webpage. It can be a relative path or an absolute URL.
What is the purpose of the `name` attribute in form input elements?
- To set the initial value of the input field.
- To provide a label for the input field.
- To identify the input field when the form data is submitted to the server.
- To control the visual appearance of the input field.
Show answer
Answer: C. To identify the input field when the form data is submitted to the server.
The `name` attribute is essential for form submission. It assigns a name to the input field, which is used to identify the data entered by the user when the form is submitted. For example, if you have `<input type='text' name='username'>`, the submitted data will be sent as `username=entered_text`.
Which tag is used to emphasize text, typically displaying it in italics?
- <i>
- <italic>
- <emphasis>
- <em:
Show answer
Answer: A. <i>
The `<i>` tag is used to display text in italics. Similar to bolding, `<em>` also displays text in italics but semantically emphasizes it. For stylistic italics, `<i>` is the correct choice.
What is the purpose of the `<dt>` tag within a definition list (`<dl>`)?
- To provide the definition of a term.
- To specify the term being defined.
- To mark the start of the definition list.
- To indent the definition.
Show answer
Answer: B. To specify the term being defined.
The `<dt>` tag stands for 'definition term'. It is used within a `<dl>` element to specify a term that is being defined. The `<dd>` tag then follows to provide the definition for that term.