Skip to content

Example code for HTML, CSS, and Javascript for Web Developers Coursera Course

Notifications You must be signed in to change notification settings

miriam-z/fullstack-course4

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents

Coursera: HTML, CSS and Javascript for Web Developers

Example Source Code

This repository contains all of the example source code used in the Coursera.org course called HTML, CSS and Javascript for Web Developers.

Enroll now! It's free!

Common Git Commands

Github commands:

Command Description
git add . Add all changes to all files at your current working directory location. Must be a git project.
git checkout testing Switch to testing branch.
git clone Clone a Git repository to work with.
git commit -m "Some changes" Commit changes with comments to current working branch.
git checkout master Checkout the master branch (trunk).
git checkout gh-pages Checkout the gh-pages branch.
git log View commit logs for your Git branch.
git pull Pull down any changes that were checked into a branch (Git repository).
git push Push your committed changes to your currently checked out branch.
git push origin master Push your committed changes up to your master branch. 'master' may be subsituted for another branch.
git status Get the status of files in the current repo.

Git examples:

Merging a branch into the master

git checkout -b 'hotfix'
Switched to new branch "hotfix"
vim index.html
git commit -a -m 'fixed the broken email address'
...
...
git checkout master
git merge hotfix

Command Line Reference

Universal Command Reference Link

Note that CMD represents Windows and Bash is typically Linux and OS X is Macintosh
Universal Command Line Reference

Common Windows Commands

Command and Usage Examples

attrib
Alter the file attributes. The '+' adds an attribute, and '-' removes it. Attributes are: a=archive; r=read only; s=system; h=hidden.

attrib -r -a -s -Hh index.html
All previously mentioned attributes will be cleared from index.html
C:
Shortcut to the C: drive. Can substitue 'C' for other drive letters.
C:

cd
Navigate into a directory.

Note that a directory is also referred to as a folder.

Just typing cd\ by itself goes to the base (root) of the file system and is usually the C: drive.

cd.. navigates up one level. Say you are in the 'foo' directory and want to get out of this directory. This would get out of 'foo'

cd <directory name> navigates to that directory. You can provide a path of directories \ e.g.
cd Users\myself\Documents\git\mycode takes you to C:\Users\myself\Documents\git\mycode

cls
Clear (reset) the screen.
cls
del
Delete one or more files in the current working directory. Can be used with the '*' and the '?' wildcards.

del *.* will delete every file in the current directory.

(Note: del alone cannot be used to delete other directories. Use rd to remove a directory.)

del index.html deletes index.html

del *.html will delete all HTML files at your current location.

del foo*.* will delete all files beginning with 'foo' that are any type.

del foo??.* will delete files that are 5 characters long and begin with 'foo' that are any type.

dir
List (reveal) contents of a directory (folder).

dir *.html displays all HTML files in the current and subdirectories.

dir /s lists the contents of all subdirectories.

dir /ah displays all hidden files.

help
Displays DOS help info. For info on an individual command simply type help followed by the command.

help md displays information on the cls (make directory) command.

md
Generate (make) directory. Creates a new directory at your current location. May also substitute with mkdir

md boo create 'boo' directory.

rd
Delete a directory. Note that the directory you want to remove not have any files. The command rmdir may be used instead of rd

rd boo deletes the 'boo' directory

renameRenames a file.

rename foo.html zoo.html

type
Pipe (display) the contents of a file to terminal. If the file doesn't contain text (e.g. image) gibberish (binary encodings) will be displayed. If you pipe this command to more with "|more" then the text will be displayed one page at a time.

type site\index.html|more displays index.html one page at a time.

Module 1 Guidelines

Coming Soon

Module 2 Guidelines

Coming Soon

Module 3 Guidelines

Coming Soon

Module 4 Guidelines

Coming Soon

About

Example code for HTML, CSS, and Javascript for Web Developers Coursera Course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 54.5%
  • HTML 23.2%
  • CSS 22.3%