HTML & CSS November 19, 2014

Similar documents
Introduction to WEB PROGRAMMING

CSS.

Cascading Style Sheets Level 2

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

CSS: The Basics CISC 282 September 20, 2014

CSS: Cascading Style Sheets

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148

ITNP43: HTML Lecture 4

WEBSI TE DESIGNING TRAINING

INTRODUCTION TO CSS. Mohammad Jawad Kadhim

<style type="text/css"> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page***

Unit 10 - Client Side Customisation of Web Pages. Week 5 Lesson 1 CSS - Selectors

Programmazione Web a.a. 2017/2018 HTML5

HTML & CSS. SWE 432, Fall 2017 Design and Implementation of Software for the Web

Data Visualization (CIS/DSC 468)

Introduction to HTML

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

Downloads: Google Chrome Browser (Free) - Adobe Brackets (Free) -

Welcome Please sit on alternating rows. powered by lucid & no.dots.nl/student

Html basics Course Outline

HTML & CSS. Rupayan Neogy

CSS exercise - Part 1

recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML)

Zen Garden. CSS Zen Garden

Text and Layout. Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11. This presentation 2004, MacAvon Media Productions

CSC 121 Computers and Scientific Thinking

HTML and CSS COURSE SYLLABUS

HTML & CSS Cheat Sheet

Review Question 1. Which tag is used to create a link to another page? 1. <p> 2. <li> 3. <a> 4. <em>

<body bgcolor=" " fgcolor=" " link=" " vlink=" " alink=" "> These body attributes have now been deprecated, and should not be used in XHTML.

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar with Dynamic Background Image

Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo

CSS is applied to an existing HTML web document--both working in tandem to display web pages.

Data Visualization (DSC 530/CIS )

In the early days of the Web, designers just had the original 91 HTML tags to work with.

CMPT 165 Unit 2 Markup Part 2

3.1 Introduction. 3.2 Levels of Style Sheets. - The CSS1 specification was developed in There are three levels of style sheets

- The CSS1 specification was developed in CSS2 was released in CSS2.1 reflects browser implementations

A Balanced Introduction to Computer Science, 3/E

Website Development with HTML5, CSS and Bootstrap

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

HTML+ CSS PRINCIPLES. Getting started with web design the right way

1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014

HTML and CSS: An Introduction

CSS: Cascading Style Sheets

Cascading Style Sheets (CSS)

CSS. Shan-Hung Wu CS, NTHU

CREATING A WEBSITE USING CSS. Mrs. Procopio CTEC6 MYP1

CSS Cascading Style Sheets

Lab Introduction to Cascading Style Sheets

Web Publishing Basics I

CSS: Layout Part 2. clear. CSS for layout and formatting: clear

The Benefits of CSS. Less work: Change look of the whole site with one edit

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6

More about HTML. Digging in a little deeper

GIMP WEB 2.0 MENUS WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR CREATING AN HTML LIST

Cascading Style Sheets (CSS) Part 1 of 3: Introduction and overview

WEBSITE PROJECT 2 PURPOSE: INSTRUCTIONS: REQUIREMENTS:

Block & Inline Elements

Session 4. Style Sheets (CSS) Reading & References. A reference containing tables of CSS properties

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar

CSC309 Programming on the Web week 3: css, rwd

Using Dreamweaver CS6

COSC 2206 Internet Tools. CSS Cascading Style Sheets

CSS. Selectors & Measurments. Copyright DevelopIntelligence LLC

Introduction to using HTML to design webpages

Final Exam Study Guide

Desire2Learn: HTML Basics

The Structure of the Web. Jim and Matthew

Deccansoft Software Services

CSS: formatting webpages

Cascading Style Sheet. Styles as Tag Attributes. Syntax. <h1>: what font type/size is used? STYLE = SELECTOR {RULES} Attributes such as bgcolor

Web and Apps 1) HTML - CSS

The default style for an unordered (bulleted) list is the bullet, or dot. You can change the style to either a square or a circle as follows:

ITSE 1401 Web Design Tools Lab Project 4 (Expression Web 4 - Units M, N, O, P) Last revised: 1/9/14

Building Your Website

PUBLISHER SPECIFIC CSS RULES

Reading 2.2 Cascading Style Sheets

introduction to XHTML

To link to an external stylesheet, the link element is placed within the head of the html page:

READSPEAKER ENTERPRISE HIGHLIGHTING 2.5

Module 2 (VII): CSS [Part 4]

Overview. Part I: Portraying the Internet as a collection of online information systems HTML/XHTML & CSS

Multimedia Systems and Technologies Lab class 6 HTML 5 + CSS 3

Learning Objectives. Review html Learn to write a basic webpage in html Understand what the basic building blocks of html are

3.1 Introduction. 3.2 Levels of Style Sheets. - HTML is primarily concerned with content, rather than style. - There are three levels of style sheets

CSCB20 Week 7. Introduction to Database and Web Application Programming. Anna Bretscher Winter 2017

Styles, Style Sheets, the Box Model and Liquid Layout

Using Dreamweaver CC. 6 Styles in Websites. Exercise 1 Linked Styles vs Embedded Styles

CMPT 165 Advanced XHTML & CSS Part 3

Web Publishing Intermediate 2

The internet is a worldwide collection of networks that link millions of computers. These links allow the computers to share and send data.

HTML Hyperlinks (Links)

Cascading Style Sheets. Overview and Basic use of CSS

- The CSS1 specification was developed in CSSs provide the means to control and change presentation of HTML documents

Creating and Building Websites

HTML HTML5. DOM(Document Object Model) CSS CSS

11. HTML5 and Future Web Application

The building block of a CSS stylesheet. A rule consists of a selector and a declaration block (one or more declarations).

Transcription:

