reading-notes

Class 1 Notes

Why Does This Matter?

the reading information is going to give the basics of how JavaScript,HTML, and CSS work. Its important because it will define terms that will likely be used for the duration of class and all coding in the future.

Reading Questions

Compose a short poem describing how HTTP sends data between computers.

Http Haiku

Browser Sends Request Server Approves Client Call Browser Creates Page

Describe how HTML, CSS, and JS files are “parsed” in the browser.

The browser will look at the HTML file first and then see if this file has any links back to the css sheets or JavaScript scripts. if so, the browswer puts these together piece by and creates by taking these components and executing the actions directed to create the desired web page.

How can you find images to add to a Website?

You can simply google images and save them on your computer. to avoid avoid violating copyright, you can use the license filter and the usage rights option on google.

How do you create a String vs a Number in JavaScript?

the difference between a string and a number is basically having quotation marks. For example Let(x)=24 Let(x)=”24” The one with the quotations is string because its in quotations. String can also be words or phrases, while a number is limited to simply numerical expression.

What is a Variable and why are they important in JavaScript?

A variable is a unique identifier that holds a number or value.

What is an HTML attribute?

An attriubute provide additional info about an element.

Describe the Anatomy of an HTMl element.

Element consistes of opening and closing tags with either attriubutes or content between them.

What is the Difference between <article> and <section> element tags?

The difference between these two elements is basically semantics. An article is usually for main content where as a section is usually a smaller subspace for content.

What Elements does a “typical” website include?

doctype head body footer

How does metadata influence Search Engine Optimization?

Metadata allows a search engine to find your page by featuring key words of the website content and author.

How is the HTML tag used when specifying metadata?

When using the meta tag, you use the name attribute to destinguing what type of information it contains and the content tag to specifiy the content that will populate.

What is the first step to designing a Website?

you need to establish what the websites purpose is.

What is the most important question to answer when designing a Website?

What do I want to Accomplish?

Why should you use an <h1> element over a element to display a top level heading?

Because span has no semantic value where a h1 tells you that the content is meant to be a header.

What are the benefits of using semantic tags in our HTML?

By following these semantics, we make it easier for others to read our code and understand what we are trying to accomplish.

Describe 2 things that require JavaScript in the Browser?

Retrieving user geographical information. Creating animated 2Dand 3D graphics.

How can you add JavaScript to an HTML document?

You can add Javascript to an HTML by using a Script element.

Closing Notes

Things I want to know more about

What are high level things Javascript can do?