Building the User Interface by Using HTML5: Text, Graphics, and Media Lesson 2.

Slides:



Advertisements
Similar presentations
Computers: Tools for an Information Age Writing Your Own Web Page: Using HTML and Web Authoring Tools.
Advertisements

Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
Iframes & Images Using HTML.
HTML: HyperText Markup Language Hello World Welcome to the world!
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
CM143 - Web Week 2 Basic HTML. Links and Image Tags.
Marking Up With Html: A Hypertext Markup Language Primer
Database-Driven Web Sites, Second Edition1 Chapter 2 INTRODUCTION TO HTML.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
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.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.
Computer Sciences Department
Chapter 3 Adding Images in HTML. Agenda Understanding Web Page Images Prepare Your Images for the Web Insert an Image Specify an Image Size Add Alternative.
CpSc 462/662: Database Management Systems (DBMS) (TEXNH Approach) HTML Basics James Wang.
Multimedia and Web Technology Prepared by: Asst. Prof. Maryam Eskandari.
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.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
The Internet 8th Edition Tutorial 9 Creating Effective Web Pages.
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.
HTML (HyperText Markup Language)
.  Entertain  Inform  Educate  Blogs  Sell  Date  Gamble  Religion.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
WEB DESIGN USING DREAMWEAVER. The World Wide Web –A Web site is a group of related files organized around a common topic –A Web page is a single file.
HTML history, Tags, Element. HTML: HyperText Markup Language Hello World Welcome to the world!
 2002 Prentice Hall, Inc. All rights reserved.2 Chapter 2 — Introduction to HyperText Markup Language 4: Part I Outline 2.1Introduction 2.2Markup Languages.
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.
XP Mohammad Moizuddin Creating Web Pages with HTML Tutorial 1 1 New Perspectives on Creating Web Pages With HTML Tutorial 1: Developing a Basic Web Page.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
Introduction to HTML. What is a HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup tags  The.
INTRODUCTORY Tutorial 1 Using HTML Tags to Create Web Pages.
HTML: Hyptertext Markup Language Doman’s Sections.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
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.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
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.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
Tutorial #1 Using HTML to Create Web Pages. HTML, XHTML, and CSS HTML – HyperText Markup Language The tags the browser uses to define the content of the.
HTML Tutorial. What is HTML HTML is a markup language for describing web documents (web pages) HTML documents are described by HTML tags Each HTML tag.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
HTML5 and CSS3 Illustrated Unit F: Inserting and Working with Images.
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
2.1. Choose and configure HTML5 tags to display text content Choose and configure HTML5 tags to display graphics Choose and configure HTML5.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
HTML Basics.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
Marking Up with XHTML Tags describe how a web page should look
Inserting and Working with Images
Chapter 4: Scalable Vector Graphics (SVG)
AN INTRODUCTORY LESSON TO MAKING A SIMPLE WEB PAGE By: RC Emily Solis
Chapter 4 - Introduction to XHTML: Part 1
HTML Images CS 1150 Spring 2017.
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Introduction to HTML- Basics
HTML Images CS 1150 Fall 2016.
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
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
Lesson 2: HTML5 Coding.
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

Building the User Interface by Using HTML5: Text, Graphics, and Media Lesson 2

Exam Objective Matrix Skills/ConceptsMTA Exam Objectives Understanding the Essentials of HTML Choosing and Configuring HTML5 Tags to Display Text Content Choose and configure HTML5 tags to display text content. (2.1) Choosing and Configuring HTML5 Tags to Display Graphics Choose and configure HTML5 tags to display graphics. (2.2) Choosing and Configuring HTML5 Tags to Play Media Choose and configure HTML5 tags to play media. (2.3)

HTML Documents Hypertext Markup Language (HTML) is a markup language HTML is used to mark up pieces of content to display on a Web page A Web page is a type of HTML document

Tag Pairs Keywords that help to give an HTML page structure Keyword is surrounded by angled brackets Most tags come in pairs –Opening or start tag –Closing or end tag Pet Care 101 Closing tag must have same case as opening tag

Empty Tags Empty tags don’t require an end tag Examples: – for a line break – for a horizontal line

Common HTML Tags : Identifies the page as an HTML document : Contains markup and code used by the browser, such as scripts that add interactivity, and keywords to help search engines find the page : Displays the title of the Web page, which appears at the top of the Web browser, usually on the page’s tab in a tabbed browser : Surrounds content that’s visible on the Web page when viewed in a Web browser

Common HTML Tags (Continued) : Generally used to anchor a URL to text or an image; can create a named anchor within a document to allow for linking to sections of the document : Applies boldface to text : Creates a heading, which can be first level (h1) through sixth level (h6) : Inserts an image from a file or another Web site : Defines text as a paragraph

