INTRODUCTION TO HTML5! HTML5 Page Structure!

Similar documents
Basics of Web Design, 3 rd Edition Instructor Materials Chapter 2 Test Bank

Web Development & Design Foundations with HTML5 & CSS3 Instructor Materials Chapter 2 Test Bank

HTML CS 4640 Programming Languages for Web Applications

BASICS OF WEB DESIGN CHAPTER 2 HTML BASICS KEY CONCEPTS

Web Development and Design Foundations with HTML5 8th Edition

Review of HTML. Chapter Pearson. Fundamentals of Web Development. Randy Connolly and Ricardo Hoar

c122jan2714.notebook January 27, 2014

Web Development & Design Foundations with HTML5 & CSS3 Instructor Materials Chapter 2 Test Bank

Bok, Jong Soon

Certified HTML5 Developer VS-1029

HTML5 MOCK TEST HTML5 MOCK TEST I

HTML TUTORIAL ONE. Understanding What XHTML is Not

HTML Hyper Text Markup Language

Announcements. Paper due this Wednesday

CHAPTER 1: GETTING STARTED WITH HTML CREATED BY L. ASMA RIKLI (ADAPTED FROM HTML, CSS, AND DYNAMIC HTML BY CAREY)

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

Create web pages in HTML with a text editor, following the rules of XHTML syntax and using appropriate HTML tags Create a web page that includes

Programmazione Web a.a. 2017/2018 HTML5

Revision for Grade 7 ASP in Unit :1&2 Design & Technology Subject

Tutorial 1 Getting Started with HTML5. HTML, CSS, and Dynamic HTML 5 TH EDITION

This document provides a concise, introductory lesson in HTML formatting.

Full file at New Perspectives on HTML and CSS 6 th Edition Instructor s Manual 1 of 13. HTML and CSS

It is possible to create webpages without knowing anything about the HTML source behind the page.

Learning Objectives. Review html Learn to write a basic webpage in html Understand what the basic building blocks of html are

Course Overview. Week 1

Understanding this structure is pretty straightforward, but nonetheless crucial to working with HTML, CSS, and JavaScript.

HTML+ CSS PRINCIPLES. Getting started with web design the right way

Web Publishing Basics I

introduction to XHTML

A HTML document has two sections 1) HEAD section and 2) BODY section A HTML file is saved with.html or.htm extension

Web Development & Design Foundations with XHTML. Chapter 2 Key Concepts

GRAPHIC WEB DESIGNER PROGRAM

Developing a Basic Web Page

c122sep814.notebook September 08, 2014 All assignments should be sent to Backup please send a cc to this address

Chapter 2 Creating and Editing a Web Page

11. HTML5 and Future Web Application

Certified HTML Designer VS-1027

MODULE 2 HTML 5 FUNDAMENTALS. HyperText. > Douglas Engelbart ( )

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.

Tutorial 2 - HTML basics

Web Programming and Design. MPT Senior Cycle Tutor: Tamara Week 1

A Brief Introduction to HTML

Text and Layout. Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11. This presentation 2004, MacAvon Media Productions

Co. Louth VEC & Co. Monaghan VEC. Programme Module for. Web Authoring. leading to. Level 5 FETAC. Web Authoring 5N1910

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

CSC Web Programming. Introduction to HTML

HTML. Mohammed Alhessi M.Sc. Geomatics Engineering. Internet GIS Technologies كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية

HTML. Hypertext Markup Language. Code used to create web pages

HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS

Beginning Web Site Design

CSE 3. Marking Up with HTML. Comics Updates Shortcut(s)/Tip(s) of the Day Google Earth/Google Maps ssh Anti-Spyware

HTML & CSS. SWE 432, Fall 2017 Design and Implementation of Software for the Web

COMP519 Web Programming Lecture 3: HTML (HTLM5 Elements: Part 1) Handouts

What is XHTML? XHTML is the language used to create and organize a web page:

What is a web site? Web editors Introduction to HTML (Hyper Text Markup Language)

The University of Hawaii at Manoa Library Webpage Content/Design/Style Guidelines General Site Design... 2

Hyper Text Markup Language

Hyper Text Markup Language HTML: A Tutorial

5/17/2009. Marking Up with HTML. An HTML Web Page File. Tags for Bold, Italic, and underline. Structuring Documents

Html basics Course Outline

