HTML Fundamentals and Related Theory
Constructing Webpages with HTML
CSS Fundamentals
Combining HTML with CSS
Advanced HTML/CSS Features
100


What is the primary role of the <head> section in an HTML document?



To hold meta-information, links to stylesheets, and other non-visible data

100


Which of the following tags is used to create an ordered list?



<ol>

100


What does CSS stand for?



Cascading Style Sheets

100


Observe the following HTML code below, along with the accompanying CSS. What could be added to the CSS rule above in order to apply a thin black border?



<div class="section1">Text Section</div>

div.section1 {
    width: 200px;
     margin: auto;
}


border: 1px solid #000000;




100


For an HTML custom element, which lifecycle callback is called when the custom element is first connected to the document's DOM?



connectedCallback()




200


What is the primary purpose of the <main> ag in an HTML document?



To denote the primary content, distinct from sidebars or footers.




200


If you wanted to create a list with bullet points, which type of list would you use?



Unordered list

200


Which of the following properties controls the space outside the element, between it and any neighboring elements?



Margin

200


What is the primary purpose of using vendor prefixes in CSS?



To enable styles for specific browsers or versions




200

Which of the following tags is used to represent the header of a table?


<th>


300


What does the 'viewport' meta tag primarily influence?



How the document is scaled and displayed on different devices.

300


Which HTML tag should you use to semantically indicate that a word is of strong importance?



<strong>

300


If you wanted to set the font size to adjust dynamically based on the parent element's size, which unit would you most likely use?



em

300

Given the HTML below, how can a programmer style multiple elements in the same way using CSS?

<h2 class='header'>Subheading</h2>

Make the other relevant elements members of the same class




300


Which of the following encapsulates styles so they don't affect the outside world, and is part of the Web Components spec?



Shadow DOM

400


Which of the following terms best describes HTML?



A markup language

400


Suggest one reason as to why blockquotes may be used



To correctly reference material that comes from a different source




400


Given the CSS rule p { color: red; }, what does p represent?



Selector

400


Which property in CSS is specifically used to control the inheritance of styles?



inherit

400


What is the purpose of the ‘type’ element when creating a user entry form.



To control the type of input required by the user




500


Which HTML tag is commonly used to contain other inline elements but not block-level elements?



<span>

500


How do web browsers handle comments in an HTML document?



They ignore them and do not render them on the page.




500


Which of the following properties is used to set the text color in CSS?



color

500


Which of the following statements is true regarding the usage of IDs and classes in HTML?



An element can have both an ID and a class.




500


Which of the following tag is used for drop down list?



<select>