HTML and CSS: An Introduction

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

Desire2Learn: HTML Basics

Html basics Course Outline

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

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

HTML & CSS Cheat Sheet

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

HTML Tags <tag>stuff</tag>

CSS worksheet. JMC 105 Drake University

How the Internet Works

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

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

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

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

Introduction to WEB PROGRAMMING

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

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

Programmazione Web a.a. 2017/2018 HTML5

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

Introduction to using HTML to design webpages

HTMLnotesS15.notebook. January 25, 2015

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

HTML + CSS. ScottyLabs WDW. Overview HTML Tags CSS Properties Resources

WEBSITE PROJECT 2 PURPOSE: INSTRUCTIONS: REQUIREMENTS:

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

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

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

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:

ICT IGCSE Practical Revision Presentation Web Authoring

Introduction to Cascading Style Sheet (CSS)

Using CSS in Web Site Design

Web Page Creation Part I. CS27101 Introduction to Web Interface Design Prof. Angela Guercio

ICT IGCSE Practical Revision Presentation Web Authoring

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

**Method 3** By attaching a style sheet to your web page, and then placing all your styles in that new style sheet.

c122jan2714.notebook January 27, 2014

UNIX and Operating System Topics

Unveiling the Basics of CSS and how it relates to the DataFlex Web Framework

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

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

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

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

Unit 5 Web Publishing Systems Page 1 of 13 Part 4 HTML Part 4

CSC 121 Computers and Scientific Thinking

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

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

Module 2 (VII): CSS [Part 4]

Introduction to HTML & CSS. Instructor: Beck Johnson Week 2

GIMP WEB 2.0 MENUS. Before we begin this tutorial let s visually compare a standard navigation bar and a web 2.0 navigation bar.

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

Introduction to HTML

This document provides a concise, introductory lesson in HTML formatting.

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

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

CSCE 101. Creating Web Pages with HTML5 Applying style with CSS

INTRODUCTION TO WEB USING HTML What is HTML?

Web Engineering CSS. By Assistant Prof Malik M Ali

HTML. Mohammed Alhessi M.Sc. Geomatics Engineering. Internet GIS Technologies كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية

5 Snowdonia. 94 Web Applications with C#.ASP

What You Will Learn Today

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

Learning Basic HTML: Workshop Session One (Prepared by James F. Daugherty, The University of Kansas)

11. HTML5 and Future Web Application

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

NAVIGATION INSTRUCTIONS

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

Which is why we ll now be learning how to write in CSS (or cascading sheet style)

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

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

CSS Tutorial Part 1: Introduction: A. Adding Style to a Web Page (3 options):

Using Dreamweaver CC. Logo. 4 Creating a Template. Page Heading. Page content in this area. About Us Gallery Ordering Contact Us Links

Introduction to Web Programming and Design

HTML & CSS for Library Professionals

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

1 Creating a simple HTML page

ITNP43: HTML Lecture 4

Lab 4 CSS CISC1600, Spring 2012

HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS

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

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

THE HITCHHIKERS GUIDE TO HTML

Chapter 4. Introduction to XHTML: Part 1

epromo Guidelines DUE DATES NOT ALLOWED PLAIN TEXT VERSION

Hyper Text Markup Language

CSS Cascading Style Sheets

HTML & CSS November 19, 2014

Introduction to HTML and CSS. Arts and Humanities in the Digital Age 2018 CHASE DTP Dr. Paul Gooding

HTML/CSS Lesson Plans

Shane Gellerman 10/17/11 LIS488 Assignment 3

CSS. Location, Inheritance & the Cascade. Copyright DevelopIntelligence LLC

Fonts, text, and colour on the web. Sourcing, resizing, and inserting web site images MGMT 230 LAB

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

Creating Web Pages. Getting Started

ITL Public School Mid Term examination ( )

A Balanced Introduction to Computer Science, 3/E

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

By Ryan Stevenson. Guidebook #3 CSS

By completing this practical, the students will learn how to accomplish the following tasks:

HTML and CSS COURSE SYLLABUS

Transcription:

JMC 305 Roschke spring14 1. <html></html> 2. <head> 3. <body></body> 4. <html> <head> <body> </body> </html> 5. <title></title> <head> <title> The Walter Cronkite School... </title> HTML and CSS: An Introduction 1. Tells the browser you are using html. 2. Header tags for defining information that will not appear on the main area of your site, such as the title, the page styles, etc. 3. The main content area of your site. 4. The order in which your basic framework tags should be presented on your page. 5. Page title. Tags go in between the two header tags. 6. <strong></strong> 7. <em></em> 8. <u></u> 9. <ol> <li></li> </ol> Class Objectives: <ol> <li> HTML/CSS Web Design </li> <li> Interactive Graphics</li> <li> Multimedia Journalism</li> </ol> 6. Bolds text 7. Italicizes text 8. Underlines text 9. Ordered (numbered) list List item Adapted from Rich Johnson s JMC 305 Class Materials

2 10. <ul> <li></li> </ul> Class Objectives: <ul> <li> HTML/CSS Web Design </li> <li> Interactive Graphics</li> <li> Multimedia Journalism</li> </ul> 11. <a href= http://www. asu.edu/ target= _blank >This is a link to ASU s website</a> 12. <a href= mailto: emailaddress@ emailhost.com > Email me</a> 13. <br /> 14. <p></p> <p>this is a paragraph</p> <p>so is this</p> 10. Unordered (bulleted) list 11. Hyperlink.The href attribute lists your destination. The target attribute tells the browser where you want to open the link. In this case, we used _blank which opens the link in a new tab. 12. This creates an email link. 13. Line break (only one line) Remember, HTML won t read returns, so you have to tell it where to break. Also remember that the break tag closes itself, so the slash goes at the end of the tag instead of in a separate tag. 14. Separates the text as a paragraph. This will apply any paragraph styles to an area and will also double space your line of text.