I-5 Internet Applications

ATSC Week 2 Web Authoring

MPT Web Design. Week 1: Introduction to HTML and Web Design

Creating and Building Websites

PIC 40A. Lecture 4b: New elements in HTML5. Copyright 2011 Jukka Virtanen UCLA 1 04/09/14

Web Programming Week 2 Semester Byron Fisher 2018

posting in wordpress

By Ryan Stevenson. Guidebook #2 HTML

Hyper Text Markup Language

Web Design and Development ACS Chapter 3. Document Setup

Web Designing HTML5 NOTES

CREATING A WEBSITE USING CSS. Mrs. Procopio CTEC6 MYP1

UNIT I. A protocol is a precise set of rules defining how components communicate, the format of addresses, how data is split into packets

Intro To HTML & Formatting, Part 2

Web Design and Application Development

Creating Web Pages Using Netscape Composer AGENDA FOR THIS WORKSHOP. 1. How does it all work? 2. What do I need to get started at Fairfield?

More about HTML. Digging in a little deeper

NEW WEBMASTER HTML & CSS FOR BEGINNERS COURSE SYNOPSIS

Symbols INDEX. !important rule, rule, , 146, , rule,

Chapter 4: Marking Up With HTML: A Hypertext tmarkup Language Primer

Using Dreamweaver 2 HTML

Web Page Creation Part I. CS27101 Introduction to Web Interface Design Prof. Angela Guercio

Chapter 4. Introduction to XHTML: Part 1

This will be a paragraph about me. It might include my hobbies, where I grew up, etc.

Comp-206 : Introduction to Software Systems Lecture 22. Alexandre Denault Computer Science McGill University Fall 2006

(Refer Slide Time: 01:41) (Refer Slide Time: 01:42)

HTML5 & CSS 8 th Edition. Chapter 2 Building a Webpage Template with HTML5

Creating and Editing a Web Page Using Inline Styles

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

HTML Markup for Accessibility You Never Knew About

Downloads: Google Chrome Browser (Free) - Adobe Brackets (Free) -

Varargs Training & Software Development Centre Private Limited, Module: HTML5, CSS3 & JavaScript

Computer Applications Final Exam Study Guide

Chapter 2:- Introduction to XHTML. Compiled By:- Sanjay Patel Assistant Professor, SVBIT.

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1

recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML)

Fundamentals: Client/Server

Chapter 7 Typography, Style Sheets, and Color. Mrs. Johnson

Interview Question & Answers

Unit 5 Web Publishing Systems Page 1 of 13 Part 4 HTML Part 4

Transcription:

INTRODUCTION TO HTML5! HTML5 Page Structure!

What is HTML5? HTML5 will be the new standard for HTML, XHTML, and the HTML DOM. The previous version of HTML came in 1999. The web has changed a lot since then. HTML5 is still a work in progress. However, most modern browsers have some HTML5 support.

How Did HTML5 Get Started? HTML5 is a cooperation between the World Wide Web Consortium (W3C) and the Web Hypertext Application Technology Working Group (WHATWG). WHATWG was working with web forms and applications, and W3C was working with XHTML 2.0. In 2006, they decided to cooperate and create a new version of HTML.

How Did HTML5 Get Started? Some rules for HTML5 were established: New features should be based on HTML, CSS, DOM, and JavaScript Reduce the need for external plugins (like Flash) Better error handling More markup to replace scripting HTML5 should be device independent The development process should be visible to the public

New Features Some of the most interesting new features in HTML5: The canvas element for drawing The video and audio elements for media playback Better support for local offline storage New content specific elements, like article, footer, header, nav, section New form controls, like calendar, date, time, email, url, search

Browser Support HTML5 is not yet an official standard, and no browsers have full HTML5 support. But all major browsers (Safari, Chrome, Firefox, Opera, Internet Explorer) continue to add new HTML5 features to their latest versions.

DOCTYPE Declaration The DOCTYPE declaration at the beginning of your page specifies that the document is written in HTML. In HTML5, the DOCTYPE declaration is required.

HTML Tags The <html> and </html> tags at the beginning and end of a text document identify it as HTML code. When a browser encounters these tags, it knows that anything within the two tags defined a web page. In HTML5 these tags are required.

