Introduction to Programming the WWW I CMSC 10100-01 Winter 2003 Lecture 3.

Slides:



Advertisements
Similar presentations
HTML I. HTML Hypertext mark-up language. Uses tags to identify elements of a page so that a browser such as Internet explorer can render the page on a.
Advertisements

HTML Basics Customizing your site using the basics of HTML.
Session 2 Introduction to HyperText Markup Language 4 (HTML 4) Matakuliah: M0114/Web Based Programming Tahun: 2005 Versi: 5.
HTML popo.
CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
Cascading Style Sheets
HTML popo.
/k/k 1212 Cascading Style Sheets Part one Marko Boon
CHAPTER 7 STYLING CONTENT WITH CASCADING STYLE SHEETS.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
Introduction to CSS.
End User Computing An Introduction to CSS Sujana Jyothi Research Lab1, Callan Building, Department of Computer Science
Tutorial 2: Formatting Text. Objectives Session 2.1 – Learn the functions of the Common toolbar – Change the size of text – Discern which fonts to use.
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
Tutorial 3 – Designing a Web Page Working with Color & Graphics Mrs. Wilson.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 4: Horizontal Rules and Graphical Elements.
Chapter Concepts Discuss Fonts Understand Fonts
1 HTML Markup language – coded text is converted into formatted text by a web browser. Big chart on pg. 16—39. Tags usually come in pairs like – data Some.
XHTML and CSS Overview. Hypertext Markup Language A set of markup tags and associated syntax rules Unlike a programming language, you cannot describe.
XHTML and CSS Overview. Hypertext Markup Language A set of markup tags and associated syntax rules Unlike a programming language, you cannot describe.
Marking Up With Html: A Hypertext Markup Language Primer
Glencoe Digital Communication Tools Create a Web Page with HTML Chapter Contents Lesson 4.1Lesson 4.1 Get Started with HTML (85) Lesson 4.2Lesson 4.2 Format.
HTML: PART ONE. Creating an HTML Document  It is a good idea to plan out a web page before you start coding  Draw a planning sketch or create a sample.
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
ULI101: XHTML Basics (Part III) Introduction to XHTML / Continued … Block-Level vs. Inline Elements (tags) Manipulating Text,  , Text Characteristics,,,,,,,,,,,,,,,
Chapter 4 Fluency with Information Technology L. Snyder Marking Up With HTML: A Hypertext Markup Language Primer.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
Headings, Paragraphs, Formatting, Links, Head, CSS, Images
Chapter 7 Web Typography Principles of Web Design, 4 th Edition.
HTML HTML stands for "Hyper Text Mark-up Language“. Technically, HTML is not a programming language, but rather a markup language. Used to create web pages.
Creating Web Pages: Week 4, continued Is a picture worth 1000 words? HTML: body tag, text tags, lists Typography & Editorial Style Homework: Look at schedule.
4 HTML Basics Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and.
Colors, Images, & Image Maps. Working with Color Colors are defined in terms of RGB Triplet –Red, Green, Blue –0 to 255 in intensity –(00, 00, 00) is.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 4: Horizontal Rules and Graphical Elements © 2007 Prosoft Learning Corporation All rights.
Site Development Foundations © 2004 ProsoftTraining All rights reserved.
IT Introduction to Website Development Welcome!
INTRODUCTION TO HTML5 Styling Text. Change the Font Size  You can use the font-size property to change the font size for a document’s text.  Instead.
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
Understanding HTML Code
1 Web Developer Foundations: Using XHTML Chapter 2 Key Concepts.
1 Background and Text Links CGS3066 Rory J. De Simone.
Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and attributes Create.
DHTML AND JAVASCRIPT Genetic Computer School LESSON 2 HTML TAGS G H E F.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Formatting Text and Lists Essentials for.
Introduction to Programming the WWW I CMSC Summer 2003 Lecture 2.
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
HTML Basics Computers. What is an HTML file? *HTML is a format that tells a computer how to display a web page. The documents themselves are plain text.
4 HTML Basics Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and.
Formatting Text with HTML. Objectives: Students will be able to: Define the structure of the document with block elements Format numbered, bulleted, and.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Introduction to Programming the WWW I CMSC Winter 2004 Lecture 3.
What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup.
Introduction to Web Authoring Ellen Cushman /wra210.htm Class mtg. #2.
01 – HTML (1) Informatics Department Parahyangan Catholic University.
CSS.
HTML Basics.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
LAB Work 01 MBA 61062: E-Commerce
Marking Up with XHTML Tags describe how a web page should look
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Web Design 3080 : Week 3 Introduction to Dreamweaver Lecture
Cascading Style Sheets™ (CSS)
Tutorial 3 Working with Cascading Style Sheets
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Lesson 3: Cascading Style Sheets (CSS) and Graphical Elements
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

