What goes inside the <head> </head>
meta data such as the title of the website, links to external files such as css or javaScript files, and links to external libraries.
If HTML is used to make the structure of a website then CSS is used for what?
Styling and making the website pretty. HTML is like the skeleton while css is the skin.
What is javaScript used for?
To make a website interactive.
What is a computer?
A device used for calculation.
What does TikTok use to sort content for its users?
Algorithms and Neural Networks.
The main content of your website.
What is the best way to implement css into your website?
external styling
Before I can edit an HTML element in javaScript, what must I do first?
Declare it as a variable by writing
let variableName = document.querySelector(".className");
What does Bloom's Taxonomy measures?
What is a filtered bubble?
A state of intellectual isolation caused by personalized searches when algorithms selectively guesses the most pleasing content for the user
To create divisions or sections in your websites so that you can easily edit parts of your website.
How would I change the background color using css?
selector{
property: value;
}
body{
backgroundColor: green;
}
How do I make an edit to a string of html?
elementName.innerHTML = "edit to string here";
What is used to determine if a computer is intelligent or not?
Turing test and must pass with 80%
What is confirmation bias?
The tendency to search for, interpret, favor, and recall information in a way that confirms or supports one's prior beliefs or values
How do you add an image to a website?
<img src = "link here>
selector{
display: none;
}
How do I make something interactive when a user clicks a button?
buttonName.onclick=function(){
}
What is an algorithm?
A set of rules that takes an input, makes its calculation, and provide an output.
How do you create a hyperlink?
<a href="link here> Clickable Thing Here </a>
What is the difference between class and id? How are they called in CSS and javaScript?
Class can be used with multiple elements while id is unique and can only be used with one singular element.
class is called like this: .className
id is called like this: #idName
What happens when I run this?
p{
color:green;
}
p{
color:red;
}
Any text in the <p> tag will be red since CSS stands for Cascading Style Sheet, it reads from top down meaning the property given will be the one shown.
How do I make an image appear/disappear when a button is click?
button.onclick=function(){
className.style.display = "block";
}
button.onclick=function(){
className.style.display = "none";
}
What is a neural network?
A neural network replicates how the human brain thinks so that we can train artificial intelligence to learn.
It has 3 layers: input, hidden, output.
How do you comment in HTML, CSS and javaScript?
HTML: <!-- Comment here --> (multiple lines)
CSS: /* Comment Here */ (multiple lines)
javaScript: /*Multiple Line Comment*/
and //Single line comment