1.
What are HTML tags?
Correct Answer
D. Both B and C
Explanation
The correct answer is "Both B and C". HTML tags are not alarms at the store, but rather code that is used to structure and format content on a webpage. They tell the web browser how to display the content and help in creating the visual layout of the webpage. So, option B is correct as HTML tags are responsible for how the web browser knows what to display. Option C is also correct as HTML tags are not alarms at the store.
2.
Where is the text of the title tag displayed?
Correct Answer
B. On the browser page, but not the web page
Explanation
The text of the title tag is displayed on the browser page, but not on the web page itself. The title tag is an HTML element that specifies the title of a web page. It is displayed in the title bar of the browser window or in the tab of the browser. However, it is not visible on the actual content of the web page when it is loaded.
3.
How do you create a comment tag?
Correct Answer
A.
Explanation
To create a comment tag, you use the syntax . Comments are used to add notes or explanations within the code that are not interpreted or displayed by the browser. They are useful for providing information to other developers or for temporarily disabling a section of code without deleting it. In this case, the correct answer is the given syntax because it correctly represents the comment tag in HTML.
4.
What are the different levels of headings in HTML?
Correct Answer
C. 1, 2, 3, 4, 5, 6
Explanation
The different levels of headings in HTML are represented by numbers 1, 2, 3, 4, 5, and 6. Heading level 1 is the highest level and represents the main heading of the page, while heading level 6 is the lowest level and represents the least important heading. These heading levels are used to structure and organize the content of the webpage, with higher levels indicating more important and larger headings.
5.
What is the difference between a <[p]> and a <[br]>?
Correct Answer
C. creates a blank line before the next row of text.
Explanation
The correct answer is that "" creates a blank line before the next row of text. This is because the "" tag is used to insert a line break within a single paragraph, which means it only creates a line break without creating a new paragraph. On the other hand, "" is used to create a new paragraph, which results in a blank line before the next row of text.
6.
If I wanted to make the statement bold and underlined, what coding would be best?
I love going to Disneyland.
Correct Answer
E. None of these is correct
7.
Which character entity would you use to display extra spaces on a webpage?
Correct Answer
A. & nbsp;
Explanation
The character entity "& nbsp;" is used to display extra spaces on a webpage.
8.
What two things do you need to create webpages & view them?
Correct Answer
A. A text editor & a web browser
Explanation
To create webpages, you need a text editor to write the HTML, CSS, and JavaScript code that makes up the webpage. A text editor allows you to create and edit the code. Once the webpage is created, you need a web browser to view the webpage. A web browser interprets the code and displays the webpage with all its elements and functionality. Therefore, the correct answer is a text editor and a web browser.
9.
What will be the output of this code? <!--display some text--> <h1>Here is a heading</h1>
Correct Answer
D. Here is a heading
Explanation
The code will output "Here is a heading". This is because the code includes a comment which is not displayed on the webpage. The code then includes an h1 element with the text "Here is a heading", which is displayed as a heading on the webpage.
10.
You have a situation where you want to accept some input from the user that is usually 1-2 paragraphs long. Which of the following form elements would you choose?
Correct Answer
C. Textarea
Explanation
The correct answer is textarea. A textarea element is the most suitable form element for accepting input from the user that is usually 1-2 paragraphs long. Unlike a textbox, which is typically used for single-line input, a textarea allows the user to input multiple lines of text. A drop-down list is used for selecting a single option from a list, and a button is used for triggering an action. Therefore, a textarea is the most appropriate choice for this situation.