View on GitHub

reading-notes

Reading notes taken while attending Code Fellows classes.

Index

Home
What is The Web
Getting Started
Introduction to HTML
Miscellaneous
Things I want to know more about
Side Notes
Website Development Tools
Website Design Tools

What is the Web

Getting Started

  1. Compose a short poem describing how HTTP sends data between computers.
    • Hungry for cake? Find a place that will bake, then travel to its location.
      Ready to buy, just ask the guy(or girl) for a cake to quench your satiation.
      Baker gets busy, bakes a cake thats the shizzy, then you take it back to your place.
      Having arrived, cut the cake to divide and stuff it into your face.
  2. Describe how HTML, CSS, and JS files are “parsed” in the browser.
    • The browser parses the HTML file first, and that leads to the browser recognizing any <link>-element references to external CSS stylesheets and any <script>-element references to scripts.
    • As the browser parses the HTML, it sends requests back to the server for any CSS files it has found from <link> elements, and any JavaScript files it has found from <script> elements, and from those, then parses the CSS and JavaScript.
    • The browser generates an in-memory DOM tree from the parsed HTML, generates an in-memory CSSOM structure from the parsed CSS, and compiles and executes the parsed JavaScript.
    • As the browser builds the DOM tree and applies the styles from the CSSOM tree and executes the JavaScript, a visual representation of the page is painted to the screen, and the user sees the page content and can begin to interact with it.
  3. How can you find images to add to a Website?
    • Google Images
      • Note that most images on the web, including in Google Images, are copyrighted. To reduce your likelihood of violating copyright, you can use Google’s license filter. Click on the Tools button, then on the resulting Usage rights option that appears below. You should choose the option Creative Commons licenses.
  4. How do you create a String vs a Number in JavaScript?
    • To signify that the value is a string, enclose it in single quote marks. let myVariable = ‘Bob’;
    • Numbers do not have quotes. let myVariable = 10;
  5. What is a Variable and why are they important in JavaScript?
    • Variables are containers that store values. Variables are necessary to do anything interesting in programming. If values couldn’t change, then you couldn’t do anything dynamic, like personalize a greeting message or change an image displayed in an image gallery.

Introduction to HTML

  1. What is an HTML attribute?
    • An attribute extends an HTML or XML element, changing its behavior or providing metadata. Image of an Attribute
  2. Describe the Anatomy of an HTML element.
    • Opening tag, Content, Closing Tag or described another way as Opening tag, An attribute and its value, Enclosed text content, Closing tag.
      Anatomy of an HTML Element
      Anatomy of an HTML Element
  3. What is the Difference between <article> and <section> element tags?
    • <article> encloses a block of related content that makes sense on its own without the rest of the page (e.g., a single blog post).
    • <section> is similar to <article>, but it is more for grouping together a single part of the page that constitutes one single piece of functionality (e.g., a mini map, or a set of article headlines and summaries), or a theme. It’s considered best practice to begin each section with a heading; also note that you can break <article>s up into different <section>s, or <section>s up into different <article>s, depending on the context.
  4. What Elements does a “typical” website include?
  5. How does metadata influence Search Engine Optimization?
    • Search Engine Optimization or SEO
    • Specifying a description that includes keywords relating to the content of your page is useful as it has the potential to make your page appear higher in relevant searches performed in search engines.
  6. How is the <meta> HTML tag used when specifying metadata?
    • Metadata is data about the HTML, such as the author, and important keywords that describe the document.
    • <meta> is an HTML element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.

Miscellaneous

How to start to design a Website

  1. What is the first step to designing a Website?
    • Planning, before doing anything, you need some ideas. What should your website actually do?
  2. What is the most important question to answer when designing a Website?
    • What is it you want to accomplish.
      • What is your website about? Do you like dogs, New York, or Pac-Man?
      • What information are you presenting on the subject? Write a title and a few paragraphs and think of an image you’d like to show on your page.
      • What does your website look like, in simple high-level terms? What’s the background color? What kind of font is appropriate: formal, cartoony, bold and loud, subtle?

Semantics

  1. Why should you use an <h1> element over a <span> element to display a top level heading?
    • By default, most browser user agent stylesheets apply semantic value to <h1> giving it a large font size to make it look like a heading (although you could style it to look like anything you wanted) whereas <span> is a generic element that carries no semantic value without explicitly defining it with attributes.
  2. What are the benefits of using semantic tags in our HTML?
    • Search engines will consider its contents as important keywords to influence the page’s search rankings (see SEO).
    • Screen readers can use it as a signpost to help visually impaired users navigate a page.
    • Finding blocks of meaningful code is significantly easier than searching through endless divs with or without semantic or namespaced classes.
    • Suggests to the developer the type of data that will be populated.
    • Semantic naming mirrors proper custom element/component naming.

What is JavaScript?

  1. Describe 2 things that require JavaScript in the Browser?
    • A clock: Displaying timely content updates
    • Google Maps: Interactive maps
    • animated 2D/3D graphics
    • YouTube: Scrolling video jukeboxes
  2. How can you add JavaScript to an HTML document?
    • JavaScript is applied to your HTML page in a similar manner to CSS. Whereas CSS uses <link> elements to apply external stylesheets and <style> elements to apply internal stylesheets to HTML, JavaScript only needs one friend in the world of HTML — the <script> element.
    • Internal JavaScript - Using the <script> element without a source attribute inside the <head> tag.
    • External JavaScript - Using the <script> element without with a source attribute (example: src=”script.js”) inside the <head> tag.

Things I want to know more about

Side Notes

Website Development Tools

Website Design Tools

Back To Top