Document Head You use the head of an HTML document to add descriptive and accessory information to your web page. The document head tags, <head> and </head>, immediately follow by the opening <html> tag and are required in HTML5. The document head contains information that does not appear in the browser windows, including title information, metadata, and references to scripts and style sheets.

Document Title The <title> and </title> tags define a page title and appear inside the document head. You can add a title to your HTML5 document to help people and search engines identify your web page. For example, if you are building a web page for a business, you might want to include the company s name and specialization in the title.

Metadata Metadata means data about data On a web page, metadata can include author information, the type of editor used to create the page, a description of the content, relevant keywords, and copyright information. Search engines often use metadata when trying to categorize a page. You place metadata inside the document head.

Body The visible content that makes up your web page, including paragraphs, lists, tables, images, canvases, and video, lives in the body of your HTML document. The body of a document is identified by the <body> and </ body> tags. The body of a document comes after the head of the document and is required in HTML5.

Semantic Tags New in HTML5 are various semantic tags that enable you to describe the meaning of different parts of your web page. These tags include the <header> tag for defining header content, <nav> tag for defining navigation, and <footer> tag for defining footer content. In previous versions of HTML, section markup was limited to tags such as <div>, which defined a section of HTML but did not tell you what the meaning of the section was.

Start an HTML5 Document You can start an HTML5 document using a text editor, HTML editor, or any word processing program. In this course we will use Aptana Studio 3 which is an open source development tool for the open web and it is available for Windows, Mac OS X, and Linux. You can download the software at http://www.aptana.com/products/studio3

Start an HTML5 Document

Start an HTML5 Document Create a new web project

Start an HTML5 Document Then create a new HTML file and name it index.html

Start an HTML5 Document Type <!DOCTYPE html>. This tag declares the document as HTML. Type <html> and close the tag with </html>

Start an HTML5 Document Type <head> this tag defines where the title, metadata, and other descriptive information appear.

Start an HTML5 Document Type <title> follows by a title text for your page. Title text describes the contents of the page and appears in the title bar of the web browser. Close the title tag with </title>

Start an HTML5 Document Type <body> and follows by the body text you want to appear on the page. This tag marks the beginning of the actual content of your web page. Close the body tag with </body> For more than 10 years, My Adventure Travel has helped customers fulfill their dreams and conquer their fears. We specialize in one-of-a-kind vacation packages to the most exciting destinations in the world. Let us help you with hotel booking, helicopter tours, and shark-cage rentals, either online or in person.

Start an HTML5 Document

Start an HTML5 Document View the HTML5 page in your favorite web browser.

Start an HTML5 Document

Add Metadata Add an author name

Add Metadata Add a page description

Add Metadata Specify keywords

Add Metadata Add a copyright and authoring tool

Add Metadata Add a character set

Create a New Paragraph You can use paragraph tags to start new paragraphs in an HTML document. In word processing program, you press Enter key to separate blocks of text. Web browsers do not read these line breaks. Instead, you must insert a <p> tag in your HTML any time you want to start a new paragraph.

Create a New Paragraph Type <p> follows by your text and close with </p>

Create a New Paragraph

Add a Line Break Web browsers normally wrap text automatically. You can use the line break tag, <br>, to control where your text breaks. You can also use the <br> tag to add blank lines between paragraphs. This is useful if you want to add extra space above or below a block of text.

Add a Line Break Type <br> in front of the line of text that you want to appear as a new line. You do not need a closing tag for the <br> tag.

Add a Line Break

Add a Line Break Opportunity The Word Break Opportunity <wbr> specifies where in a text it would be ok to add a line-break You can use this tag for long words that might present problems if they were to appear near the end of a line and cause awkward spacing. The <wbr> tag is supported in all major browsers, except Internet Explorer and Opera.

Add a Line Break Opportunity Type <wbr> in your text where you want to specify that a line break should occur if needed. You do not need a closing tag for the <wbr> tag.

Add a Line Break Opportunity

Add a Horizontal Rule You can add a dividing line, or horizontal rule, across your page to separate blocks of information. By default, most browsers display a horizontal rule as a thin gray line. Horizontal rules must occupy a line by themselves and cannot appear within a paragraph.

Add a Horizontal Rule Type <hr> where you want to insert a horizontal rule. You do not need a closing tag for the <hr> tag.

Add a Horizontal Rule

Insert a Blank Space You can insert blank spaces within a line of text to indent your text. You can also use blank spaces to help position an element on a line, such as graphic or photo. The HTML code for adding such space is which stands for nonbreaking space.

