HTML & CSS Workshop. by Bethany Davis FemmeHacks 2016

Similar documents
HTML and CSS. Elliot Davies. April 10th,

How To Create A Web Page On A Windows (For Free) With A Notepad) On A Macintosh (For A Freebie) Or Macintosh Web Browser (For Cheap) On Your Computer Or Macbook (

Essential HTML & CSS for WordPress. Mark Raymond Luminys, Inc mraymond@luminys.com

Web Design Basics. Cindy Royal, Ph.D. Associate Professor Texas State University

CST 150 Web Design I CSS Review - In-Class Lab

Contents. Downloading the Data Files Centering Page Elements... 6

WordPress and HTML Basics

Introduction to Web Development

Web Authoring CSS. Module Descriptor

Level 1 - Clients and Markup

CS134 Web Site Design & Development. Quiz1

CIS 467/602-01: Data Visualization

Intro to Web Design. ACM UIUC

Garfield Public Schools Fine & Practical Arts Curriculum Web Design

Introduction to Web Technologies

Web Development I & II*

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

We automatically generate the HTML for this as seen below. Provide the above components for the teaser.txt file.

How To Use Dreamweaver With Your Computer Or Your Computer (Or Your Computer) Or Your Phone Or Tablet (Or A Computer)

Web Development CSE2WD Final Examination June (a) Which organisation is primarily responsible for HTML, CSS and DOM standards?

Web Design and Databases WD: Class 7: HTML and CSS Part 3

Development Perspective: DIV and CSS HTML layout. Web Design. Lesson 2. Development Perspective: DIV/CSS

ICE: HTML, CSS, and Validation

Web layout guidelines for daughter sites of Scotland s Environment

Dreamweaver CS4 Day 2 Creating a Website using Div Tags, CSS, and Templates

Web Authoring. Module Descriptor

Web Design Revision. AQA AS-Level Computing COMP2. 39 minutes. 39 marks. Page 1 of 17

Web Design for Programmers. Brian Hogan NAPCS Slides and content 2008 Brian P. Hogan Do not reproduce in any form without permission

Missing cat website HTML&CSS. The Mission:

CSS. CSS - cascading style sheets CSS - permite separar num documento HTML o conteúdo do estilo. ADI css 1/28

HTML CSS Basic Structure. HTML Structure [Source Code] CSS Structure [Cascading Styles] DIV or ID Tags and Classes. The BOX MODEL

Module 6 Web Page Concept and Design: Getting a Web Page Up and Running

Web Developer Jr - Newbie Course

Advanced Online Media Dr. Cindy Royal Texas State University - San Marcos School of Journalism and Mass Communication

JJY s Joomla 1.5 Template Design Tutorial:

WEB DEVELOPMENT IA & IB (893 & 894)

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. Web Design in Nvu Workbook 2

Website Development Komodo Editor and HTML Intro

CREATING WEB PAGES USING HTML INTRODUCTION

Basics of HTML (some repetition) Cascading Style Sheets (some repetition) Web Design

CREATING A NEWSLETTER IN ADOBE DREAMWEAVER CS5 (step-by-step directions)

Appendix H: Cascading Style Sheets (CSS)

{color:blue; font-size: 12px;}

Fast track to HTML & CSS 101 (Web Design)

Website Builder Documentation

Basic tutorial for Dreamweaver CS5

Web Publishing Basics 2

Welcome to CSE 330 Crea0ve Progamming and Rapid Prototyping. Course Informa0on

Web Building Blocks. Joseph Gilbert User Experience Web Developer University of Virginia Library

ITNP43: HTML Lecture 4

GUIDE TO CODE KILLER RESPONSIVE S

Create Webpages using HTML and CSS

Advanced Web Development SCOPE OF WEB DEVELOPMENT INDUSTRY

Advanced Online Media Dr. Cindy Royal Texas State University - San Marcos School of Journalism and Mass Communication

HTML Fundamentals IN THIS APPENDIX

Chapter 7 Page Layout Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

HTML TIPS FOR DESIGNING

KOMPOZER Web Design Software

Web Development 1 A4 Project Description Web Architecture

Selectors in Action LESSON 3

This document will describe how you can create your own, fully responsive. drag and drop template to use in the creator.

Introduction to Adobe Dreamweaver CC

Last week we talked about creating your own tags: div tags and span tags. A div tag goes around other tags, e.g.,:

Further web design: Cascading Style Sheets Practical workbook

WRITE BETTER HTML BY WRITING BETTER CSS

About webpage creation

Creating the Surf Shop website Part3 REVISED

HTML5 and CSS3 Part 1: Using HTML and CSS to Create a Website Layout

Responsive Web Design Creative License

Learnem.com. Web Development Course Series. Quickly Learn. Web Design Using HTML. By: Siamak Sarmady

Dreamweaver CS5. Module 1: Website Development

Version 4.0. Unit 3: Web Design. Computer Science Equity Alliance, Exploring Computer Science Unit 3: Web Design 102

The Web Web page Links 16-3

EUROPEAN COMPUTER DRIVING LICENCE / INTERNATIONAL COMPUTER DRIVING LICENCE WEB EDITING

Course: CSC 224 Internet Technology I (2 credits Compulsory)

HAML und SASS. (und COMPASS) markup haiku vs. syntactically awesome stylesheets. Tobias Adam, Jan Krutisch mindmatters GmbH & Co.

SEO Content Writing Guide

FOUNDATION OF INFORMATION TECHNOLOGY Class-X (TERM II)

Dreamweaver: Getting Started Website Structure Why is this relevant?

Simply download Beepip from and run the file when it arrives at your computer.

Introduction to web development and JavaScript

MCH Strategic Data Best Practices Review

Learning Web Design. Third Edition. A Beginner's Guide to (X)HTML, Style Sheets, and Web Graphics. Jennifer Niederst Robbins

Chapter 1. Introduction to web development

Interactive Data Visualization for the Web Scott Murray

ART 379 Web Design. HTML, XHTML & CSS: Introduction, 1-2

Creating Web Pages with HTML Simplified. 3rd Edition

Learnem.com. Web Development Course Series. Learn em. HTML Web Design in 7 days! By: Siamak Sarmady

CSS 101. CSS CODE The code in a style sheet is made up of rules of the following types

Dreamweaver. Introduction to Editing Web Pages

Coding HTML Tips, Tricks and Best Practices

Website Planning Checklist

How to Properly Compose HTML Code : 1

Responsive Web Design: Media Types/Media Queries/Fluid Images

Style & Layout in the web: CSS and Bootstrap

Web publishing: An introduction to CSS

Web Designing with UI Designing

Links Getting Started with Widgets, Gadgets and Mobile Apps

Using Style Sheets for Consistency

Web Design with CSS and CSS3. Dr. Jan Stelovsky

Transcription:

HTML & CSS Workshop by Bethany Davis FemmeHacks 2016

Welcome! Bethany Davis Junior at Penn studying CS Taught myself HTML/CSS in 7th grade I have a few lines of HTML and CSS in the Google codebase www.bethanytdavis.com

Pre-requisites A laptop with a modern Internet browser A text editor, like Sublime Text 2 or vim A GitHub account * Goals Learn the basics of HTML and CSS (Enough to use documentation for what you don t know) Start working on your own personal webpage!

What is HTML? What is CSS? HTML = HyperText Markup Language CSS = Cascading Stylesheets

Today s Workshop: Intro to HTML Tags and attributes Headers, paragraphs, lists Images and links Intro to CSS Colors, fonts, sizes Spacing (margin vs. padding) HTML + CSS Spans and divs id and class Above & Beyond

Boilerplate HTML Start with this every time <head> = metadata <body> = actual content Paste this into index.html pastebin.com/3r7w2tkr www.htmlshell.com <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>title HERE</title> <meta name="description" content="describe YOUR WEBSITE"> <meta name="keywords" content=" KEY, WORDS, HERE"> </head> <body> </body> </html>

Today s Workshop: Intro to HTML Tags and attributes Headers, paragraphs, lists Images and links Intro to CSS Colors, fonts, sizes Spacing (margin vs. padding) HTML + CSS Spans and divs id and class Above & Beyond

Tags and Attributes <tag> content </tag> <tag> <nested_tag> content </nested_tag> </tag> <tag attribute = value/of/attribute > content </tag> <b> This text is bold </b> versus not bold. This text is bold versus not bold. <b><i>this text is bold and italic. </i></b> This text is bold and italic. <b>this text is bold<i>and now also italic</i> back to just bold.</b> This text is bold and now also italic back to just bold.

Today s Workshop: Intro to HTML Tags and attributes Headers, paragraphs, lists Images and links Intro to CSS Colors, fonts, sizes Spacing (margin vs. padding) HTML + CSS Spans and divs id and class Above & Beyond

Headers and Paragraphs <h1> <h6> Text! </h1> etc. Headers <p> Text here </p> Paragraph tags Enclose text in a formatted paragraph <br> Line break Like hitting enter Doesn t have a closing tag <body> <h1>bethany Davis </h1> <h3>a student at the University of Pennsylvania </h3> <p>my name is Bethany Davis and here is a paragraph about me. </p> <p>here is a separate paragraph talking about more things. </p> </body>

Headers and Paragraphs <body> <h1>bethany Davis</h1> </body> <h3>a student at the University of Pennsylvania</h3> <p>my name is Bethany Davis and here is a paragraph about me.</p> <p>here is a separate paragraph talking about more things.</p> </body>

Ordered and Unordered Lists <body> <ul><b>skills</b> <li>java</li> <li>html</li> <li>css</li> </ul> <ol>courses I ve Taken <li>cis 120</li> <li>mktg 101</li> <li>cis 320</li> </ol> </body>

Today s Workshop: Intro to HTML Tags and attributes Headers, paragraphs, lists Images and links Intro to CSS Colors, fonts, sizes Spacing (margin vs. padding) HTML + CSS Spans and divs id and class Above & Beyond

Images and Links Links anchor tag: <a></a> <a href= > </a> (href attribute) Relative/absolute links Images <img> (doesn t close) src= attribute

Images and Links <img src= http://o.aolcdn. com/hss/storage/midas/c7ea4d2b38ad3 0e62a679ed5f4d6dfd9/200129886/MrGru mblecat-1.jpeg > <a href= http://www.github.com >Visit my github account </a> <a href= resume.pdf >View my resume</a>

Today s Workshop: Intro to HTML Tags and attributes Headers, paragraphs, lists Images and links Intro to CSS Colors, fonts, sizes Spacing (margin vs. padding) HTML + CSS Spans and divs id and class Above & Beyond

Boilerplate CSS 1. Make a new file in the same folder as your index.html file 2. Save the file as stylesheet.css 3. Add this line of code into the <head> of your index.html file <head> <meta charset="utf-8"> <title>my Website</title> <link rel="stylesheet" href=" stylesheet.css" type="text/css"> </head>

Intro to CSS

Today s Workshop: Intro to HTML Tags and attributes Headers, paragraphs, lists Images and links Intro to CSS Colors, fonts, sizes Spacing (margin vs. padding) HTML + CSS Spans and divs id and class Above & Beyond

Colors, Fonts and Sizes (in stylesheet.css) How to make all h1 headings red, size 18px, Georgia font? Hexadecimal colors! h1 { color: red; /* color: #ff0000; */ size: 18px font-family: Georgia, serif }

Today s Workshop: Intro to HTML Tags and attributes Headers, paragraphs, lists Images and links Intro to CSS Colors, fonts, sizes Spacing (margin vs. padding) HTML + CSS Spans and divs id and class Above & Beyond

Spacing Elements: Margin, Padding, Border

Spacing Elements: Margin, Padding, Border ol { width: 200px border: 2px solid black; margin: 10px; }

Today s Workshop: Intro to HTML Tags and attributes Headers, paragraphs, lists Images and links Intro to CSS Colors, fonts, sizes Spacing (margin vs. padding) HTML + CSS Spans and divs id and class Above & Beyond

Today s Workshop: Intro to HTML Tags and attributes Headers, paragraphs, lists Images and links Intro to CSS Colors, fonts, sizes Spacing (margin vs. padding) HTML + CSS Spans and divs id and class Above & Beyond

Spans and divs Two very important HTML tags! Group page elements into larger blocks Style/align the larger blocks <span> content </span> Used for inline styles <div> content </div> Used for larger blocks/multi-line elements

Today s Workshop: Intro to HTML Tags and attributes Headers, paragraphs, lists Images and links Intro to CSS Colors, fonts, sizes Spacing (margin vs. padding) HTML + CSS Spans and divs id and class Above & Beyond

id and class in HTML Many <ul>, but one special list ex: navigation bar Solution: use id attribute Single, unique element A whole section of your website ex: about me - all blue Solution: use class attribute Multiple elements with shared properties <ul id= navbar > <li>home</li> <li>about</li> </ul> <div class= about > <p>words words words words words words.</p> <p>more words.</p> </div>

id and class in CSS Same CSS syntax #id.class #navbar { color: #04FF57; height: 500px; }.about { } border: 4px dashed #04FF57;

Today s Workshop: Intro to HTML Tags and attributes Headers, paragraphs, lists Images and links Intro to CSS Colors, fonts, sizes Spacing (margin vs. padding) HTML + CSS Spans and divs id and class Above & Beyond

Above & Beyond Take your website to the next level! JavaScript, jquery HTML and CSS best practices Hosting on seas.upenn.edu/ or GitHub pages github.com/google-cssi/cssi-curriculum Bootstrap (!!!) Thanks and good luck on your hacks!