Coder Social home page Coder Social logo

2019-spring-01-html-intro's Introduction

CoderBabez

Week One - Intro to HTML

Objective

Create your first HTML page, commit it to GitHub and publish it on GH Pages!

Vocab

  • HTML
  • CSS
  • Javascript
  • Tags
  • GitHub, Git
  • Fork, Clone, Commit, Push, Branch, GH Pages

Introduction

Why does everyone want to learn to code? Does anyone have specific goals that we should incorporate into the class?

Getting Started on New Projects:

  1. For every lesson we’re going to start in github. Let’s begin by copying this project into your github account so you can work on it. We call this “forking a repository”.
  2. Github is a site that allows you to store and share code. It uses a technology called “git” that was created to help developers efficiently save, share, and distribute code. We’ll be using it to store and distribute all of the projects for this group.
  3. Open the Github Desktop client, and use it to save the repository to your computer so you can work on the code. We call this “cloning a repository”.
  4. Finally open your code editor Atom, and open the project file you just cloned to your computer. Double click the index.html file to open.
  5. YOU’RE READY TO CODE!

Lesson - Intro to HTML:

  1. There are three main components of web pages that we’ll be learning about - HTML, CSS, and Javascript.
  • HTML: A markup language that structures the data on a website
  • CSS: A markup language that styles and creates the layout for the data on a website
  • Javascript: A programming language that we can use to add interactivity on a website
  1. For this first group, we’re just focusing on creating our first HTML page.
  2. Foundation of an HTML page:
<!doctype html>
<html lang="en">
<head>
<meta name="description" content="Demo project">
<title>Coderbabez</title>
</head>

<body>
</body>
</html>
  1. Note the words inside angle brackets! These are called tags. MOST tags in html will have an open and a closing tag like this .
  2. Tags give structure to our page. They also give clues & instruction to the browser (and tools like Google) about how to treat the data inside our site .
  3. Important Content Tags for today: <header>, <section>, <h1>, <p>, <a>

Practice

Work through the todos in the HTML comments!

Committing your code:

When we save our code it’s called committing It’s important to commit often!!

  1. To commit your code, go to Github Desktop
  2. Select all of the files you want to save
  3. Put a message describing the changes you made into the summary box.
  4. Hit commit
  5. Now hit “Push origin” in order to send this commit message and the file changes to github. Your repository has been updated!

Publishing your code:

Github gives us an awesome way to publish our code as a website immediately. It’s called gh-pages.

  1. To do this, we need to create a new "branch" of our repository called gh-pages.
  2. In GitHub desktop, go to File > New Branch. Name the new branch “gh-pages” NOTE: spelling is important!!
  3. Click “Publish this branch to GitHub”
  4. Your site is live! To see it, go to this url: https://[YOUR-GITHUB-USERNAME].github.io/coderbabez/

Final Thoughts

Amazing! You made your first website!

HTML is the foundation of every site on the internet. Next week we’ll take a look at CSS and see if we can add some style to our pages.

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.