Hard HTML
Hard CSS
JavaScript Rules
JavaScript Components (Functions, Loops, etc.)
Code For Life
100

What does the <!DOCTYPE html> declaration do?

It tells the browser that the document is written in HTML5.

100

What does display: none; do?

It hides an element and removes it from the page layout.

100

What’s the difference between let and const?

let can be changed; const cannot be reassigned.

100

What keyword is used to create a function in JavaScript?

function

100

Who is the founder of CFL?

Chris Troy

200

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.

200

What does display: block; do?

It makes an element take up the full width available, starting on a new line.

200

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.

200

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.

200

what languages are being taught in cfl Right Now?

2: Python, JavaScript

300

What’s the difference between <div> and <span>?

<div> is a block-level element; <span> is inline.

300

What does margin control in CSS?

The space outside an element’s border.

300

What’s the difference between == and === in JavaScript?

== compares only values; === compares both value and type.

300

What does return do inside a function?

It sends a value back from the function to where it was called.

300

Who teaches the class in the big room?

Elisha

400

What does the alt attribute in an <img> tag do?

It provides alternative text if the image doesn’t load.


400

What does padding control in CSS?

The space inside an element’s border, between the content and the border.

400

What type of data is stored inside quotes, like "Hello" or 'World'?

A string.

400

What does the if statement do?

It checks a condition and runs code only if the condition is true.

400

Who is the director of growth?

Da'Neilia

500

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.

500

What’s the difference between id and class selectors in CSS?

id targets one specific element (#idname), while class can target multiple (.classname).

500

What is a function used for in JavaScript?

To store code that can be reused by calling it when needed.

500

What will this code output?

for (let i = 0; i < 3; i++) {

  console.log(i);

}


0

1

2

500

Who is the Newest member of CFL?

Luis

M
e
n
u