Chapter 4 and 5. Objectives Introduce markup: elements and attributes How browsers interpret HTML documents Basic structure of HTML document What do style.

Slides:



Advertisements
Similar presentations
HTML Basics Customizing your site using the basics of HTML.
Advertisements

J ENWARE Chapters 14 & 15 Learning Web Design, Fourth Edition by Jennifer Niederst Robbins Copyright © 2012.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
1 Cascading Style Sheets Continued Different kinds of selectors in a style sheet –Simple- Pseudo-Class –Contextual- Pseudo-Element –Class Image Styles.
Cascading Style Sheets
Chapter 2 HTML Basics Key Concepts
Today CSS HTML A project.
CSS CSS Precise Aesthetic Control. Cascading Style Sheets Though they can be put in HTML header, usually a separate page that the HTML links to Contains.
Making Things Look Nice: Visual Appearance and CSS CMPT 281.
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
© 2010, Robert K. Moniot Chapter 5 CSS : Cascading Style Sheets 1.
ADVANCED CSS William Neely CEO, Piecewise.com. CSS FONTS AND TEXT CSS ‣ Line-height allows to indicate the amount of space between lines; allows for equal.
How Tags are used to form your Web Page
Today’s objectives Site performance Padding, Margins, Borders
4.01 Cascading Style Sheets
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.
Hypertext Markup Language (HTML) Created by Sarah Dooley & Amanda Foster Edited and presented by Caroline Hallam September 9, 2014.
Tags through Forms. This element is required for all HTML pages It must be at the top of every page of every website We’ll see later on why it is important.
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
Overview of HTML. Three Different Approaches  Text editor like Notepad  HTML editor such as: –KompoZer –DreamWeaver –Microsoft Expression Web –iWeb.
1 The Structure of a Web Table beginning of the table structure first row of three in the table end of the table structure table cells You do not need.
Chapter 4 Chapter 4 Creating a Simple Page Disclaimer: All words, pictures are adopted from “Learning Web Design (3rdeds.)” by Jennifer NiederstRobbins,
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
Headings, Paragraphs, Formatting, Links, Head, CSS, Images
HTML, Third Edition--Illustrated Introductory 1 HTML, Third Edition Illustrated Introductory Unit F Working with Tables.
Amber Annett David Bell October 13 th, What will happen What is this business about personal web pages? Designated location of your own web page.
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
Learning Web Design: Chapter 4. HTML  Hypertext Markup Language (HTML)  Uses tags to tell the browser the start and end of a certain kind of formatting.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
CHAPTER 1 HTML & HTML5 I อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา 1.
WRT235: Writing in Electronic Environments CSS Classes, IDs, divs.
Today’s objectives  Assignment 1  Padding, Margins, Borders  Fluid Layout page  Building accessible Table  Element size with padding and border 
Introduction to HTML. What is HTML? Hyper Text Markup Language (HTML) is a language for describing web pages. HTML is not a programming language, it is.
A Basic Web Page. Chapter 2 Objectives HTML tags and elements Create a simple Web Page XHTML Line breaks and Paragraph divisions Basic HTML elements.
HTML Hyper Text Markup Language. What is an HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup.
ECA 228 Internet/Intranet Design I Intro to Markup.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
CSS Fun damentals The Document Hierarchy Element Relationships The Box Model.
Formatting Text with HTML. Objectives: Students will be able to: Define the structure of the document with block elements Format numbered, bulleted, and.
Cascading Style Sheets (CSS) Part II IT210: Web-based IT.
How to… Cascading Style Sheets. How to Insert a Style Sheet When a browser reads a style sheet, it will format the document according to it. There are.
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.
DESIGNING A WEB PAGE Introducing the… &TAGS.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
CIS67 Foundations for Creating Web Pages Professor Al Fichera Rev. September 22, 2010—All HTML code brought to XHTML standards. Reference for CIS127 and.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Coding with HTML {. THE BASICS { What is HTML and how can you use it to make websites?
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
CSS IS A LANGUAGE DESIGNED TO TARGET HTML ELEMENTS AND NODES BY TYPE, CLASS, ID AND VALUE, AND CHANGE THEIR VALUES CSS – change how your HTML looks and.
- WE’LL LOOK AT THE POSITION PROPERTY AND HOW CSS RESOLVES CONFLICTS BETWEEN STYLING INSTRUCTIONS The position property; CSS specificity hierarchy.
Understanding CSS Cascading Style Sheets control the presentation of content in HTML pages Style Sheets separate formatting from the content –Styles defined.
Chapter 5 pp HTML Elements & Attributes Format Content Or Examples This Text Is A Hyperlink.
NOTEPAD++ Lab 1 1 Riham ALSmari. Why Notepad++ ?  Syntax highlighting  Tabbed document interface  Zooming  Indentation code  Find and replace over.
4.01 Cascading Style Sheets
CSS Layouts: Grouping Elements
Webpage layout using CSS
Cascading Style Sheets (Layout)
Styles and the Box Model
HTML Intro.
MORE Cascading Style Sheets (The Positioning Model)
Lists, nesting, span/div
Floating and Positioning
4.01 Cascading Style Sheets
Web Programming and Design
Presentation transcript:

Chapter 4 and 5

Objectives Introduce markup: elements and attributes How browsers interpret HTML documents Basic structure of HTML document What do style sheets do?

Where do we start? Need content Give the document structure Identify the different text elements Add some images Specify page appearance with style sheet

Create a file Use your favorite text editor  Notepad++ is on the computers in lab  I use either TextWrangler, Sublime, or Taco HTML Edit on Mac (first two are free)  Doesn’t matter which you use, but it must be a TEXT editor.  The ones mentioned above are helpful with context styling Create a new file Add the basic HTML elements Save it in an appropriate directory with the extension.html

Basic file structure

HTML Elements Format Content here Examples This is a heading This is a paragraph. So is this… What happens if I separate my lines?

What Browsers Ignore Multiple “white” spaces Line breaks (carriage returns) Tabs Unrecognized markup – ie. anything they don’t understand Comments

Identifying Text Elements Use HTML to add meaning and structure to the content, NOT how it should appear. Choose elements based on what makes sense structurally Each element has a default style Use CSS to change how elements should appear

Block Elements Examples:  Paragraphs  Headings,, …,  Lists,, Treated as though they are rectangular boxes that are stacked up in the page. Each one takes up the entire width of the web browser’s window,,,..., have top and bottom margins  16px = 1em = height of 12pt line of text

Inline Elements Examples:  or  Creates an invisible box around the text being formatted  This is an important word No border, padding or margin in or around the box

Inline elements

Empty Elements Examples:  Elements do not have opening and closing tags and no content, they are just giving a directive. Not very useful without more information. Give information to these tags with attributes

HTML Elements & Attributes Format Content Or Examples Siena College

Power of Style Sheets Most of the default styling of HTML elements are basic To see power of style sheets:  CSS Zen Garden CSS Zen Garden All pages use exact same HTML file

Lists Unordered (Bulleted lists) First Second Third Ordered (Numbered) First Second Third First Second Third 1. First 2. Second 3. Third

Lists and have 36px of left padding For each, the bullet is positioned at -16px Seeing an example is worth a 1000-word explanation (list_example.html)

Nesting in HTML Lists are a great example of how HTML elements can be nested inside each other to create a hierarchy

Blockquotes The quote goes here Often misused to create indents Indicates a long quotation It is not considered part of the document outline

Pre-formatted text Web browsers ignore extra “white space.” Only one “space” is displayed between words and elements Extra spaces, tabs, and line breaks are not displayed at all. The tag allows extra spaces, tabs, and line breaks to be displayed. Why do web browsers ignore extra “white space?”

Figures This will display on screen

Organizing with new HTML5 tags

Time and dates Written by Jennifer Robbins ( September 1, 2012, 8pm EST )

Span and Div

Class vs. id