HTML & CSS for Library Professionals

Similar documents
Wanted! Introduction. Step 1: Styling your poster. Activity Checklist. In this project, you ll learn how to make your own poster.

Web Design and Development Tutorial 03

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:

HTML and CSS: An Introduction

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

CREATING A WEBSITE USING CSS. Mrs. Procopio CTEC6 MYP1

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

Introduction to Multimedia. MMP100 Spring 2016 thiserichagan.com/mmp100

CSS.

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

CSS means Cascading Style Sheets. It is used to style HTML documents.

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

CSS BASICS. selector { property: value; }

In this project, you ll learn how to create a webpage for your favourite recipe.

What do we mean by layouts?

CSS Cascading Style Sheets

CMPT 165: More CSS Basics

Beginning HTML. A tag is a command written between angle brackets (the less than and greater than symbols). Ex. <html>

Controlling Appearance the Old Way

Lesson 1 HTML Basics. The Creative Computer Lab. creativecomputerlab.com

Unit 20 - Client Side Customisation of Web Pages. Week 2 Lesson 4 The Box Model

Introduction to WEB PROGRAMMING

Assignments (4) Assessment as per Schedule (2)

1 Creating a simple HTML page

Creating a Job Aid using HTML and CSS

Module 2 (VII): CSS [Part 4]

Html basics Course Outline

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

CSS stands for Cascading Style Sheets Styles define how to display HTML elements

c122jan2714.notebook January 27, 2014

Parashar Technologies HTML Lecture Notes-4

Microsoft Expression Web Quickstart Guide

CSS: formatting webpages

CSS worksheet. JMC 105 Drake University

CSS مفاهیم ساختار و اصول استفاده و به کارگیری

AGENDA :: MULTIMEDIA TOOLS :: (1382) :: CLASS NOTES

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

This booklet is knowledge of. a web page. of a web page find what you. you want to. SiteSell offers. Introduction

Creating and Building Websites

Creating Layouts Using CSS. Lesson 9

Introduction to Web Design CSS Reference

HTML & CSS. Rupayan Neogy

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

Introduction to Web Design CSS Reference

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

Block & Inline Elements

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

Reading 2.2 Cascading Style Sheets

AGENDA. EMBEDDING FONTS [ Font Files & CSS font-family ] :: Online Font Converter :: ADD font-family css code to style.css

CS 350 Internet Applications I Name: Exam II (CSS) October 29, 2013

Introduction to Cascading Style Sheet (CSS)

WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5

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

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

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

CSS Selectors. element selectors. .class selectors. #id selectors

THE HITCHHIKERS GUIDE TO HTML

HTMLnotesS15.notebook. January 25, 2015

HIERARCHICAL ORGANIZATION

CSS Module in 2 Parts

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

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

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

