1.
What does HTML stand for?
Correct Answer
B. Hyper Text Markup Language
Explanation
HTML stands for Hyper Text Markup Language. It is a standard markup language used for creating the structure and presentation of web pages. HTML uses tags to define elements such as headings, paragraphs, links, images, and other content. The correct answer is "Hyper Text Markup Language" because it accurately represents the acronym and the purpose of the language.
2.
What symbol indicates a tag?
Correct Answer
A. Angle brackets e.g.
Explanation
The angle brackets, e.g. , are commonly used in HTML and XML to indicate the start and end of a tag. Tags are used to define elements in a markup language, and the angle brackets serve as a visual indicator for where the tag begins and ends.
3.
Which of these is a genuine tag keyword?
Correct Answer
C. Body
Explanation
The genuine tag keyword in this list is "body". In HTML, the "body" tag is used to define the main content of a webpage. It contains all the visible content such as text, images, links, etc. The "header" tag is used to define a header section, "bold" is not a valid HTML tag, and "image" is not a tag keyword but an element used to display an image within the HTML document.
4.
A CSS file can be applied to only one HTML file.
Correct Answer
B. False
Explanation
This statement is false. A CSS file can be applied to multiple HTML files. In fact, it is common practice to use a single CSS file to style multiple web pages. This allows for consistency in the design and layout across the website. By linking the CSS file to multiple HTML files, any changes made to the CSS will be reflected in all the linked HTML files, saving time and effort in maintaining the website's design.
5.
What is the correct tag for a line break?
Correct Answer
D. "br /"
Explanation
The correct tag for a line break is "br /". This tag is used in HTML to create a line break or a new line within a paragraph or block of text. It is a self-closing tag, which means it does not require a closing tag. When the browser encounters this tag, it inserts a line break and starts a new line.
6.
What does CSS stand for?
Correct Answer
C. Cascading Style Sheet
Explanation
CSS stands for Cascading Style Sheet. This is a language used for describing the look and formatting of a document written in HTML or XML. It is responsible for controlling the visual presentation of web pages, including layout, colors, fonts, and other design elements. The term "cascading" refers to the way styles are applied to elements, where multiple style sheets can be used and their rules are combined to determine the final appearance of the page.
7.
Where should a CSS file be referenced in a HTML file?
Correct Answer
C. Inside the head section
Explanation
A CSS file should be referenced inside the head section of an HTML file. This is because the head section is where the metadata and other non-visible elements of the webpage are placed. By including the CSS file in the head section, it ensures that the styles defined in the CSS file are loaded and applied before the HTML content is rendered in the body section. Placing the CSS file in the head section also follows best practices and helps to maintain a clean and organized structure of the HTML file.
8.
What is the correct format for aligning written content to the center of the page in CSS?
Correct Answer
A. Text-align:center;
Explanation
The correct format for aligning written content to the center of the page in CSS is "text-align:center;". This CSS property is used to horizontally align the text within its container. By setting the value to "center", the text will be centered in the container. The other options provided ("font-align:center;", "text:align-center;", "font:align-center;") are incorrect and do not exist in CSS.
9.
What is the correct format for changing the background colour of a div in CSS?
Correct Answer
D. Background-color:red;
Explanation
The correct format for changing the background color of a div in CSS is "background-color:red;". This is because the CSS property for changing the background color is "background-color", not "bg-color" or "background-colour". The value "red" specifies the desired color.
10.
What is the correct format for a div?
Correct Answer
B. Div id="example"
Explanation
The correct format for a div is "div id="example"". This format uses the "div" tag to define a division or a section in an HTML document, and the "id" attribute is used to give the div a unique identifier, in this case, "example". This format follows the standard syntax for creating a div element with an id attribute.