- What is programming and why should I care?
- Should I learn programming or should I hire someone else to do it?
- Come up with two ideas and discuss how technology could make them a reality.
- We will talk about the request-response cycle and how this integrates with front and back end technologies.
- HTML and CSS work together to create the front end structure and design.
- Front end frameworks and the grid system.
- Tags allow you to set up your document's structure.
- Attributes allow you to add additional information to a tag.
- Attributes also allow you to bridge the gap between HTML and CSS.
- Divs are like empty rectangles.
- They help organize content on the page.
<div class="margin-top-20 logo">
My Text Inside
</div>
- Inputs allow users to enter data to be saved to a database.
- They come in different forms to facilitate the specific data entry type.
<input type="text" class="form-control" />
- Select lists allow users to select options from a dropdown menu.
<select>
<option value="USA">United States</option>
</select>
- Buttons are HTML elements that give users the ability to submit the data entered as well as transition to new pages.
<button>My Button</button>
- CSS stylesheets provide the look and feel of the website.
- There are two main ways of referencing CSS in the HTML so you can apply styles - classes and IDs.
- Consider this HTML:
<div class="header">
My Header
</div>
- Here we have a class attribute that can serve as the bridge between the HTML and CSS code.
- Here is how we would reference this class in the stylesheet:
.header {
font-size:20px;
background-color:blue;
}
- We could also use IDs to reference the style:
HTML
<div id="header">
My Header
</div>
CSS
#header {
font-size:20px;
background-color:blue;
}
The main difference between classes and IDs is that classes can be used multiple times in the HTML document whereas IDs should only be used once.
- In order to run external CSS you need to link it to the HTML. This usually goes in the
head
tag:
<link rel="stylesheet" href="css/style.css" />
- JavaScript enables interaction with the page.
- In order to run external JS you need to link it to the HTML. This usually goes before the closing
body
tag:
<script src="js/app.js"></script>
- CSS is a powerful language and has an easy-to-learn syntax.
- CSS can be used to achieve everything from pixel-perfect colors to advanced animations.
- If you want to see a couple examples, check these out:
- There are three main ways to use colors in CSS - semantic, HEX values, and RGB(A) values.
div {
background-color:black;
}
div {
background-color:#000000;
}
div {
background-color:rgba(0,0,0,0.5);
}
- CSS gradients were introduced as of CSS3.
- They allow for a gradient of colors to be applied across multiple solid colors.
- These are hard to write via raw CSS, so generators are often used.
- Let's have a look at one here.
- Create three divs via Codepen with a width, height, and border.
- Style them all differently via classes or ids (your choice) by giving them varying colors using a different method each time.
- Make sure one uses a gradient.