learn html5: getting started

33
inarocket.com HTML Learn at rocket speed GETTING STARTED

Upload: in-a-rocket

Post on 21-Apr-2017

5.052 views

Category:

Internet


1 download

TRANSCRIPT

Page 1: Learn HTML5: Getting Started

inarocket.com

HTMLLearn at rocket speedGETTING STARTED

Page 2: Learn HTML5: Getting Started

LET'S LEARN HTML! IN THIS MODULE, YOU'LL LEARN:

What is HTML Why HTML is a markup language How is its basic structure How to create your first HTML in 5 minutes

Page 3: Learn HTML5: Getting Started

Learn front-end development at rocket speed

inarocket.com

by miguelsanchez.com

FULL COURSE

Page 4: Learn HTML5: Getting Started

What is HTML

Page 5: Learn HTML5: Getting Started

inarocket.com - HTML / Getting Started

WHAT IS HTML

+HTMLContent structure

JAVASCRIPTContent behavior

CSSContent presentation +

WEB PAGE

Page 6: Learn HTML5: Getting Started

inarocket.com - HTML / Getting Started

WHAT IS HTML

HT M LHyperText Markup Language

HTML is a markup language, not a programming language

Page 7: Learn HTML5: Getting Started

inarocket.com - HTML / Getting Started

WHAT IS HTML

HTML 2.0

1995

HTML 3.2

1997

HTML 4.01

1999 2014

HTML 4.0

1997

W3C Recommendations

Page 8: Learn HTML5: Getting Started

inarocket.com - HTML / Getting Started

WHAT IS HTML

CSS3

Geolocation

WOFF

MathML

XmlHttpRequest

etc.SVG

(Web Fonts)

Open Web Platform

SOURCE: Open Web Platform by W3C.

Page 9: Learn HTML5: Getting Started

HTML markup

Page 10: Learn HTML5: Getting Started

inarocket.com - HTML / Getting Started

HTML MARKUP

A markup language is used to structure and define content semantically

Soon you will learn how to use CSS to control its presentation

Page 11: Learn HTML5: Getting Started

inarocket.com - HTML / Getting Started

HTML MARKUP

Element

<h1>I’m a header</h1>ContentOpening

TagClosing

Tag

HTML tags are not case sensitive

Page 12: Learn HTML5: Getting Started

inarocket.com - HTML / Getting Started

HTML MARKUP

<p>I’m a paragraph</p>

HTML tags are not case sensitive

ContentOpening Tag

Closing Tag

Element

Page 13: Learn HTML5: Getting Started

Basic HTML structure

Page 14: Learn HTML5: Getting Started

inarocket.com - HTML / Getting Started

BASIC HTML STRUCTURE

HTML code

<!DOCTYPE html><html> <head> Page metadata goes here. </head> <body> Page content goes here. </body></html>

HTML structure

html

DOCTYPE

body

head

Page 15: Learn HTML5: Getting Started

inarocket.com - HTML / Getting Started

BASIC HTML STRUCTURE

html

DOCTYPE

HTML structure: DOCTYPE

DOCTYPE (Document Type Declaration) tells the browser / parser what type of document is processing. Should always be the first item of any HTML file.

body

head

Page 16: Learn HTML5: Getting Started

inarocket.com - HTML / Getting Started

BASIC HTML STRUCTURE

HTML structure: head

Use head to include information about the document (title, language, etc.). But for the title, head content is not shown to users.

html

DOCTYPE

body

head

Page 17: Learn HTML5: Getting Started

inarocket.com - HTML / Getting Started

BASIC HTML STRUCTURE

HTML structure: head

Use head to include your page's title.Browsers will show it in the tab for your page.

<!DOCTYPE html><html> <head> <title>Page title goes here</title> </head> <body> Page content goes here. </body></html>

Search engines will display that title in their results.

Page 18: Learn HTML5: Getting Started

inarocket.com - HTML / Getting Started

BASIC HTML STRUCTURE

HTML structure: body

Use body to include all the content you want to show to your users (text, images, links, etc.).

html

DOCTYPE

