WorksheetsGrade 8 Computer Programming Quiz
Total questions: 50
Worksheet time: 25mins
What does HTML stands for?
Hyper Text Markup Language
Hyper Text Machine Language
Hyper Text Markup Lessons
Hyper Texture Markup Language
The _____________ declaration defines that this document is an HTML5 document.
<!DOCTYPE html:>
<:DOCTYPE html:>
<!DOCTYPE html>
<!DOCTYPE html}>
A tag that specifies a group of one or more columns in a table for formatting.
<caption></caption>
<colgroup></colgroup>
<table></table>
<thead></thead>
The _____________ element specifies a title for the HTML page (which is shown in the browser's title bar or in the page's tab).
<head>
<title>
<body>
<html>
The _______ element is by default a block element, meaning that it takes all available width, and comes with line breaks before and after.
<div>
<col>
<link>
<foot>
The __________ element defines the document's body, and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.
<head>
<title>
<body>
<html>
The HTML ________ tag specifies an inline frame. An inline frame is used to embed another document within the current HTML document.
<img>
<iframe>
<form>
<framset>
_____ defines a thematic break in an HTML page and is most often displayed as a horizontal rule.
<i>
<p>
<br>
<hr>
Checkboxes let a user select ZERO or MORE options of a limited number of choices. The correct tags for checkboxes is ________________ .
<input type="checkbox">
<input type=checkbox">
<input type=checkbox>
<input type="checkbox!>
What is the correct HTML for adding a background color?
<background>Yellow</background>
<body style=background-color:yellow;”>
<body bg=yellow>
<body background=”yellow”>
The correct tag in inserting image on your webpage is ____________ .
<img></img>
<body></body>
<strong></strong>
<small></small>
This element is useful for screen-reader users, because the screen-reader will read out loud the label when the user focus on the input element.
Select
Input
Label
Form
The file extension of Graphics Interchange Format is ________ .
<.apng>
<.ico>
<.gif>
<.svg>
The output element represents the result of a calculation (like one performed by a script) and the correct tags of this is _____________ .
<output name="x" for="a b"></output>
<input type="number" id="b"></input>
<output name="x" for="a b"><output>
<input type="number" id="b></input>
The correct HTML tag for inserting an image with specified height is ______________________.
<img src="img_girl.jpg" height=600>
<img src="img_girl.jpg">
<img src="img_girl.jpg>
<img src="img_girl.jpg" height=”600”>
A file path describes a location of a file on a website folder structure and the correct tag is _____.
<img src="images/picture.jpg">
<img src=img_girl.jpg">
<img scr="img_girl.jpg>
<img scr="img_girl.jpg" height=”600”>
These tags help organize content hierarchically and improve accessibility. Which of the following HTML tags is used to define the least important heading on a webpage?
<h1>
<h3>
<h6>
<h4>
Inline styles are applied directly within an HTML tag using the style attribute. Which of the following is the correct way to apply an inline style that changes the text color to blue in HTML?
<p style="color:blue;">This is a paragraph.</p>
<p >This is a paragraph.</p>
<p >This is a paragraph.</p>
<p >This is a paragraph.</p>
When rendered in most browsers, it automatically adds quotation marks around the quoted text. Which HTML tag is used to define a short inline quotation?
<quote></quote>
<blockquote></blockquote>
<q></q>
<cite></cite>
The picture element is used to group multiple images for responsive design. It allows you to specify different images for different screen sizes using the
<img> tag
<picture> tag
<figure> tag
<div> tag
The style attribute is used to apply inline CSS directly to an HTML element. Which of the following is the correct way to set the text color to red using HTML?
<p style="font-color:red;">This is a paragraph.</p>
<p style="color:red;">This is a paragraph.</p>
<p style="text-color:red;">This is a paragraph.</p>
<p style="background-color:red;">This is a paragraph.</p>
The bold tag makes text bold purely for visual emphasis, without implying importance. Which HTML tag is used to make text bold?
<strong></strong>
<b></b>
<bold></bold>
<em></em>
The superscript tag renders text as superscript, which is useful for mathematical expressions or footnotes. From the list below, which of the following is the correct tags?
<sup></sup>
<sub></sub>
<super></super>
<script></script>
Hyperlinks are one of the most essential features of HTML, allowing users to navigate between web pages or resources. Which of the following is the correct syntax for creating a hyperlink in HTML?
<link href='https://example.com'>Visit Example</link>
<url href='https://example.com'>Visit Example</url>
<a href=”https://example.com”>Visit Example</a>
<href='https://example.com'>Visit Example</href>
HTML tables are used to organize data into rows and columns.Which of these elements are all
