Code Fellows 201
Structural markup: the elements that you use that helps you understand what headings and or paragraphs are Semantic markup: this is what give the user extra information. Example like if you have written a quote it could tell you who said it, if you used an acronym if could tell you what it stands for.
Tags are know as markup.
Beware: of the strong and emphasis tags!
HTML is the structure of the page but the CSS gives it the look that the designer is shooting for. You can specify the rules that the content will follow. This is where you change the background color, the margins, how you align the footer to the bottom of the page. How the page will be displayed to the end user - that will be determined here!
If the image above displayed properly, you will see all the elements of a web page boxed by its different elements.
Tips and Tricks
page 251 of Jon Duckett (HTML and CSS design and build websites)
#
Scripts are a series of instructions that a computer can understand and follow 1 step at a time
The Other Basics! How do you declare a variable?
var nameThatVariable;
How do you assign a value to a variable?
var nameThatVariable = 3;
What is a variable and a data type?
A variable will be a data type. Datatypes could be a string ‘A string are characters in queotes’ or an integer which is a number. It could also be null or undefined or a boolean. But we will come to that later. A datatype is what JavaScript used to tell the difference between numbers, string and true/false values(boolean).
Arrays? Something tells me an Array has nothing to do with the ocean critter.
That is because it doesn’t! An array is a string of datatypes (a list of variables).
var list; list = [‘apples’, ‘bread’, ‘milk’, ‘eggs’];
Expressions and operators go hand in hand but another source to help with a visual,Click here
For the sake of keeping life simple, an expression results in a value. However there are two types of expression you can have.
var name = ‘Lindsey’;
var area = 7 * 7;
Operators!
Decisions are a huge part of writing code. Decisions help determine the output the user is looking for, or putting in. The decision that needs to be made within each step of code is planned during the design process of creating the program. Usually a flow chart will help the developer write which way the code will behave depending on decisions. With decision making comes evaluation conditional and conditional statements. This is a great example of the code coming to ‘a fork in the road,’ making a decison and continuring on the correct path.
Decisions in code need a way to be presented to the user. In the code conditional statements would be used to help decide the path of the data.
ThE StAtEmEnTs oF ChOiCe You got to see an If statement example, what other statements can developers use?
Lets look at an if next to an if… else statement.