Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 43 additions & 22 deletions GA-worksheet.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
####Name:
####Name: Shenisis Kirkland
####ScriptEd
####Topic: HTML, CSS, and JS

Expand All @@ -7,61 +7,78 @@

##Project #2 Part #1: Header HTML
1. What is the purpose of the header tag?

The header tag of a website holds other tags inside it like <body>.
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The header tag is actually within the body. It holds the introductory material for the website, such as a banner, logo, or navigational links. Check it out on Buzzfeed.com. The top of the page that lets you know that it is Buzzfeed is the header (inspect element to clarify).

2. What is a Navigation Bar?
A navigation bar is a series of links in a website.
3. What tag do we use to make a navigation bar?
We use the <ul> tag to make a navagation bar.
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also use <li> and<a> tags


3. What tag do we use to make a navigation bar? < >

4. <ul> Stands for _____________________
<li> Stands for ______________________
4. <ul> Stands for unordered list
<li> Stands for list item

5. What does the <a> tag do?
It creates a link to another page.

6. What would the line of HTML below do?

``` html
<a href="http://www.google.com">Google</a>
```
This line of html would create a link to google.com named Google.

##Project #2 Part #2: Style the Header with CSS

1. What advantages does the `<link>` tag have over the `<style>` tag?

Both the link tag and the style tag are ways to include CSS in an html file. The link tag in particular accesses CSS from an external file instead of keeping it all written in the html like the style tag.
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Why would we want to keep the HTML and CSS separate? Look up "separation of concerns."


2. What is normalize.css?

normalize.css is a CSS file that makes the code flexible to any browser. It renders all elements more consistently and in line with modern standards.

3. Why do we need to add a padding property to the `<ul>` tag?

We needed to add the paddling property to the ul tag because the links were off-center after centering all the elements on the page. The browser compensated for the the bullet points, so we needed to add padding to counteract it and pad all sides.

4. What does the “inline” property do to a list of items?

The inline property lines the list of items horizontally on the same line. They exist within the normal flow of text.

5. What do the following padding values do?

padding: 25px 50px 75px 100px;

* top padding is __px
* right padding is __px
* bottom padding is __px
* left padding is __px
These values create specific padding values for each side by controlling each side's paddling individually.
* top padding is 25px
* right padding is 50px
* bottom padding is 75px
* left padding is 100px

padding: 20px;

* top padding is __px
* right padding is __px
* bottom padding is __px
* left padding is __px
This value refers to all sides of the element because it's just one value.
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be 20px on all sides, but you've got the idea!

* top padding is 10px
* right padding is 10px
* bottom padding is 10px
* left padding is 10px

6. What is the difference between padding and margin?
Margin refers to the space outside and around an element. While padding refers the the space inside th element.

7. What did border-radius do to the square border around the image?
The border-radius created the rounding effect on the border.

##Project #2 Part #3: Responsive Design and Javascript

1. Why is responsive design becoming a more important aspect to consider when making a website compared to ten years ago?
Before ten years ago there were no smart phones, ipads, or tablets. Those new devices each have their own format. Responsive design allows these increasingly more popular devices to view the content as any other device.

2. Why is it important to center and narrow text on a webpage? (think visually)
I think it's important for you to center the text because if it's centered and narrow it's within line-of-sight which makes it easier to read.

3. What does this line of HTML do to an object? `margin: 0 auto;`
This line of HTML creates 0 margin on the top and bottom of the element and auto margin on the left and right. It centers the element to the center of the page.

4. How does using `max-width` instead of `width` improve the readability of any webpage?
By using max-width instead of width it tells the a program to activate with a limit of width or max-width. This allows browsers with lesser widths to be able to read it.

5. The media query to the below will not be activated unless…

Expand All @@ -72,24 +89,28 @@
}
}
```

This media query will not be activated unless the browser is smaller than 500px.

6. What does each digit of this Hexidecimal Color Code represent? #E78

E represents ...
E represents a high level of red

7 represents ...
7 represents a level of greeness

8 represents ...
8 represents a level of blueness

7. What is the Hex Color Code for true purple? #
7. What is the Hex Color Code for true purple? #609

8. _______________ is the programming language that allows websites to be interactive.
8. Javascript is the programming language that allows websites to be interactive.

9. This tag allows us to add JavaScript into any webpage? < >
9. This tag allows us to add JavaScript into any webpage? < script >

10. What is an event?
An event is one result of using your mouse.
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Events are anything that happen to your webpage, like page load, so they are not limited to mouse events.


11. How does JavaScript use events?
Javascript uses events to listen to specific events and takes action when it happens.

**Activity** Copy all the text from your project so far into a new JS Bin workspace. From there you can change the site to an “About Me” website about yourself. To do this you will need to do the following:

Expand Down