Introduction to Programming the WWW I CMSC Winter 2003 Lecture 3

Today’s topics Fonts Lists Formatting Colors Image basics

Fonts Basic tag:  formats contained text Attributes  face,size,color Presentational and informational elements Browsers font issues Deprecated elements and attributes

Font faces Controlled with the face attribute. See HTML pp for a discussion, list of safe fonts Fonts installed on browsers varies widely:  age, platform, user preferences Best to stick with “safe” fonts and use other features for effect

More on font faces Arial is a sans-serif font Times is a serif font Suggestion: serif for body, sans for title You should specify a list of fonts for  Windows, Mac, others Browsers select a default if none of the faces are found See “Web Design” Chapter 3 for guidelines

Font sizes Size is controlled by the size attribute  Can specify an “absolute” size value of “1” through “7” depends on browser and font face  Can specify a “relative” size value of “+n” or “-n” for some n This is relative to the current font size Example:

Font color Controlled with the “color” attribute  Most browsers recognize a list of text names aqua, black, blue, fuchsia, etc See HTML p. 43 for a list  Also recognize RGB codes in hexadecimal  There are 216 “Web safe” colors that are fairly consistent across platforms More on colors later

Presentation and Information HTML provides two ways of emphasizing (bold and italic) text:  Presentational elements for bold for italic  Informational elements is usually bold is usually italic Gives more information to text-voice conversion

Issues with browsers and fonts Choice of fonts installed on browsers varies widely based on:  Age of browser  Platform (Mac, Win, Linux)  Overriding user preferences To avoid difficulties it is best to:  Stick to safe fonts  Not rely too much on fonts for effect

Deprecated elements is deprecated  Still part of HTML standard  Could be removed at some (unspecified) time in the future  There is now a better way to do it: CSS (Cascading Style Sheets)

Why learn/use deprecated elements Easier to “get going” than CSS Will still be around and recognized by browsers for a good while Lots of existing HTML uses them, so you should be able to read/understand that code We’ll switch to CSS later in the quarter

Lists Three kinds of lists:  Ordered  Unordered  Definition lists Frequently used in Web programming  Sets out big ideas  Table of contents  List of links

Ordered lists Used to specify a sequence of things  top-ten list  set of instructions  outline Begun and ended with Each element in the list is Example:

Attributes for ordered lists We can set two attributes  The type of symbols used Arabic numerals capital or lower case letters capital or lower case Roman numerals  The start value Example: These attributes are deprecated and can be controlled better through CSS

Unordered lists Used for more general collection of items  list of links  ingredients for a recipe rather than instructions Be

Definition lists Not just for definitions Can be for longer descriptions, etc Uses tag to begin and end list Rather than using to denote list items, has terms and definitions  Example: partsofchanter.html

Some more formatting HTML browsers do their own thing with white space There are some ways around this:  nonbreaking white space  line breaks  block quotes  preformatted text

Nonbreaking white space The code produces a single white space  The ampersand and semicolon are required  Useful for inserting spaces by hand  Save as…HTML in Microsoft Word litters the whole page with them and leads to unreadable HTML.

Line break We’ve seen already It can be used to add multiple sets of spaces Use this rather than to add spaces

Block quotes Sets off a quotation, important note, etc. Should be contained within Usage: Example:

Preformatted text Useful for putting in computer code, “visual” poetry Typically appears in a monospaced font Usage: Example:

Colors Names: see HTML p. 43 Hexadecimal (base 16 instead of 10)  uses 0 through 9 plus A through F  “AB” = 10 * * 1 = 171; “13” = 1 * = 19  To make a color, use three two-digit numbers in sequence Web-safe colors: subset of RGB colors Example:

Images Background images  including the file  some tips Inline images  specifying a source file  flowing text  size and other attributes

Background images Set with the background attribute of body. Can be used along with bgcolor. The picture is tiled to fill the screen  Make sure the tiling looks nice!  Make sure the image doesn’t conflict with text Make the file small for fast downloads Can use with Example:

Inline images Use the standalone tag with attributes to control:  image file to include  alternate text if image is not displayed  image alignment within text  height and width of image

Including the file src attribute specifies the image file Can be:  URL for online file (this can be risky!)  local file with absolute or relative path alt attribute gives alternate text:  text-only browser  error loading image  voice-text converter Example:

Image alignment Default alignment is typically ugly The align attribute helps  “left” and “right” push image to edge and flow text around it  “bottom”,”top”,”middle” are used if image appears within the text Example: bagpipes page

Resizing the image Specify the height and width Preserve the aspect ratio This affects the size the image appears, not the size of the file  Use Photoshop or other tool to create smaller image file with coarser resolution, etc.