5. intro to html and css

15
What makes a webpage? HTML: HyperText Markup Language CSS: Cascading StyleSheet JS: JavaScript

Upload: lexinamer

Post on 15-Aug-2015

302 views

Category:

Design


3 download

TRANSCRIPT

Page 1: 5. Intro to HTML and CSS

What makes a webpage?

HTML: HyperText Markup Language

CSS: Cascading StyleSheet

JS: JavaScript

Page 2: 5. Intro to HTML and CSS

What do they do?

Page 3: 5. Intro to HTML and CSS

Coding: It’s like building a house

Page 4: 5. Intro to HTML and CSS

Why is HTML SO important?

Page 5: 5. Intro to HTML and CSS

History of HTML and CSS

http://spyrestudios.com/wp-content/uploads/html5-history-infographic-web.jpg

Page 6: 5. Intro to HTML and CSS

HTML = Hypertext Markup Language

Page 7: 5. Intro to HTML and CSS

How HTML Works

HTML uses markup tags to describe

elements on a page.

<tag> Text </tag>

start tag end tagcontent

Page 8: 5. Intro to HTML and CSS

Basic HTML Document

<!DOCTYPE html><html>

<head><title>Example Web

Page</title></head>

<body><h1>Example Page</h1><p>This is a paragraph</p><a href=“link.html”>Web

link</a><! - - this is a comment in the

code - -></body>

</html>

= tag

= text on webpage

= comment

Page 9: 5. Intro to HTML and CSS

There are about 80 HTML tags

Page 10: 5. Intro to HTML and CSS

CSS= Cascading Style Sheets

Page 11: 5. Intro to HTML and CSS

How CSS Works

h1 { color: red; font-size: 12px; }

selector

property

declarations

value property value

Page 12: 5. Intro to HTML and CSS

Basic CSS Document

= selector

= property

= value

body {font-size: 12px; color: red;

}

h1 {font-weight: bold; background- color:

blue;}

#myboxhere {width: 300px;height: 200px;

}

= declarations

Page 13: 5. Intro to HTML and CSS

There are endless CSS tags

They are both pre-defined and self-defined

Page 14: 5. Intro to HTML and CSS

HTML and CSS working together

Page 15: 5. Intro to HTML and CSS

What we need to write code

• A text editor (especially one made for code writing)

Komodo Edit: http://komodoide.com/komodo-edit/

• An Internet browser (preferably Google Chrome)