INT222 – Internet Fundamentals Week 8: Using New HTML features 1.

Slides:



Advertisements
Similar presentations
Chapter 3 – Web Design Tables & Page Layout
Advertisements

IE 9Google .mp4.ogv.webm Width Height Src Poster Loop Autoplay Mute Preload controls.
Ideas to Layout Beginning web layout using Cascading Style Sheets (CSS). Basic ideas, practices, tools and resources for designing a tableless web site.
Cascading Style Sheets
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Layout using CSS. Using multiple classes In the head:.important{font-style:italic;}.title{color:red;} In the body: Here's a type of paragraph that is.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Chapter 7 Page Layout Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Very quick intro HTML and CSS. Sample html A Web Title.
FORMATTING IN CONTEXT. FOLLOW UPS ANCHOR POINTS MUST BE UNIQUE  If you have more than one, how does it know where to go?  They can be repeated across.
CSS Menus and Rollovers. Agenda foil Separating style from content 3 pages in one file Rollovers in CSS Horizontal drop-downs Vertical drop-downs.
SM5312 week 11: CSS Menus & Navigation Bars1 An Introduction to Cascading Style Sheets CSS Menus and Navigation Bars Nick Foxall.
Advance CSS (Menu and Layout) Miftahul Huda. CSS Navigation MENU It's truly remarkable what can be achieved through CSS, especially with navigation menus.
CIS 1310 – HTML & CSS 6 Layout. CIS 1310 – HTML & CSS Learning Outcomes  Describe & Apply the CSS Box Model  Configure Float with CSS  Designate Positioning.
Navigation Bars Level 2 Extended Certificate Unit B12 Doing Business Online.
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
Unit 20 - Client Side Customisation of Web Pages
Tutorial 4: Creating page layout with css
More CSS - Page layout + HTML5 new features Boriana Koleva Room: C54
Today’s objectives Site performance Padding, Margins, Borders
New Semantic Elements (Part 1). Semantics Explained The textbook definition of "semantics" is the study of the relationship between words and their meanings.
HTML 5. What is HTML5? HTML5 will be the new standard for HTML, XHTML, and the HTML DOM. The previous version of HTML came in The web has changed.
CREATE A WEBPAGE WEB DESIGN. EXAMPLE LAYOUT 2 WEB COMPONENTS Header Banner and logo Footer Copyright information or Address Horizontal Navigation For.
INF Web Design Using Multimedia on the Web Video - Part 1.
Interface Programming 1 Week 5. Interface Programming 1 CALENDAR.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
4.01 Cascading Style Sheets
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
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
Audio and Video on the Web Sec 5-12 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Session: 11. © Aptech Ltd. 2HTML5 Audio and Video / Session 11  Describe the need for multimedia in HTML5  List the supported media types in HTML5 
Page Layout & Mobile Web Using columns, grid systems, etc… to layout sites for desktops and mobile.
HTML5. What is HTML5? HTML5 will be the new standard for HTML. HTML5 is the next generation of HTML. HTML5 is still a work in progress. However, the major.
Tutorial 6 Creating Tables and CSS Layouts. Objectives Session 6.1 – Create a data table to display and organize data – Modify table properties and layout.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
Dreamweaver -- CSS. Dreamweaver -- MX New icons are added in MX Most of the features commonly used in web design, and are same as FrontPage. New feature.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Today’s objectives  Assignment 1  Padding, Margins, Borders  Fluid Layout page  Building accessible Table  Element size with padding and border 
 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.
Tutorial #6 – Creating Fixed Width Layouts. Tutorial #5 Review – Box Model Every html element is surround by a box Content, Padding, Border, Margin Can.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
HTML 5 Tutorial Chapter 3 Video. Video HTML 5.0 provides a standard for showing video. Using the element we can easily embed video within our web page.
Week 8 – Part 2 Page Layout Basics Key Concepts 1.
Course created by Sarah Phillips BBCD Melbourne BAPDCOM Version 1 – April 2013.
Internet Technology Dr Jing LU Updated Dr Violet Snell / Dr Kalin Penev 1 Internet Technology (week 6)  Recap: Validating HTML  Page Layout.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
CONTROLLING Page layout
Positioning Objects with CSS and Tables
BEGINNER WEB DESIGN. INTRODUCTION Vocabulary Design Tools of the Trade HTML CSS.
Week 5.  Normal document flow  Affecting document flow with float and position properties using CSS  Using these properties to create layouts.
Group 9: Through examples, explain how to build a css navigation bar. Presented by: Daniel Ku, Matt Iannacci & Iphia Henry.
PERSPECTIVES: TUTORIAL 4 CREATING PAGE LAYOUTS WITH CSS.
Simple Website Layout Tutorial Using HTML 5 and CSS 3 Ref: layout-tutorial-html-5-css-3/
HTML 5 AND CSS Dr Mohd Soperi Mohd Zahid Semester /16.
Advanced HTML Tags:.
CSS Layouts: Positioning and Navbars
Creating Page Layouts with CSS
Chapter 4: HTML5 Media - <video> & <audio>
Cascading Style Sheets (Layout)
Web Development & Design Foundations with HTML5 7th Edition
Chapter 7 Page Layout Basics Key Concepts
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with HTML5
Essentials of Web Pages
Web Development & Design Foundations with H T M L 5
Web Development & Design Foundations with HTML5
Web Development & Design Foundations with HTML5
Presentation transcript:

