What does the <!DOCTYPE html> declaration do?
It tells the browser that the document is written in HTML5.
What does display: none; do?
It hides an element and removes it from the page layout.
What’s the difference between let and const?
let can be changed; const cannot be reassigned.
What keyword is used to create a function in JavaScript?
function
Who is the founder of CFL?
Chris Troy
What is the purpose of the <head> section in an HTML document?
It contains information about the webpage (like the title or linked CSS), not content shown on the page.
What does display: block; do?
It makes an element take up the full width available, starting on a new line.
What happens if you try to use a variable before declaring it in JavaScript?
It gives an error or is undefined because the variable isn’t ready yet.
What’s the difference between a for loop and a while loop?
A for loop runs a set number of times; a while loop runs until a condition is false.
what languages are being taught in cfl Right Now?
2: Python, JavaScript
What’s the difference between <div> and <span>?
<div> is a block-level element; <span> is inline.
What does margin control in CSS?
The space outside an element’s border.
What’s the difference between == and === in JavaScript?
== compares only values; === compares both value and type.
What does return do inside a function?
It sends a value back from the function to where it was called.
Who teaches the class in the big room?
Elisha
What does the alt attribute in an <img> tag do?
It provides alternative text if the image doesn’t load.
What does padding control in CSS?
The space inside an element’s border, between the content and the border.
What type of data is stored inside quotes, like "Hello" or 'World'?
A string.
What does the if statement do?
It checks a condition and runs code only if the condition is true.
Who is the director of growth?
Da'Neilia
What is the purpose of the <form> element in HTML?
It’s used to collect user input and send it to a server or script.
What’s the difference between id and class selectors in CSS?
id targets one specific element (#idname), while class can target multiple (.classname).
What is a function used for in JavaScript?
To store code that can be reused by calling it when needed.
What will this code output?
for (let i = 0; i < 3; i++) {
console.log(i);
}
0
1
2
Who is the Newest member of CFL?
Luis