Answers Already Passed
What is the purpose of the `<head>` element in an HTML document?
✔✔The `<head>` element contains metadata, links to stylesheets, and scripts, but does not
display content directly on the webpage.
What is the function of the `<title>` tag in HTML?
✔✔The `<title>` tag defines the title of the webpage, which is displayed in the browser's title bar
or tab.
How do you apply an external CSS file to an HTML document?
✔✔An external CSS file is linked to an HTML document using the `<link>` element within the
`<head>` section.
What is the difference between classes and IDs in CSS?
✔✔Classes are reusable and can be applied to multiple elements, while IDs are unique and
should be applied to only one element on a page.
1
, What property is used to change the background color of an element in CSS?
✔✔The `background-color` property is used to change the background color of an element.
How do you create a hyperlink in HTML?
✔✔A hyperlink is created using the `<a>` tag, with the `href` attribute specifying the URL.
What is the purpose of the `<div>` element in HTML?
✔✔The `<div>` element is used as a container for grouping and styling other HTML elements.
How can you make text bold in HTML?
✔✔Text can be made bold using the `<strong>` or `<b>` tags.
What CSS property controls the text size?
✔✔The `font-size` property controls the text size in CSS.
How do you center an element using CSS?
✔✔An element can be centered using `margin: auto;` on a block-level element with a defined
width.
2