body

head

Page 19: Learn HTML5: Getting Started

inarocket.com - HTML / Getting Started

BASIC HTML STRUCTURE

HTML code

<!DOCTYPE html><html> <head> Page metadata goes here. </head> <body> Page content goes here. </body></html>

HTML structure: tree view

html

head body

Page 20: Learn HTML5: Getting Started

Your first HTML in 5 minutes

Page 21: Learn HTML5: Getting Started

inarocket.com - HTML / Getting Started

YOUR FIRST HTML IN 5 MINUTES

+EDITORe.g. Notepad

BROWSERe.g. Firefox

FOLDERSProject structure +

21 3

Page 22: Learn HTML5: Getting Started

inarocket.com - HTML / Getting Started

YOUR FIRST HTML IN 5 MINUTES: FOLDERS

+EDITORe.g. Notepad

BROWSERe.g. Firefox

FOLDERSProject structure +

21 3

Page 23: Learn HTML5: Getting Started

inarocket.com - HTML / Getting Started

YOUR FIRST HTML IN 5 MINUTES: FOLDERSCreate the folders that will contain the web project on your computer.

projectname: • img • css • js

Important rules for naming folders and files. • Never use spaces. • Never use special characters (%, *, +, etc.). • Avoid uppercases.

(will hold your site's graphical assets)

projectname

css jsimg(you will use this folder for your site's stylesheets)

(will hold scripts to add interactive features to your site)

Page 24: Learn HTML5: Getting Started

inarocket.com - HTML / Getting Started

YOUR FIRST HTML IN 5 MINUTES: EDITOR

+EDITORe.g. Notepad

BROWSERe.g. Firefox

FOLDERSProject structure +

21 3

Page 25: Learn HTML5: Getting Started

inarocket.com - HTML / Getting Started

YOUR FIRST HTML IN 5 MINUTES: EDITOR

Editor: pre-installed

You can just use any text editor preinstalled in your computer.

Notepad TextEdit Gedit

Editor: additional

There are other editors but you won't need their advanced features for this course.

Sublime Text Atom

Page 26: Learn HTML5: Getting Started

inarocket.com - HTML / Getting Started

YOUR FIRST HTML IN 5 MINUTES: BROWSER

+EDITORe.g. Notepad

BROWSERe.g. Firefox

FOLDERSProject structure +

21 3

Page 27: Learn HTML5: Getting Started

inarocket.com - HTML / Getting Started

YOUR FIRST HTML IN 5 MINUTES: BROWSER

Browser: pre-installed

You can just use any preinstalled browser in your computer.

Edge Safari Firefox

Browser: additional

There are other browsers that you can also install in your computer.

Chrome Firefox Opera

Page 28: Learn HTML5: Getting Started

inarocket.com - HTML / Getting Started

YOUR FIRST HTML IN 5 MINUTES: BASIC WORKFLOW

index.html

EDITOR BROWSERe.g. Notepad e.g. Firefox

SAVE OPEN

projectname

Page 29: Learn HTML5: Getting Started

inarocket.com - HTML / Getting Started

Save as index.html

YOUR FIRST HTML IN 5 MINUTES: HELLO WORLD!

<!DOCTYPE html><html><head> <title>My first HTML page</title></head><body>Hello world!</body></html>

Editor (what you should write) Browser

Hello world!

(what you should view)

Open index.html in your browser

index.html

READY TO USE CODE

Page 30: Learn HTML5: Getting Started

CONGRATULATIONS! NOW YOU KNOW:

What is HTML Why HTML is a markup language How is its basic structure How to create your first HTML in 5 minutes

Page 31: Learn HTML5: Getting Started

Learn front-end development at rocket speed

inarocket.com

by miguelsanchez.com

FULL COURSE

Page 32: Learn HTML5: Getting Started

Are you also interested in learning

BOOTSTRAP 4POSTCSS?+

http://inarocket.teachable.com/courses/css-postcssPlease visit:

Page 33: Learn HTML5: Getting Started

inarocket.com

HTMLLearn at rocket speedGETTING STARTED