14
Interactive Media Heather Strycharz Lecture 1 – August 29, 2013

Lesson1 - Fall 2013

  • Upload
    hstryk

  • View
    355

  • Download
    2

Embed Size (px)

DESCRIPTION

Introduction to the concept of coding websites using HTML and CSS

Citation preview

Page 1: Lesson1 - Fall 2013

Interactive MediaHeather Strycharz

Lecture 1 – August 29, 2013

Page 2: Lesson1 - Fall 2013

- Douglas Rushkoff

Page 5: Lesson1 - Fall 2013

Header

ContentSide Nav

Footer

The <div> tag defines a division or a section in an HTML document.

The <div> tag is used to group block-elements to format them with styles.

Page 6: Lesson1 - Fall 2013

DivsExample 1

Page 7: Lesson1 - Fall 2013

Divs – Example 2

Page 8: Lesson1 - Fall 2013

http://letsyep.com

Page 9: Lesson1 - Fall 2013
Page 10: Lesson1 - Fall 2013

Header

Content Side Nav

Footer

Logo

H1 – Title HereBody text is here. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis hendrerit mollis placerat. Sed lacus eros, vestibulum eget iaculis consectetur, posuere ut lectus.

Pellentesque dignissim metus eu odio ullamcorper quis elementum nibh auctor. Cras pharetra magna sed est lacinia imperdiet. Etiam dui purus, ullamcorper nec bibendum id, posuere sed arcu. Cras id scelerisque quam.

Nullam et leo ipsum. In lacinia ipsum nec nunc dictum posuere. Nam sollicitudin, nisi nec fringilla pharetra, metus sapien sollicitudin nibh, vitae cursus turpis nisl et sem.

Menu Item 1 - Menu Item 2 - Menu Item 3

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis hendrerit mollis placerat. Sed lacus eros, vestibulum eget iaculis consectetur, posuere ut lectus.

Side Nav Item 1 Side Nav Item 2 Side Nav Item 3Side Nav Item 4Side Nav Item 5Side Nav Item 6

Menu Item 1 - Menu Item 2 - Menu Item 3Lorem ipsum dolor sit amet.

Page 11: Lesson1 - Fall 2013

<div id=“content”><h1>H1 – Title Here</h1>

<span><p>Body text is here. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis hendrerit mollis placerat. Sed lacus eros, vestibulum eget iaculis consectetur, posuere ut lectus. </p>

<p>Pellentesque dignissim metus eu odio ullamcorper quis elementum nibh auctor. Cras pharetra magna sed est lacinia imperdiet. Etiam dui purus, ullamcorper nec bibendum id, posuere sed arcu. Cras id scelerisque quam. </p>

<p>Nullam et leo ipsum. In lacinia ipsum nec nunc dictum posuere. Nam sollicitudin, nisi nec fringilla pharetra, metus sapien sollicitudin nibh, vitae cursus turpis nisl et sem.</p></span></div>

Page 12: Lesson1 - Fall 2013

<html> <body><div id="heart" style="width: 180px; float: left; display: block;"> <img src="http://www.lovelocaldesign.com/wp-content/uploads/2012/12/lovelocal.png" height="150px"/></div> <div id="hello" style=“padding:10px; float: left; border: 1px solid lime; width: 100px; height: 50px; margin-top: 20px;"> <span style="text-align: center; color: green; width: 100px;"> Hello world!</span> </div> </body></html>

http://tinkerbin.com

Page 13: Lesson1 - Fall 2013

Inline - using the style attribute in HTML elementsInternal - using the <style> element in the <head> sectionExternal - using an external CSS file

Styles

<div id=”heart" style="width: 180px; float: left; display: block;"> <img src="http://www.lovelocaldesign.com/wp-content/uploads/2012/12/lovelocal.png" height="150px"/></div>

Inline

<head>type<style ="text/css">body {background-color:yellow;}p {color:blue;}</style></head>

Internal

<head><link rel="stylesheet" type="text/css" href="mystyle.css" /></head>

External

Page 14: Lesson1 - Fall 2013

COLORS

HTML colors are defined using a hexadecimal notation (HEX) for the combination of Red, Green, and Blue color values (RGB).

The lowest value that can be given to one of the light sources is 0 (in HEX: 00).

The highest value is 255 (in HEX: FF).

HEX values are specified as 3 pairs of two-digit numbers, starting with a # sign.