INT222 – Internet Fundamentals Week 8: Using New HTML features 1

Outline HTML5 structural elements Navigation and menus Figure and figcaption tags HTML5 video and audio tags New html5 form input tag attributes Test #1 : release answers 2

HTML5 structural elements HTML 5 defines a number of new container elements for constructing documents. – Header, nav, section, aside, article and footer 3

HTML5 structural elements logo etc … menu options … section 1 … article within the section another article within the section aside content … footer content...copyright etc…

The HTML4 way of doing same thing logo etc … menu options … section 1 … …………….main page content goes in here………… aside content … footer content...copyright etc…

tags can contain others 6

Navigation and menus 7

Navigation and Menus Single Level Menu Options – Horizontal Single Level Menu Example Horizontal Single Level Menu Example Navigation bar – Vertical Single Level Menu Example Vertical Single Level Menu Example Multi Level Menu Options – Horizontal Multi Level Menu Example Horizontal Multi Level Menu Example – Vertical Multi Level Menu Example Vertical Multi Level Menu Example 8

Creating Dropdown Menu Creating (Horizontal Multi ) two-level menu two-level menu Step 1: In HTML nav tags, create menu items in a nested unordered list. Step 2: – In CSS, set rules to hide sub menu’s items: nav li >ul { display : none; } – For the menus to reappear on hover of the LI, they need to be converted back to block elements. nav li:hover > ul { display: block; position: absolute; padding-top: 10px } 9

Creating Dropdown Menu Step 3: Set up the main navigation menu with CSS nav ul { list-style: none; margin: 0; padding: 0; } nav ul li { display: block; float: left; color:#000000; background-color: #cccccc; padding: 5px 10px; margin-right: 20px; position: relative; } 10

Creating Dropdown Menu Step 4: Add gradient and change font color on hover. nav li:hover > ul li { float: none; width:130px; color: #000000; background-color: #cccccc; padding: 5px 1px; border: 1px solid; } Step 5: Position your dropdown and align it to list item. – position:relative; declaration was added to the top list items – position:absolute; declaration was added to your list inside that relatively positioned item. –.clear: both; avoid wrapping. 11

Resource & Reference DynamicDrive site - CSS library MDN : CSS position MDN : float and clear 12

Web Pages Layouts 13

Basic Web Pages Layouts One-column layout 14

Basic Web Pages Layouts Two-column layout 15

Basic Web Pages Layouts Three-column layout 16

Creating Two-column Layout Make sure to – set CSS rules for both sections/blocks of “aside” and “.main” as float: left; – set the CSS rule for the block underneath them as clear: both; – Put all in a “container” div 17

Resource & Reference Example A simple two-column layout with HTML5 & CSS DynamicDrive site - CSS library MDN : float and clear 18

About HTML-table-based Layouts HTML-table-based layouts’ disadvantages: – Not accessible, inflexible, hurt search engine optmization and etc.. HTML-table-based layouts are not allowed in INT222 assignments. Using CSS to show elements as table: – display : table; – display: table-cell; Exercise 02 - HTML FormExercise 02 - HTML Form: 19

Figure and figcaption tags 20

Figure and figcaption tags The HTML Element represents a caption associated with a figure described by the rest of the data of the element - the can be the first or last element inside a block. Examples figure & figcaption tags 21

HTML5 video and audio tags 22

HTML5 Video and Audio Tags Current, no standard for playing audio/video files on a web page. – Most audio/video files are played through a plug-in (like flash). – However, different browsers may have different plug-ins. HTML5 introduced a built-in media support via the and elements, offering the ability to easily embed media into HTML documents. – IE 9, Firefox, Opera, Chrome, and Safari support – IE8 and earlier versions, do not support.

The Element Your browser does not support the audio tag used. Example : audio tagaudio tag

Attributes of Element controls – Displays the standard HTML5 controls for the audio on the web page. src – It’s optional. You may instead use the element. autoplay loop preload buffered, muted, played

The Element <source src="DogTease_VP8.webm" type="video/webm" /> Your browser does not support the audio tag used. Example : video tagvideo tag

Attributes of Element Element The Element shares many attributes with the element but has its own attributes: – Height, width – poster

The element The source element is used to specify multiple media resources for audio and video elements in HTML5. It is an empty element. It is commonly used to serve the same media in multiple formats supported by different browsers. Attributes – src, type, media

More Information about Audio/Video Formats Audio file formats – mp3 audio format mp3 audio format – ogg audio/video format ogg audio/video format Video file formats – mp4 video format mp4 video format – webm audio/video format webm audio/video format

New html5 form input tag attributes 30

Example: linklink 31

Review Creating site navigation and page layout use HTML5 and CSS. New HTML tags – Figure and figcaption tags – HTML5 video and audio tags New html5 form input tag attributes Test #1 : release answers 32

Thank You! 33