1.
The default horizontal alignment for
is _______________?
Correct Answer
B. Left
Explanation
The default horizontal alignment for text is left. This means that the text will be aligned to the left margin of the page or container.
2.
Choose the correct HTML tag for the largest heading.
Correct Answer
A. H1
Explanation
The correct HTML tag for the largest heading is h1. The h1 tag is used to define the most important heading on a webpage, typically the main title or heading. It is also the largest heading size in HTML, with h2 being slightly smaller, h3 even smaller, and so on.
3.
Which is the best reason for using a closing (p) tag in your document when you open a paragraph tag?
Correct Answer
B. All tags must be properly closed.
Explanation
The best reason for using a closing (p) tag in your document when you open a paragraph tag is that all tags must be properly closed. In HTML, it is important to close all tags to ensure the proper structure and formatting of the document. Failure to close tags can lead to errors and inconsistencies in the rendering of the webpage. By closing the (p) tag, you are following the correct syntax and ensuring that the paragraph is properly defined and separate from other elements on the page.
4.
Which attribute is correct to apply a background color to a tag?
Correct Answer
C. Bgcolor
Explanation
The correct attribute to apply a background color to a tag is "bgcolor".
5.
Which tag will insert a line across the page?
Correct Answer
D. Hr /
Explanation
The correct answer is hr /. The hr tag in HTML is used to insert a horizontal rule or line across the page. It is a self-closing tag, meaning it does not require a closing tag. When used, it creates a horizontal line that can be used to visually separate sections or content on a webpage.
6.
Choose the correct HTML tag to make text italic.
Correct Answer
B. I
Explanation
The correct answer is "i" because the "i" tag is used to make text italic in HTML.
7.
What command would you use to add a non-breaking space to your document?
Correct Answer
A. (& nbsp ;)
Explanation
The correct answer is ( ). This command is used to add a non-breaking space to a document. The " " is an HTML entity that represents a non-breaking space character. It is commonly used when you want to add space between two words or elements in a document, but you don't want the browser to break the line at that point.
8.
_____________ are additional features that can be added to tags to specify additional properties of that particular tag.
Correct Answer
B. Attributes
Explanation
Attributes are additional features that can be added to tags to specify additional properties of that particular tag. They provide extra information about the elements and help define their characteristics. By using attributes, developers can customize the behavior and appearance of HTML elements, making them more interactive and dynamic. Attributes include properties such as size, color, alignment, and many others, allowing for greater flexibility and control in web development.
9.
What tag do you use for the bold text?
Correct Answer
A. B
Explanation
The correct answer is "b" because the "b" tag is used to make the text bold in HTML.
10.
Which of the following is NOT found in the body section of an HTML document?
Correct Answer
C. Title
Explanation
The title tag is not found in the body section of an HTML document. The title tag is used to define the title of the document, which appears in the browser's title bar or tab. It is placed within the head section of the HTML document, not in the body section. The body section contains the content that is displayed on the webpage, such as paragraphs (p), horizontal rules (hr), and images (img).
11.
HTML stands for ___________________?
Correct Answer
A. Hyper Text Mark Up Language
Explanation
HTML stands for Hyper Text Mark Up Language. It is a standard markup language used for creating and structuring web pages. It is the main language used for designing and presenting content on the World Wide Web. HTML uses tags to define elements and their properties, allowing the browser to interpret and display the content accordingly.
12.
What is the proper tag to set a horizontal line to span 50% of your screen?
Correct Answer
A. Hr width=’50%’ /
Explanation
The proper tag to set a horizontal line to span 50% of your screen is "hr width='50%' /". This tag specifies the width of the horizontal line to be 50% of the available screen width.
13.
How can you justify a paragraph in your web page?
Correct Answer
D. P align=’justify’
Explanation
The correct answer is "p align='justify'". This attribute is used to align the text within a paragraph to justify, which means that the text will be aligned to both the left and right margins of the web page. This creates a clean and professional look for the paragraph, making it easier for readers to follow along and understand the content.
14.
What is a tag?
Correct Answer
C. Instructions to the web browser that specify how to format text, which objects to insert
Explanation
A tag is a set of instructions to the web browser that specify how to format text and which objects to insert. It is represented by a left and right angle bracket with the name of the tag between the brackets. Tags are used in HTML to structure and style the content of a webpage. They define elements such as headings, paragraphs, links, images, and more. By using tags, web developers can control the appearance and behavior of the webpage, making it visually appealing and interactive for the users.
15.
Web pages should be saved with what file extension?
Correct Answer
B. .htm or .html
Explanation
Web pages should be saved with the file extension .htm or .html. This is because .htm or .html file extensions are recognized by web browsers as HTML files, which contain the code and content of a webpage. By saving web pages with these file extensions, the browser knows to interpret the file as an HTML document and display it correctly.
16.
HTML tags consist of what?
Correct Answer
A. A left and right angle bracket with the name of the tag between the brackets
Explanation
HTML tags consist of a left and right angle bracket ("") with the name of the tag between them. These tags are used to instruct the web browser on how to format text and which objects to insert. The tags are essential for structuring the content and defining the elements on a webpage. The correct answer accurately describes the basic syntax of HTML tags.
17.
How are closing tags distinguished from their corresponding opening tags?
Correct Answer
D. / (forward slash)
Explanation
Closing tags are distinguished from their corresponding opening tags by the presence of a forward slash (/) before the tag name. This forward slash indicates that it is the closing tag for the specific element and helps in properly structuring and organizing the HTML code.
18.
Instructions that allow you to specify how you want your text to appear and to instruct the browser to include specific images in your document are called _________ tags.
Correct Answer
B. HTML
Explanation
HTML stands for Hypertext Markup Language. It is a standard markup language used for creating web pages and applications. HTML tags are used to structure the content and provide instructions to the browser on how to display the text, images, links, and other elements on the webpage. Therefore, HTML tags are specifically designed to allow users to specify how they want their text to appear and to instruct the browser to include specific images in the document.
19.
Which tag pairs marks the beginning and the end of an HTML document?
Correct Answer
B. Html.../html
Explanation
The correct answer is html..../html. The HTML document begins with the tag and ends with the tag. These tags enclose the entire HTML content of the document, including the head and body sections.
20.
What is the first tag in your web page?
Correct Answer
D. Html
Explanation
The correct answer is "html" because the "html" tag is the first tag in a web page and it serves as the root element of the HTML document. All other tags and content within the web page are nested inside this "html" tag.