Insert a Blank Space Type in the line where you want to add a blank space.

Insert a Blank Space

Make Text Bold You can add bold formatting to your text to emphasize keywords and set them off from other text in a passage. You add bold text by surrounding the text with <b> and </b> tags. In most browsers, the <strong> tag has the same effect as the <b> tag.

Make Text Bold Type <b> in front of the text you want to make bold. Type </b> at the end of the text.

Make Text Bold

Italicize Text You can italicize your text to give it more emphasis or set it off from other text. You can italicized text by surrounding the text with <i> and </ i> tags. In most browsers, the <em> tag has the same effect as the <i> tag.

Italicize Text Type <i> in front of the text you want to italicize. Type </i> at the end of the text.

Italicize Text

Insert Preformatted Text You can use the preformatted tags, <pre> and </pre>, to display all the line breaks and spaces you enter in your HTML code for a passage of text. Preformatted text is also useful for displaying computer code on a web page because the exact spacing of such code can be important.

Insert Preformatted Text Type <pre> above the text you want to keep intact. Type </pre> below the text.

Insert Preformatted Text

Insert a Heading You can use heading to help clarify information on a page, organize text, and create visual structure. You can choose from heading level 1 <h1>, the largest, to heading level 6 <h6>, the smallest. Browsers display headings as bold text on a web page with space above and below, similar to paragraphs.

Insert a Heading

Insert a Heading

Add a Block Quote You can use block quotes to set off a passage of text from the rest of the document. The <blockquote> tag typically used with quoted text of excerpts from other sources.

Add a Block Quote

Add a Block Quote You can mark text within a passage as quoted using the <q> and </q> tags.

Add a Block Quote

Add Small Print You can add small print to your page by surrounding text with <small> and </small> tags. Small print typically includes disclaimers, legal restrictions, copyright information, and other subordinate comments. Small print is often put in the footer of a page.

Add Small Print

Insert a Comment You can use comments to write notes to yourself within your HTML code. Comments do not appear when a browser display a web page. Comments can also be useful for highlighting important sections of HTML code, such as where the header, footer, or navigation section on a page starts and ends.

Insert a Comment

Create a Numbered List You create a numbered list by inserting order list <ol> and </ ol> tags around list item <li> and </li> tags. You can change the style of the numbers in your list using the type attribute. This enables you to order content using letters or Roman numerals.

Create a Numbered List

Create a Bulleted List You can add a bulleted list to your document to set a list of items apart from the rest of the page. A bulleted list also called an unordered list. You create a bulleted list by inserting <ul> and </ul> tags around <li> and </li> tags. By default in most browsers, bullets appear as solid circles.

Create a Bulleted List

Create a Nested List You can use a nested list to add a list within a list. Nested lists enable you to display listed text at different levels within the list hierarchy. You can use both numbered and bulleted lists within an existing list.

Create a Nested List

Create a Nested List

Create a Definition List You can use a definition list in your document to define content in the format of a glossary or dictionary. You use the <dl> tag to delimit your definition list. You use the <dt> tag to define your terms. You use the <dd> tag to add your definitions. When display, definitions are typically indented relative to the terms.

Create a Definition List Type <dl> above the text you want to set as definition list. Type <dt> in front of each term and close with </dt> Type <dd> in front of each definition and close with </dd> Type </dl> after the definition list.

Create a Definition List

Define an Abbreviation You can mark text as being an abbreviation in your content using the <abbr> tag. You can then spell out the abbreviation using a title attribute within the <abbr> tag. In most browsers, positioning your cursor over text defined as an abbreviation shows any associated title text as a popup. Search engines can also read the abbreviation information to better categorize your page.

Define an Abbreviation Type <abbr> before the text you want. Within <abbr> tag, type title=, replace with the expansion of the abbreviation. Type </abbr> after the text.

Define an Abbreviation

Insert Special Characters You can use HTML code to insert special characters into your web page text. The codes used to insert special characters are called entities. Entities consist of number or name codes preceded by an ampersand and ending with a semicolon, such as ½ for the fraction ½ or for a paragraph symbol.

Insert Special Characters

Insert Special Characters Description Special Character Code Copyright Registered trademark Nonbreaking space Quotation mark " Ampersand & & Bullet Multiply Division Plus-or-minus ± ±