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.

Slides:



Advertisements
Similar presentations
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.
Advertisements

Chapter 3 – Web Design Tables & Page Layout
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.
Advance CSS (Menu and Layout) Miftahul Huda. CSS Navigation MENU It's truly remarkable what can be achieved through CSS, especially with navigation menus.
Using CSS (Cascading Style Sheets) Effie Nadiv Edited by permission from author by Amir Kirsh.
CSS(Cascading Style Sheets )
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.
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.
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
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 –
Programming I 2 nd lecture. Block-level and inline elements BlockInline block-level elements generally can contain text, data, inline elements, or other.
Lecture: Tables. Table Tags (all container tags) establishes a table (________) establishes a row (________) says what’s in the row more than one TD within.
HTML II ECT 270 Robin Burke. 2 Outline Review Images text flow links Image maps Colors Tables.
CS134 Web Design & Development Creating a Basic Web Page Exerted from Mehmud Abliz slides.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
HTML Hyper-Text Markup Language or tags. HTML is a “tag” language Open and close tags Tags identified with angle brackets Basic format content (shorthand.
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.
HTML | DOM. Objectives  HTML – Hypertext Markup Language  Sematic markup  Common tags/elements  Document Object Model (DOM)  Work on page | HTML.
 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.
Lesson 02 // Elements & Attributes. There are different types of elements, but the 2 most important ones are BLOCK and INLINE. Block elements flow from.
>> HTML: Structure Elements. Elements in HTML are either Inline or Block. Block-level Elements – Begins on a new line – Occupy the whole width – Stacks.
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.
Cascading Style Sheets CSS.  Standard defined by the W3C  CSS1 (released 1996) 50 properties  CSS2 (released 1998) 150 properties (positioning)  CSS3.
Week 2: Building a Simple Website IMC 320 Web Publishing Spring 2011.
Cascading Style Sheets (CSS) Part II IT210: Web-based IT.
CS134 Web Design & Development Attributes, Lists, Tables, Links, and Images Mehmud Abliz.
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
Chapter 5 pp HTML Elements & Attributes Format Content Or Examples This Text Is A Hyperlink.
CSS Layout Cascading Style Sheets. Lesson Overview  In this lesson, we’ll cover:  Brief CSS review  Creating sections with the tag  Creating inline.
Cascading Style Sheets for layout
HTML & CSS Jan Janoušek.
HTML.
INTRO TO WEB DEVELOPMENT html
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
CSS Layouts: Positioning and Navbars
Organizing Content with Lists and Tables
CSS Layouts: Grouping Elements
Webpage layout using CSS
Working with Tables: Module A: Table Basics
Elements of HTML Web Design – Sec 3-2
HTML: HyperText Markup Language
>> HTML: Tables.
CGS 3066: Web Programming and Design Spring 2016
Cascading Style Sheets for layout
Programming the Web using XHTML and JavaScript
Web Design & Development
The Internet 10/25/11 XHTML Tables
TABLES, LISTS & IMAGES.  Tables are defined with tag.  Table is divided into rows and columns.  Table must have at least one row and one column  Table.
Styles and the Box Model
Tepp Räisänen Liike/OAMK 2011
Introduction to XHTML Cont:.
Introduction to HTML.
Multipage Sites.
Presentation transcript:

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

Html 4.01 specification

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: h1…h6 div p ul ol li blockquote hr table tr td th Example: msu is a great university

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)

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

Style is another example of attribute for the div element. The style attribute can contain one or more declarations between its quotation marks. A declaration is made up of 2 parts, a property and a value for that property. declaration propertyvalue

Examples of common attributes to all elements idrepresented by # in css classrepresented by. in css stylewon’t use it much (inline styling)-used in newsletters for ex. title lang Examples of specific attributes to specific elements ElementAttribute ahref imgsrc – alt tablecellpadding – cellspacing tdcolspan – rowspan

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