Required HTML Tags Tags required on every Web page: –

Elements A tag pair or an empty tag is also called an element. An element can describe content, insert graphics, and create hyperlinks.

Attributes Modifiers of HTML elements that provide additional information Are extensions of elements Syntax:

Creating a Link Example: – This is a link. Global attribute

Nesting To place one element inside another Example: – Make sure your pet has plenty of fresh water during hot weather.

Entities A special character, such as the dollar symbol, the registered trademark (a capital R within a circle), and accented letters Begins with an ampersand (&) and ends with a semicolon (;) Examples: –entity ® represents the registered trademark symbol –Its numerical code is ®

Entities (Continued) Called character encoding Use UTF-8 encoding whenever possible Add the following declaration to the head element:

Doctype A declaration found at the very top of almost every HTML document Specifies the language or rules the page uses

Doctype HTML 4.01 doctype example: HTML5 doctype:

Simple Web Page Markup Example Pet Services Your dog is a friend for life. Why not provide the best care possible?

Simple Web Page Markup Example

HTML 4 Text-related Elements with New Meaning or Functionality in HTML5 The element should now be used to offset text without conveying importance, such as for keywords or product names. The element now indicates content in an alternate voice or mood, like spoken text. The element indicates strong importance. The element indicates emphatic stress. The element should be used for small print, like a copyright line.

New HTML5 Elements The element creates a command button. When the user clicks a command button, a command executes. The element highlights text on a page, similar to the highlighting feature in Microsoft Word. The element displays a machine-readable time and date, such as 10:10 A.M., CST, July 19, 2012, which is handy for blogs and calendars, and potentially helps search engines provide better results when time and date are part of the search criteria.

Deprecation While new elements become available, the W3C earmarks other elements for eventual removal because their functionality is no longer useful. Removing elements from the list of available HTML elements is referred to as deprecation. Note: The same thing applies to attributes and CSS properties.

Examples of Deprecated HTML Elements : Makes text bigger relative to the current font size : Center-aligns text and content The fix: Use CSS instead

Image Basics A raster image is made up of pixels. –Example: A photograph –Formats: JPG, PNG, GIF, BMP A vector image is made up of lines and curves based on mathematical expressions. –Example: Adobe Illustrator AI file –Formats: PNG or GIF for Web display

The img element Use img to add images to an HTML document Example: The src attribute and the alt attribute are required to be fully valid. The W3C requires the alt attribute for accessibility by people with disabilities.

figure and figcaption Elements The figure element specifies the type of figure you’re adding The figcaption element adds a caption to an image on a Web page –Can display the caption before or after the image

figure and figcaption Example Illustration: © MightyIsland/iStockphoto

Side by Side Example Illustrations: © MightyIsland/iStockphoto

Canvas Use JavaScript to draw pixel-based shapes on a canvas Include color, gradients, and pattern fills Render text with various embellishments Animate objects by making them move, change scale, and so on Basic syntax for the canvas element: <canvas id="smlRectangle" height="100" width="200">

Canvas Example

Fallback “Backup” content that displays if primary content cannot Can be a problem with some older browsers –Cannot render canvas drawings or animation, for example Fallback adds an image, text, or some other HTML content within the canvas element that displays if the drawing cannot

Scalable Vector Graphics (SVG) A language for describing 2D vector graphics in Extensible Markup Language (XML) SVG graphics referred to as objects SVG loads into the DOM Vector graphic changes size to fit screen, whether 32-inch PC monitor or smartphone SVG is not new, but HTML5 can embed SVG objects in Web pages without using or tags

SVG Example

When to Use Canvas Instead of SVG If the drawing is relatively small, use canvas. If the drawing requires a large number of objects, use canvas; SVG degrades as it continually adds objects to the DOM Generally, use canvas for small screens and SVG for larger screens. If you must create highly detailed vector documents that must scale well, go with SVG. If you are displaying real-time data output, such as maps, map overlays, weather data, and so on, use canvas.

video Element Enables you to incorporate videos in HTML documents using minimal code Markup example:

video Attributes poster : Displays a static image file before the video loads autoplay : Start playing the video automatically upon page load controls : Displays a set of controls for playing, pausing, and stopping the video, and controlling the volume loop : Repeats the video

Video Markup Example

audio Element Enables you to incorporate audio (music, other sounds) in HTML documents using minimal code Markup example:

audio Example

Recap Tags Elements Attributes Nesting Entities Doctype Modified HTML 4.01 elements and new HTML5 elements Deprecation Figures and figure captions Canvas and SVG Audio and video