You are being given starter code for today, in the index.html and app.js files inside of this directory. The success of your code will be determined by whether it passes tests that are in the tests.js file. You do not need to do anything with tests.js, though you should take a look at it to see how it works.
Steps to create your repo using the template:
Click the green Use this template button
Name your repo
Click the green Create repository from template button
Here are a couple of things to keep in mind:
Create a new branch for each code problem, and merge each branch into main on GitHub (and then pull back into main on your laptop!) when the problem is completed. Do the problems in order. Don’t forget to pull the updated main branch from GitHub into your local main branch each time you merge a pull request, then make a new branch from main for the next problem.
Place no function calls in your code, unless inside of another function. Everything should be run by hand from the console. This is to give you additional practice using the console and practice efficient app-switching processes.
Submission Instructions
How did this go, overall?
What observations or questions do you have about what you’ve learned so far?
How long did it take you to complete this assignment? And, before you started, how long did you think it would take you to complete this assignment?
Deploy your app to GitHub Pages and add any additional final touches to your CSS. Run a Lighthouse report making sure your site scores between the 50-65 range and add a screenshot of your score to your README.md. Make sure your app is complete and meets all of the requirements from the prior labs. Remove any commented out code or console logs including any commented out console logs that were used in the questionnaire.
Complete all 32 levels of the CSS Diner tutorial. Reference MDN CSS Selectors
GIT vs GITHUB
GIT: is an application. It has versions, branches, merges, forks, does software version control (VCS)GITHUB: is a website that uses git, makes git easier to useGH in CLI = specific for github in terminalBranches:
AboutmeBranches: main (default), whatever is in here usually is good to go live, final version
Creating a branch: git checkout -b branchName when ACP its git push origin newBranchName
git checkout maingit pull origin main to bring those merge changes ingit checkout -b newBranchName, and sends the modified changes to that branch, can only be done before a commitCSS Practice:
Block Elements by default will go full width of page and stack vertical (div, section, footers,ul, li are block)
Inline Element takes up space it needs, goes side by side, slams together
Inline-block: displays inline, side by side, disobeys block elementAbsolute positioning: the element is positioned to the nearest parent element, it moves with the content when the user scrolls, moves out of original layoutRelative positioning: element still occupies space in the page, but it’s just positioned a bit differently. Other elements on the webpage aren’t affected; they stay in their original layout.
HTML
<div class="grandparent">
<div class="parent">
<div class="child">first-child</div>
<div class="child">last-child</div>
</div>
<ul>
<li>
<span>Foobar</span>
<span>Foobar</span>
<span>Foobar</span>
<span>Foobar</span>
<span>Foobar</span>
<span>Foobar</span>
</li>
</ul>
</div>
CSS
body {
background: #ccc
}
div.grandparent {
border: 1px solid black
height 500 px
position: relative
}
div.parent {
border: 1px solid red
height 350px `(if no height, it collapses if child has float so add height or add overflow:hidden)`
position: relative
}
div.child{
border: 1px solid blue
display: inline-block `(can get rid of this and add float:left so no margin that comes with inline-block)`
height 100px
width 100px
position: absolute `(absolute only works if parents have a position or If the element doesn't have any positioned ancestors, it uses the document (or the viewport) as the reference point.)`
bottom: 0px
right: 0px
}
div.child:first-child{
position: absolute
bottom: 0px `(bottom and left go in play only if positioning is placed)`
left: 0px
}
div.child:last-child{
position: absolute
bottom: 0px
right: 0px
}
footer {
background 222
height 100px
width 100%
position: fixed
bottom 0px
left 0px
}
JS Rules - Omitting{} and ; are legit JS code but shouldn’t be optional
Lab 5a steps:
Make a repo from the template
Clone it
Create a branch called question-1
Do teh work for question 1
ACP to question-1 branch
Go to github make a PR
Approve and Merge the PR
On. your machine, switch back to main
Pull main
Create a new branch called question-2
... rinse and repeat
The <img> tag has what 2 required attributes?
What is the difference between Serif and Sans-serif fonts?
What is the purpose of branching?
Fill in the blank: To create a new branch in the terminal, use git checkout ____ <branch name>.
What is a PR or pull request?
Statement on why this topic matter as it relates to what I’m studying in this module:
What is a real world use case for the alt attribute being used in a website?
How can you improve accessibility of images in an HTML document?
alt attribute for every image and including a concise and accurate description of what the image is.alt so that a screen reader doesn’t waste time on it.Provide an example of when the figure element would be useful in an HTML document.
figure element is a semantic container for figures and its caption. Captions are useful for even people who can see an image, but alt is useful for people who can’t see, so they shouldn’t say the same thing.Figureelement is useful when you want to group content with a caption. You can use it for tables, images, videos, audios anything you would like an additional description to go along with it.Describe the difference between a gif image and an svg image, pretend you are explaining to an elder in your community.
GIF: Graphics Interchcange Format, ideal for simple images and animation

SVG: Scalable Vector Graphics, ideal for user interface elements like diagrams, icons, need to be drawn accurately in all sizes.What image type would you use to display a screenshot on your website and why?
JPEG: joint photographic experts group, good for compression of still imagesPNG: portable network graphics, PNG preferred over JPEG for better copy of course image.Describe the difference between foreground and background colors of an HTML element, pretend you are talking to someone with no technical knowledge.
Your friend asks you to give his colorless blog website a touch up. How would you use color to give his blog some character?
What should you consider when choosing fonts for an HTML document?
What do font-size, font-weight, and font-style do to HTML text elements?
font-size: changes the size of the textfont-weight: changes the boldness or thickness of the textfont-style: changes the italics of textDescribe two ways you could add spacing around the characters displayed in an h1 element.
letter-spacing: changes the horizontal spread between characters. It causes characters to spread apart when positive value or brings letters closer when negative value.word-spacing: changes the space between words and similar to letter-spacing words spread apart when positive value and come closer together when negative.If there is no live presentation on campus in this module, select the appropriate presentation from the list below. All presenters are open to connections and invite you to reach out to them, so that you can to learn more about them, their company, and the industry.
Web Accessibility 101 - Dezireé Teague
CSS 101: Transitions & Animations - Brian Nations
Dealing with Workplace Ambiguity - Amanda Iverson
Web Accessibility 101 - Dezireé Teague
Share one or two ways the speaker’s information will change your approach to your career transition.
List a few key take-aways from this presentation.
Share a screenshot of your LinkedIn connection request, including a nicely worded note, sent to the speaker or someone else at their company.

What are your goals while taking this course?
Are there any areas of concern, questions about the course or adjustments we might consider?
What professional proficiency would you consider to be your top strength?
What areas of professional competency would you like to improve?
Write a brief reflection on your learning today, or use the prompt below to get started.
“Adults need to know why to learn something; as soon as they answer this question, they are ready to start.”
The why applies to both large-scale (learning web development as a new profession) and small-scale (learning a particular tool or technique), and your learning journal is an excellent place to identify and contemplate those whys. They are important. So… what is your why?