15. <h1></h1> <h2></h2> <h3></h3> <h4></h4> <h5></h5> <h6></h6> 15. Creates standalone, bolded headlines/subheads that gradually decrease in size. H1 H2 H3 3 16. <img src= url for image goes here alt= alternate text goes here width= number /> <a href= https://www.flickr. com/photos/7119320@ N05/3312523469 title= Cronkite Bldg 1 by Sean_Marshall, on Flickr ><img src= https:// farm4.staticflickr.com/3 327/3312523469_4debe1 98c7_s.jpg width= 300 height= 500 alt= Cronkite Bldg 1 ></a> 16. Image tag. It closes itself like the <br /> tag The src attribute tells you where you are getting the picture from. The alt attribute puts in alternate text for visually impaired people or for browsers that can t load the images (or block them). If you are hosting the photo on your own server, you will need to get a direct link for it based on whatever directory it is in. However, if you are using a photo from a web sharing service, such as Flickr, you can have it provide the URL for you (be sure you have permission under Creative Commons). Make sure you get the photo URL, not the one for the page its embedded on on Flickr.

4 16. <div></div> <div id= picture ></div> <div class= picture > </div> 16. Creates an invisible content box that you can manipulate (i.e. position where you want, change the color of the text/ background) ESPN.com is a good example of visible divs. Look at all those boxes with content (pictures/text/backgrounds/etc.). The id attribute will allow you to name the div in order to organize it or manipulate it. The class attribute allows you to define the style for similar divs throughout your whole website (for example all of the pictures) so that they are standard on every page. 17. <div style= float:left; padding:15px; ></div> 17. The style attribute for the div tag allows you to use CSS (Cascading Style Sheets) to manipulate this div. Because you are using the style attribute here, everything within the quotation marks will change to CSS. CSS has different rules than HTML. Instead of using the equals sign, for example, we use a colon. Instead of closing with a / your line should end in a semicolon. Float allows you to position the div on a line along with other content. It will allow you to wrap text around your div. Padding will put space around the div. In this case, it will put 15 pixels around each side of the photo. If you want to only put space on certain sides of the div, use the margin properties (margin-left, margin-right, margin-top, or margin-bottom).

5 CSS CSS has different rules. Swap out these symbols: Instead of closing with a / (slash) use ; (semi-colon) at the end of a line. Instead of using = (equal sign) use a : (colon) Instead of using <> (angle brackets) use (curly brackets) Also, when defining the styles for a whole page or site, you can define styles for certain tags (such as <body>, <p>, <a>, or <div>) that will apply every time use that tag. You can also define for the div class attribute. With CSS, you can define styles in several different ways. You can use the HTML style attribute (as in the float example) within any tag and it will only apply to that tag. If you have several pages that need a standard style, you can put it in an external stylesheet that you link to your HTML document. If you just want to apply it to one page, put it between the <head> tags. 1. <head> <style type= text/css > </style> 2. <style type= text/css > p </style> 3. body background-color:black; font-size:50px; 1. Tells the browser you are using CSS to define a style. Don t forget to close the <style> tag before you close the head tag. Everything that goes between those two style tags will now be CSS. 2. Tells the browser that you are defining the style for the <p> tag. This change will only be applied to the <p> tag. You can swap out the p here for any other tag that you want to define (such as body, div, etc.). Notice that there is not a pair of <>. 3. Changes the body s background color to black, the font size to 50 pixels and the font color to white. Notice that the background-color and font-size properties are hyphenated but that you just say color not text-color or font-color for the text. For colors, you can use most of the main colors (red, yellow, blue, etc.) by spelling out the word. You can also be more precise by using hexidecimal codes (such as #FFFFFF).

6 4. p font-family: Arial, Helvetica, sans-serif; 4. Changes the font of anything I add the <p> tag to into Arial. Notice the difference here (the other line does not have a <p> tag and so it takes the body style, which I defined as font-family Georgia, Times, serif. 5. body background-image:url ( http://farm4.staticflickr. com/3291/ 2874230387 _015c7cd3c5.jpg ); 5. Instead of a background color, this will give you an image in the background. Where it says url type those letters exactly. You will put the actual url inside of the parentheses and the single quote (notice that it is a single quote not quotation marks). Notice that the picture tiles. There are many background images you can use that are tiles that will give you texture that you won t notice the tile. If you want to still use the image, add this property to the css: background-repeat:no-repeat. Of course, you will need to make sure your image is big enough to do that. Also, notice that you can t see the text. If you want to use a background/color image and still use black text, you can create a div that has a white background and set it over the top of your page. See the next page for an example.

6. <html> <head> <title> My Great Webpage </title> <style type= text/css > body background-color:black; font-size:50px; </style> <body> <div id= content style= backgroundcolor:white; width:500px; margin-left:20px; > Hello World! </div> </body> </html> 6. The HTML/CSS to the left describes having a background color or background image and still being able to see the text. You can make the div as deep as you d like with the height property (just like you did with the width). 7