Hardware?
Physical components of computer
Software
Computer programs
What are computer programs?
Written instructions to complete a task and these instructions are excuted by a computer
What is a browser
A program
What is a search engine?
Program that searches through indexes
How do a word processor and text editor differ?
A text editor allows use to write new code without formatting.
Word processors have formatting
What does a browser do?
Interprets html document and displays it
What was html contain
Text and tags
What type of coding is this?
element name{property name: prop value;}
CSS
What is a comment in CSS
/* this is an example of a comment */
The first two spaces in hexadecimal code stand for?
The amount of red in the color
In CSS if we wanted to apply color to the entire background what would be the code
In the style-
Body{background-color:lime;}
Images will automatically tile across the page unless?
You put
Body{background-image:url(image url here); background-repeat:no-repeat;}
To make a background size to the page you?
Background-size:cover;
To change a link when visited, what do you do in CSS
A:visited {color: pink;}
To change a link size when clicking in css
A:hover{font-size:24pt;}
What should a class look like in the body and in CSS
In body-
Class=“cow”
In style-
.cow{property name:property value;}
What should an Id look like in the body and style?
In body- id=“Gabe”
In style-
#gabe
What is machine language
Binary code
Assembly language is only a bit more advanced than what language
Binary
What is an assembler
Translates assembly code to binary code
What is a compiler
Executed line by line into binary
What are syntax rules?
Rules for language used in High level code
A syntax error is when?
Something is wrong with the syntax language
JavaScript -
Goes inside of markup language and is interpreted by browser
In logic flow-
Sequential
Statements are arranged in neat lines and computer excutes them in order
In logic flow-
Conditional
Contains coding that essentially says
If _______ is true than we do _________ but if not we skip it
In logic flow-
Looping
Tells the computer to repeat a task x number of times without having to write the code x number of times
Variables go in what section of the html document
Script element
A prompt must include what?
A name
Ex.
Name=prompt(enter your name)
Now the information entered is stored in ‘name’
A string data type is?
An array of characters
Boolean data type is?
True/false
What is an example of an assignment statement
X=27
27 is the assignment statement
What is cancatination?
Puts two values end to end
What are two examples of comments In JavaScript?
//text// OR /text/
How do you change the background color in JavaScript with a prompt?
Favcolor=prompt(“please enter favorite color”); document.body.style.backgroundColor=favcolor;
Event handlers?
Change events and are used locally
An example of a event handler is?
Onclick=“this.style.textDecoration=‘underline’;
The underline is an assignment statement
An example of trading an image back and forth when mousing over is
<img></img>
<img></img>
A function is?
A module of code that isn’t excuted until it is called
How do you see the html code for a website?
Right click and hit view source
What does a browser do when encountering an unknown tag?
Doesn’t show it
Can Microsoft word create a html document inserting tabs as html doc?
Yes but it looks like garbage
What is an element vs. a tag?
<h1> is a tag
<h1>
h1 is the element name and id is the attribute name </h1></h1>
What are some examples of some attributes?
Id, class, alt, src
What are some examples of empty elements
<br></br>
Give an example of nesting elements
<h1><strong>text in middle</strong></h1>
What are some example of phrase elements
Strong
Em
What are some examples of block level elements
h1
Body
p
div (although div is also considered a container element)
Give an example of a comment in html