Code Monkey home page Code Monkey logo

week-01's Introduction

Week 01

Instructions

  1. Fork this repo
  2. Clone your fork
  3. Fill in your answers by writing in the appropriate area, or placing an 'x' in the square brackets (for multiple-choice questions).
  4. Add/Commit/Push your changes to Github.
  5. Open a pull request.

HTML

Question #1

What does it mean for an HTML tag to be "semantic"? Give an example of a short snippet of HTML written using semantic tags and non-semantic tags.

Semantic tags reinforce the meaning of information in a webpage. Like "<header> or <footer>."

Question #2

What is the purpose of the alt attribute? e.g:

<img src='https://jesse.sh/img/me.jpg' alt='Jesse Shawl'/>
For 508 compliance, using an 'alt' tag is for people with disabilities.

Question #3

What is the purpose of the <head></head> tag in HTML?

The head tag in an HTML document is where the title and all other links to the HTML document is located.

CSS

Question #4

In the spaces below, write the CSS property that best matches the given description.

The choices are border, outline, padding, and margin. You will leave two spaces blank.

Your Answer:

margin: Defines the distance between an element's border and adjacent elements' borders.
border: Inserts a "wall" around an element.
padding: Defines the distance between an element's content and its border.
___: Defines the width of an element.
outline: Overlays a "wall" on top of an element.
___: Defines the distance between the center of an element and the center of the adjacent element.

Question #5

What does the following selector do? ul.dropdown > li?

Select 1:

[X] Selects all li's which are directly inside a ul of class dropdown (children)
[] Selects all li's which are anywhere inside a ul of class dropdown (any descendant)
[] Selects all ul's of class dropdown, as well as the children elements that are li's
[] Selects all ul's of class dropdown, only if their children are exclusively li's

Question #6

Identify the three places CSS can go, and rank them in terms of specificity:

1. External Stylesheet
2. Internal Stylesheet
3. Inline Style

Git

Question #7

Which of the following represents a correct workflow for submitting a PR on a non-master branch? (ignore the lack of commit messages)

Select 1:

[X] fork on github; git clone <fork_url>; git checkout -b <charlie_solution>; git add <files>; git commit; git push; create pull request
[] fork on github; git clone <ga_dc_url>; git checkout -b <charlie_solution>; git add <files>; git commit; git push; create pull request
[] git clone <ga_dc_url>; git branch <charlie_solution>; git add <files>; git commit; git push; create pull request
[] fork on github; git clone <fork_url>; git checkout -b <charlie_solution>; git add <files>; git commit; git pull; create pull request

Question 8

What is the difference between a fork and a clone?

A 'fork' is a request to clone a project and register it under you username, which allows you to pull from multiple 'forks'. A clone doesn't live publicly on your Github account unless you create a repo manually and push it to that repo.

Question 9

How is git pull related to git fetch?

'git pull' does a 'git fetch' followed by a 'git merge'.

week-01's People

Contributors

jshawl avatar amaseda avatar beckybeauchamp1 avatar mkernsncr avatar robertakarobin avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.