.hedgehog { background-image: url(backyard.jpg); color: #ffff99; height: 6in; width: 12in; } .tube {

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

- HTML is primarily concerned with content, rather than style. - However, tags have presentation properties, for which browsers have default values

Lab Introduction to Cascading Style Sheets

HTML/XML. HTML Continued Introduction to CSS

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

CSS: Cascading Style Sheets

Three Ways to Use CSS:

Cascading Style Sheet Quick Reference

ADDING CSS TO YOUR HTML DOCUMENT. A FEW CSS VALUES (colour, size and the box model)

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

7300 Warden Avenue, Suite 503 Markham, Ontario Canada L3R 9Z6. Phone: Toll Free: Fax:

LING 408/508: Computational Techniques for Linguists. Lecture 14

Web Engineering CSS. By Assistant Prof Malik M Ali

11. HTML5 and Future Web Application

INTERNATIONAL UNIVERSITY OF JAPAN Public Management and Policy Analysis Program Graduate School of International Relations

CSS: The Basics CISC 282 September 20, 2014

How to lay out a web page with CSS

Web Development & Design Foundations with HTML5

CSC309 Programming on the Web week 3: css, rwd

Introduction to CSS. Part 1: Simple Text Formatting. Source Files for this Exercise are available on the Course Website DW_CSS intro

Web Development & Design Foundations with HTML5

Cascading Style Sheets (CSS)

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

COSC 2206 Internet Tools. CSS Cascading Style Sheets

Web Publishing Basics I

HTML & CSS. Lesson 1: HTML Basics Lesson 2: Adding Tables Lesson 3: Intro to CSS Lesson 4: CSS in more detail Lesson 5: Review

Universal CSS Navigation Menu: Advanced Styling Patrick Julicher Universal CSS Navigation Menu: Advanced Styling

CSS. M hiwa ahamad aziz Raparin univercity. 1 Web Design: Lecturer ( m hiwa ahmad aziz)

Web Authoring and Design. Benjamin Kenwright

HTML & CSS Cheat Sheet

> > > > Cascading Style Sheets basics

Zen Garden. CSS Zen Garden

Introduction to using HTML to design webpages

Lab 2: Movie Review. overview.png background.png rottenbig.png rbg.png fresh.gif rotten.gif critic.gif

Creating a Navigation Bar with a Rollover Effect

Transcription:

These slides are online at http://bit.ly/html_lib_slides HTML & CSS for Library Professionals Robin Camille Davis Emerging Technologies & Online Learning Librarian, John Jay College of Criminal Justice (CUNY) February 8, 2018 Southeastern NY Library Resources Council

Today s workshop X-Ray a webpage Hands-on Explanation: What s HTML? What s CSS? 10 basic tags in HTML Hands-on 10 basic properties in CSS Hands-on Break! Customizing LibGuides Hands-on Make your own page Hands-on (if time)

After today, you will... Have a sense of how web pages work Be able to talk about HTML and CSS with confidence Be able to make blog posts and LibGuides prettier with behind-the-scenes code

Open Firefox and go to goggles.mozilla.org

What IS a website? A folder of files! Sometimes these files link to other files that live outside that folder.

HTML + CSS HTML is used for structuring a page. CSS is using for styling a page. <p>hello.</p><p>goodbye.</p> <p style="color:red">hello.</p><p style="color:blue"> Goodbye.</p> Hello. Hello. Goodbye. Goodbye.

Most of the time... When you make a website, you will almost always use a pre-built system, like WordPress or LibGuides. HTML & CSS empower you to customize your post, page, or entire website! WordPress custom CSS in one post WordPress site-wide custom CSS page

.Download starter pack. http://bit.ly/html_lib Downloads a.zip with all the files you ll need today!

If you re on a Mac... Configure TextEdit to show HTML 1. Open TextEdit 2. TextEdit > Preferences 3. Check first box:

.HTML basics. Open the 1_basic-html/ folder Open html-intro.html in Notepad (Windows) or TextEdit (Mac) AND open html-intro.html in your browser

If you re on Windows... 1. Open the.html file in Notepad 2. Copy & paste into Word 3. Copy & paste back into Notepad Ta-da! Line breaks!

HTML basics: the syntax tags closing tags <p><em>i love libraries!</em></p> content I love libraries!

HTML basics: <head> Invisible information the page needs to function properly Contains the <title> tag

HTML basics: <body> The visible part of the page what s displayed

HTML basics: <h1> <h1> Main title (there can only be one) <h2> Subtitle <h3> Subsubtitle <h4> Subsubsubtitle <h5> Subsubsubsubtitle <h6> Subsubsubsubsubtitle

HTML basics: <div> Basic building block: a container, a box Later, we ll do cool things with divs

HTML basics: <img> Image! <img src="http://cuny.edu/logo.jpg" alt="cuny logo" title="city University of New York" /> *self-closing tag!

HTML basics: <ul>, <ol>, and <li> <ul> unordered list (bullet points) <ol> ordered list (numbered) <li> list item

HTML basics: <a> Link! <a href="http://nytimes.com" title="read more"> See more at the New York Times </a>

HTML basics: <p> Paragraph! The workhorse of web text. Paragraphs display spaced apart by default.

HTML basics: <em> Emphasis! This used to be <i> for Italics.

HTML basics: <strong> Strong emphasis! This used to be <b> for bold.

.CSS basics. Open the 2_basic-css/ folder Open css-intro.html in Notepad (Windows) or TextEdit (Mac) AND open css-intro.html in your browser

CSS basics: the syntax selector state curly braces a:hover { Color:hotpink; semicolon separates properties Font-family:arial, sans-serif; } property value

Attaching CSS styles to HTML structures <html> <head> <style type="text/css"> a {color:blue} </style> </head> <body> <a href="http://cuny.edu">cuny</a> </body> </html>

CSS basics: background-color The background of the thing it s styling (page body, div, ) background-color:lightgray; background-color:#ffffff;

Side note: colors! Limited set of web color names Most useful for quick test edits E.g.: yellow lightyellow yellowchiffon khaki Hex color codes Most precise E.g.: #FFFF00 #40E0D0 #670088 #C89F57 My fave color picker: htmlcolorcodes.com

CSS basics: color Font color! color:#68a100; color:cadetblue;

CSS basics: font-family The font you want! font-family:helvetica, Arial, sans-serif; In order of preference, always ending with 'serif' or 'sans-serif'

CSS basics: font-size Self-explanatory! font-size: 12px; font-size: 1.2em;

Side note: sizes! Pixels: px Basic units of screen measurement A typical desktop: 1366 x 768 px Em: em Resizable text 1em = current font size Percentage: % Best for creating page structure

CSS basics: width Self-explanatory! width: 100px; width: 90%; % of the thing it s inside of

CSS basics: border Self-explanatory! Lots of bells and whistles: border:10px; border-color:black; border-style:dotted; border:10px dotted black; border-radius:3px;

CSS basics: padding Generally, the margin around an image or area of text, inside the border. padding:10px; 10px padding all around padding-top:10px; 10px padding just on top padding:10px 10px 0px 0px; top right bottom left

CSS basics: margin Generally, the margin around an image or area of text, outside the border. margin:10px; margin-top:20px; margin:20px 10px 10px 0px;

CSS basics: float Left- or right-align something, such that the rest of the content flows around it.

. Customizing LibGuides. Open the 3_libguide/ folder Open custom.css in Notepad (Windows) or TextEdit (Mac) AND open libguide-sample.html in Notepad (Windows) or TextEdit (Mac) AND open libguide-sample.html in your browser

Class & ID selectors ID: Unique label HTML: <div id="story"> CSS: #story { width:500px } Class: Reusable label HTML: <div class="boxtitle"> CSS:.boxtitle { color:mediumaquamarine }

. Bonus: make your own page!. Open the 4_blank/ folder Open page.html in Notepad (Windows) or TextEdit (Mac) AND open style.css in Notepad (Windows) or TextEdit (Mac) AND open page.html in your browser

Blank page inspiration About Me Photo gallery using Wikimedia photos List of favorite books with links to catalog entries New York Birdwatchers Club A story from Project Gutenberg

Show off your page Email your HTML and CSS files to: rdvs18@gmail.com

Robin Camille Davis @robincamille Thank you! robdavis@jjay.cuny.edu See all presentation materials at robincamille.com