Lesson 02 // Elements & Attributes. There are different types of elements, but the 2 most important ones are BLOCK and INLINE. Block elements flow from.

Slides:



Advertisements
Similar presentations
Using HTML Tables Presenting Information & Layout Control.
Advertisements

Use Tables for Layout Control Day 7. You will learn to: Understand Tables Create a Simple Table Modify Your Tables Appearance Create Page Layouts with.
Chapter 3 – Web Design Tables & Page Layout
HTML: HyperText Markup Language Hello World Welcome to the world!
Cascading Style Sheets
HTML – A Brief introduction Title of page This is my first homepage. This text is bold  The first tag in your HTML document is. This tag tells your browser.
Very quick intro HTML and CSS. Sample html A Web Title.
Part 5 Introduction to CSS. CSS Display - Block and Inline Elements A block element is an element that takes up the full width available, and has a line.
INTRODUCTORY Tutorial 7 Creating Liquid Layouts. XP Objectives Discern the differences among various types of layouts Create a liquid layout Create a.
Need to define two things: › The destination › Something to click on to get there  Tag is click here  Can be text, special character or image (next.
Web Design HTML Basic Robertus Setiawan Aji Nugroho References: w3schools.com.
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Website Layouts Most websites have organized their content in multiple columns (formatted like a magazine or.
CS134 Web Design & Development Attributes, Lists, Tables, Links, and Images Mehmud Abliz.
Using CSS for Page Layout. Types of HTML Elements Block-Level Element –Creates blocks of content e.g. div, h1..h6, p, ul, ol, li, table, form –They start.
 CSS ids  Pages  Sites  HTML: class=“name”  Names may define format OR content › Either works  CAN apply multiple classes to the same tag  Multiple.
Introduction to Web Site Development Steven Emory Department of Computer Science California State University, Los Angeles Lecture 4: Tables and Frames.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
Unit 2, cont. September 14 HTML,Validating your pages, Publishing your site.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
Introduction to HTML II Shih-Heng Chin. Preface Structure of a HTML File Elements used frequently Tables.
HTML. Goals How to use the Komodo editor HTML coding and testing Basic HTML tags List and Images Tables and Links At least 2 pages and navigation
HTML. Creating a Table Attributes: border: indicates the border type of the table Value: 0 (no border), 1, 2, etc. cols: indicates the number of columns.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 06: Tables - Spring 2011.
HTML. Goals How to use the Komodo editor HTML coding and testing – List and Images – Tables and Links – At least 2 pages and navigation –
Lecture: Tables. Table Tags (all container tags) establishes a table (________) establishes a row (________) says what’s in the row more than one TD within.
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Website Layouts Most websites have organized their content in multiple columns (formatted like a magazine or.
HTML history, Tags, Element. HTML: HyperText Markup Language Hello World Welcome to the world!
IDs versus Classes Naming Your Tags for Maximum Functionality.
HTML. Basic HTML HTML document – HTML headings – to HTML paragraphs – HTML links – HTML images –
>> Introduction to HTML: Tables. HTML is used to give websites structure 5 Basic Tags Element = Start-Tag+Content+End-Tag Heading Tags [h1-h6] Paragraph.
 Word doc for you to download › Link at the beginning of class › 10 Questions › Answers to be added inline  Post to Sakai when completed › No resubmits.
 Remember that HTML is just text  Need to point to pictures  Use the img tag  alt: › screen reader › REQUIRED for this class and to validate.
Cascading Style Sheets Class 2, Lecture 3 Rachel A Ober
>> HTML: Structure Elements. Elements in HTML are either Inline or Block. Block-level Elements – Begins on a new line – Occupy the whole width – Stacks.
Lesson 03 // Cascading Style Sheets. CSS Stands for Cascading Style Sheets. We’ll be using a combination of Html and CSS to create websites. CSS is a.
TABLES 1. In this chapter you will learn that tables have many uses in HTML. Objectives: Upon completing this section, you should be able to: 1. Insert.
Computer Science 101 Lists and Tables. Lists Unordered lists - use a bullet Ordered lists - use a number, Roman numeral, or letter.
CIS234A Lecture 8 Instructor Greg D’Andrea. Review Text Table contains only text, evenly spaced on the Web page in rows and columns uses only standard.
Layout with Styles Castro Chapter 11. Tables vs. CSS You can produce “liquid layouts” (layouts that stretch as the browser is resized) using tables or.
Week 2: Building a Simple Website IMC 320 Web Publishing Spring 2011.
Using Tables for Layout INP150 Session #8. Layout Map out your page Design with paper and pencil Determine number of rows and columns you need Determine.
CS134 Web Design & Development Attributes, Lists, Tables, Links, and Images Mehmud Abliz.
`. Lecture Overview HTML Body Elements Linking techniques HyperText references Linking images Linking to locations on a page Linking to a fragment on.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
1999, COMPUTER SCIENCE, BUU Introduction to HTML Seree Chinodom
©SoftMoore ConsultingSlide 1 Introduction to HTML: Block-Level Elements.
INT222 – Internet Fundamentals
CSS Layout Cascading Style Sheets. Lesson Overview  In this lesson, we’ll cover:  Brief CSS review  Creating sections with the tag  Creating inline.
Chapter 4 HTML Tags. HTML is written in something called tags. Tags come in pairs, an opening one and a closing one. The first pair of tags we'll write.
Elements & Attributes. There are different types of elements, but the 2 most important ones are BLOCK and INLINE. Block elements flow from top to bottom.
HTML Help book. HTML HTML is the programming language used to make web pages for the Internet. HTML stands for Hyper Text Markup Language. HTML is made.
INTRODUCTION ABOUT DIV Most websites have put their content in multiple columns. Multiple columns are created by using or elements. The div element is.
Cascading Style Sheets for layout
HTML.
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
CSS Layouts: Positioning and Navbars
CSS Layouts: Grouping Elements
Webpage layout using CSS
Working with Tables: Module A: Table Basics
>> HTML: Tables.
Concepts for fluid layout
HTML Tables CS 1150 Spring 2017.
Cascading Style Sheets for layout
The Internet 10/25/11 XHTML Tables
Fixed Positioning.
Web Design and Development
Tepp Räisänen Liike/OAMK 2011
Introduction to HTML.
Multipage Sites.
Concepts for fluid layout
Presentation transcript:

Lesson 02 // Elements & Attributes

There are different types of elements, but the 2 most important ones are BLOCK and INLINE. Block elements flow from top to bottom and generate a line break before and after the element without making a space in between – ex: Inline elements flow from left to right and don’t generate a line break before or after the element, but create a space between each 2 elements – ex: div span div img div

Block-level elements Some block-level elements can contain both, block and inline elements (such as div), while others can only contain inline elements (such as p) They can have dimensions (such as width + height) Examples of block-level elements are: … Example: msu is a great university

Examples of new Html5 block-level elements:

Inline elements They are usually used with text They can only nest other inline elements They cannot be assigned dimensions except as defined by their content They allow a limited range of styling options: changing colors, fonts… Examples of inline elements are: span em cite br a Example: img is a block-inline element (block because it can have dimensions – but inline because it is laid out as an inline in the flow, i.e, imgs flow from left to right)

Examples of new Html5 inline-level elements:

Index of Block-level and Inline elements

Attributes Html elements can have different attributes. Each attribute is made up of a name and a value, written as name=“value”. Some attributes are optional, while others are required. In the examples below, the first 2 attributes are optional and the last 2 are required. Example of attribute for the div element. Required attributes of the image element. P.S. The img is an empty element. Example of attribute for the table element. <> Opening Tag Closing Tag attribute namevalue

Examples of common attributes to all elements Examples of specific attributes to specific elements ElementAttribute ahref imgsrc – alt tablecellpadding – cellspacing tdcolspan – rowspan id represented by # in css (assign an id to a single element on a page) class represented by. in css (assign a class to one or more elements) style won’t use it much (inline styling)-used in newsletters for ex. title lang

Index of Attributes

The table element Title1 Title2 Title3 Hello Bonjour Marhaba English French Arabic tr Hello tr BonjourMarhaba EnglishFrenchArabic Title1Title2Title3 tr th tr td tr td table

The table element Title1 Title2 Title3 Hello Bonjour Marhaba English HelloBonjour English Title1Title2Title3 Marhaba cellspacing, cellpadding are html specific attributes of the table element, while rowspan & colspan are html specific attributes of the td element. We mention them in Html not in CSS.

Nested elements Hello What’s up? Second level deep First level deep

SITE MAP Before creating site: Once you know the goal, you can create the content of site, ex: about, services, contact… You want to plan it out: Know the goal of website, ex: display products for sale or inform about something When content is ready, create a hierarchy for the pages of information you wish to display on your site (from general to specific)

Make design considerations: Design page layout (header, footer, side-bar, main content area, etc) CREATE SKETCH Nicely designed site that is easy for user to use. Then style the page with colors, fonts - let text be legible and font consistent, urls differentiated from body copy with color… Three important recommendations: Don’t have a lot of text in body copy, no one really reads endless paragraphs Keep important info above the fold: before people scroll down Make sure you have: 1) an intuitive navigation 2) a logical grouping of content 3) minimal clicks to arrive to desired destination