University of Nebraska - Lincoln DigitalCommons@University of Nebraska - Lincoln Digital Humanities Workshop Series Center for Digital Research in the Humanities 11-19-2014 HTML & CSS November 19, 2014 Karin Dalziel University of Nebraska at Lincoln, kdalziel2@unl.edu Follow this and additional works at: http://digitalcommons.unl.edu/cdrhworkshops Part of the Digital Humanities Commons Dalziel, Karin, "HTML & CSS November 19, 2014" (2014). Digital Humanities Workshop Series. 1. http://digitalcommons.unl.edu/cdrhworkshops/1 This Presentation is brought to you for free and open access by the Center for Digital Research in the Humanities at DigitalCommons@University of Nebraska - Lincoln. It has been accepted for inclusion in Digital Humanities Workshop Series by an authorized administrator of DigitalCommons@University of Nebraska - Lincoln.

HTML and CSS Karin Dalziel! Digital Design/Development Specialist @ the CDRH! kdalziel2@unl.edu

HTML vs CSS Structure Presentation Text only Information Pretty graphics! Layout

HTML

What is HTML? A markup language used by the browser to make sense of your text HyperText Markup Language Has a logical structure

But what is HTML? <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>page Title</title> <link rel="stylesheet" href="css/main.css"> <script src="js/main.js"></script> </head> <body> <h1>page Title</h1> <h2>subhead</h2> <p>paragraph of text</p> </body> </html>

Flavors HTML XHTML HTML 2.0 XHTML 1.0 HTML 3.2 XHTML 1.1 HTML 4.0 XHTML 2.0 HTML 4.01 XHTML5.1 (?) HTML5

TL:DR! Use HTML5

What about XML? <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <title>page Title</title> <link rel="stylesheet" href="css/main.css"> <script src="js/main.js"></script> </head> <body> <h1>page Title</h1> <h2>subhead</h2> <p>paragraph of text</p> </body> </html> Also, serialize as XML

tags/elements/ attributes/values Element <p class="amazing_class">content</p> Tag (opening) Attribute Value (of attribute) Tag (closing) Value (of element)

Useful HTML Tags <html> - contains the entire document <head> - contains header information (does not display) <title> - goes inside <head>, is the title of the document <body> - goes after <head> contains stuff that s rendered in the browser

<a> tag <a> - (anchor) used to link content <a href= http://google.com >External link to Google</a> <a href= about/index.html >About Page</a> <a href= #about >Jump to about section</a> (pair with an id= about attribute) Note: Make sure your <a> element value is descriptive of where you will go. This is how blind users will know what they are in for!

<img> tag <img> - (image) used to include an image <img alt= UNL logo src= images/logo.png /> <a href= http://unl.edu > <img alt= UNL logo, link to UNL website src= images/ logo.png /> </a> Note: Try not to duplicate other text with your <img> alt attribute, but do try to make it clear what the image is. Try not to include text in images, instead just include the image and use HTML text to explain it.

No alt tags. SADFACE.

<h1><h2>, etc tag <h1> - (heading 1) used to mark a heading <h1 id= pagetitle >Page title</h1> <p>this is some content</p> <h2 id= first_subhead >This is a subhead</h2> Note: Keep the headers in a logical order! Also, headers are a good place to include id s

Nesting headers <h1>page Title</h1> <h2>first Subheading</h2> <p>a bit of content</p> <h2>second subheading</h2> <p>a bit of content</p> <h3>a sub-sub heading</h3> <p>a bit of content</p> <h2>third subheading</h2> <h1>page Title</h1> <h3>first Subheading</h3> <p>a bit of content</p> <h2>second subheading</h2> <p>a bit of content</p> <h4>a sub-sub heading</h4> <p>a bit of content</p> <h1>third subheading</h1> Do: use headers in a logical order Don t: just thrown them anywhere

Other tags! Paragraph Span Div <p>some content</p> <span>some content</span> <div>some content</div> Note: Paragraph has a logical meaning. Don t nest paragraphs. Span and div are presentational only, they don t have a semantic meaning, and you can nest them.

Classes and ID s Classes and ID s can go on any element. Classes can be used multiple times, ID s only once per page. You can add multiple classes by using a space. Start classes and id s with letters. (fun note: it s technically legal HTML5 to start an ID with a # but it won t work with your plain CSS selectors) <div id= main_content >Content</div> <span class= one two three >Content</span>

HTML Resources HTML5 Boilerplate Web Developer Toolbar (for a variety of browsers) Browser Developer tools CSS/HTML Frameworks

HTML5 Boilerplate http://html5boilerplate.com/

CSS

What is CSS? A display language used by the browser to make sense of your text Cascading Style Sheets Lets you add colors and layout elements!

But what is CSS? html { background-color: #f4f3ea; } body { color: #303030; font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif; font-size: 16px; } h1, h2, h3, h4, h5, h6, nav { font-family: 'Stint Ultra Expanded', cursive; font-weight: 100; clear: both; }

selector, property, value Selector Pseudo Class Rule Set a:hover { color: #000; } Property Value

No CSS With CSS

text properties p { color: red; font-size: 2em; line-height: 1.4em; text-decoration: underline; font-style: italic; font-weight: bold; background-color: #acfdf5; }

layout properties test { width: 200px; height: 400px; margin: 20px; padding: 0; float: left; }

border and bullet properties.test ul li { border: 2px solid #ff2d25; list-style-type: square; }

CSS Frameworks Twitter Bootstrap Foundation Search for css framework and try them out Pros: Can make getting things done quickly pretty easy Cons: You can t dictate the HTML, it can get ugly

Live Demo!

HTML and CSS Karin Dalziel! Digital Design/Development Specialist @ the CDRH! kdalziel2@unl.edu! http://cdrh.unl.edu/news-events/workshops