HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML

Slides:



Advertisements
Similar presentations
Project 8 Creating Style Sheets.
Advertisements

XHTML Basics.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 3: XHTML Coding © 2007 Prosoft Learning Corporation All rights reserved ITD 110 Web Page.
HTML Hypertext Markup Language –First proposed by CERN in 1989 –It is non-linear so it allows you to jump from place to place –Markup refers to the structure.
Tutorial 1 Getting Started with HTML5
XHTML1 Building Document Structure. XHTML2 Objectives In this chapter, you will: Learn how to create Extensible Hypertext Markup Language (XHTML) documents.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
Working with Cascading Style Sheets. 2 Objectives Introducing Cascading Style Sheets Using Inline Styles Using Embedded Styles Using an External Style.
Introducing XHTML: Module B: HTML to XHTML. Goals Understand how XHTML evolved as a language for Web delivery Understand the importance of DTDs Understand.
Developing a Basic Web Page Posting Files on UMBC
Tutorial 3: Adding and Formatting Text. 2 Objectives Session 3.1 Type text into a page Copy text from a document and paste it into a page Check for spelling.
HTML Notes Chapters 1--6 Codes used in creating HTML documents are called tags. Tags are always enclosed in left ( ) angle brackets. Tags can be upper.
Tutorial 1: Getting Started with HTML5
Basics of HTML.
Creating a Simple Page: HTML Overview
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
Chapter 11 Cascading Style Sheets: Part I The Web Warrior Guide to Web Design Technologies.
XP Tutorial 7New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks.
Week 1 Understanding the Web Design Environment. 1-2 HTML: Then and Now HTML is an application of the Standard Generalized Markup Language Intended to.
Essential Tags Web Design – Sec 3-3 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Tutorial 1 Developing a Basic Web Page. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives – Lesson 1 Introduction to the.
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
XHTML1 Building Document Structure Chapter 2. XHTML2 Objectives In this chapter, you will: Learn how to create Extensible Hypertext Markup Language (XHTML)
Learning Web Design: Chapter 4. HTML  Hypertext Markup Language (HTML)  Uses tags to tell the browser the start and end of a certain kind of formatting.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 8 1 Creating Effective Web Pages Creating HTML Documents Tutorial 8.
A Basic Web Page. Chapter 2 Objectives HTML tags and elements Create a simple Web Page XHTML Line breaks and Paragraph divisions Basic HTML elements.
XP Tutorial 9 1 Working with XHTML. XP SGML 2 Standard Generalized Markup Language (SGML) A standard for specifying markup languages. Large, complex standard.
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
INTRODUCTORY Tutorial 1 Using HTML Tags to Create Web Pages.
HTML Structure & syntax. Introduction This presentation introduces the following: Doctype declaration HTML Tags, Elements and Attributes Sections of a.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Creating XHTML Documents Essentials for.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
1 Web Application Programming Presented by: Mehwish Shafiq.
L. Anne Spencer (c) 2001 Basic Web Design Document, text, & layout formatting tags & attributes.
A Look at HTML (and XHTML). Types of Web Applications.
HTML Basics Computers. What is an HTML file? *HTML is a format that tells a computer how to display a web page. The documents themselves are plain text.
HTML Introduction. Lecture 7 What we will cover…  Understanding the first html code…  Tags o two-sided tags o one-sided tags  Block level elements.
CNIT 132 – Week 4 Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of.
Lesson 2 – Unit B. Quick review 1. What is the name of the eGCC host that you ftp your files? 2. What type of software do you use to create and edit web.
XP Review 1 New Perspectives on JavaScript, Comprehensive1 Introducing HTML and XHTML Creating Web Pages with HTML.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
XP 1 HTML Tutorial 1: Developing a Basic Web Page.
Cascading Style Sheet CSS Closing Switch Closing Tag Code View
HTML5 and CSS3 Illustrated Unit C: Getting Started with CSS.
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
Basic HTML Page 1. First Open Windows Notepad to type your HTML code 2.
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
NOTEPAD++ Lab 1 1 Riham ALSmari. Why Notepad++ ?  Syntax highlighting  Tabbed document interface  Zooming  Indentation code  Find and replace over.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
Getting Started with HTML
Working with Cascading Style Sheets
Getting Started with CSS
HTML5 and CSS3 Illustrated Unit D: Formatting Text with CSS
Coding, Testing and Valdating a Web Page
XHTML Basics.
Introduction to XHTML.
XHTML Basics.
XHTML Basics.
Unit A.
Structuring Content in a Web Document
XHTML Basics.
XHTML Basics.
Lesson 2: HTML5 Coding.
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
Presentation transcript:

HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML

Objectives Assess the history of HTML Compare HTML and XHTML Create an HTML document Set up the document head and body Add Web page text HTML 5 and CSS 3 - Illustrated Complete

Objectives (continued) Preview your Web page Implement one-sided tags Validate your HTML code HTML 5 and CSS 3 - Illustrated Complete

Assessing the History of HTML The World Wide Web Consortium (W3C) is responsible for maintaining HTML standards HTML is constantly under transformation W3C incorporates new features in HTML while keeping the language consistent HTML 5 and CSS 3 - Illustrated Complete

Assessing the History of HTML (continued) HTML 4 codified HTML as a semantic language Cascading Style Sheets (CSS) is a presentational language: how to present HTML Deprecated features: can still be used but their use is not recommended HTML 5 and CSS 3 - Illustrated Complete

Comparing HTML and XHTML XHTML makes HTML comply with the rules of XML Flexibility is an important part of HTML XML and XHTML do not tolerate errors XHTML and HTML exist in parallel HTML 5 and CSS 3 - Illustrated Complete

Comparing HTML and XHTML (continued) Differences Between HTML and XHTML HTML 5 and CSS 3 - Illustrated Complete

Creating an HTML Document HTML document consists of text to be displayed and tags Create document by hand-coding in a text editor or by using suitable program Most tags occur in pairs, but one-sided tags are used by themselves HTML 5 and CSS 3 - Illustrated Complete

Creating an HTML Document (continued) Start document with <!DOCTYPE html> declaration Add <html> and </html> tags to define beginning and end of Web page For clarity of structure, press [ENTER] twice between any two opening and closing tags HTML 5 and CSS 3 - Illustrated Complete

Creating an HTML Document (continued) Basic structure of a Web page HTML 5 and CSS 3 - Illustrated Complete

Setting Up the Document Head and Body HTML document divided into head and body sections Head: contains elements that are not part of the main Web page Body: elements that are visible in the main window of a Web browser Head and body tags are nested within html tags HTML 5 and CSS 3 - Illustrated Complete

Setting Up the Document Head and Body (continued) For clarity of structure, nested elements are: On new lines Indented by two spaces relative to parent element To add head section: Add <head> and </head> tags in new lines within the html tags HTML 5 and CSS 3 - Illustrated Complete

Setting Up the Document Head and Body (continued) To add body portion, add <body> and </body> tags in new lines within the html tags Add <meta charset=“utf-8”/> to specify character encoding HTML attributes specify details about the element properties HTML 5 and CSS 3 - Illustrated Complete

Setting Up the Document Head and Body (continued) Completed Web page structure HTML 5 and CSS 3 - Illustrated Complete

Adding Web Page Text Type the text for the Web page Add HTML tags to specify the element type for each text item <title> and </title>: text that appears in the Web browser’s title bar <h1> and </h1>: highest level heading <p> and </p>: paragraph of text HTML 5 and CSS 3 - Illustrated Complete

Adding Web Page Text (continued) HTML comments add information not shown in the Web browser Comments defined by <!-- … --> HTML 5 and CSS 3 - Illustrated Complete

Adding Web Page Text (continued) Title, h1, and p elements entered HTML 5 and CSS 3 - Illustrated Complete

Previewing Your Web Page To preview a Web page open it in one or more user agents Allows page writer to research problems and correct them before publishing the page Use file manager to open Web page in one or more browsers Note differences in the way the page is displayed in different browsers HTML 5 and CSS 3 - Illustrated Complete

Implementing One-Sided Tags Some HTML elements, such as line breaks, require a single tag Represent a specific occurrence of an item or behavior One sided tag are of the form <tag/> <br/>: line break HTML 5 and CSS 3 - Illustrated Complete

Implementing One-Sided Tags (continued) HTML document containing line breaks HTML 5 and CSS 3 - Illustrated Complete

Implementing One-Sided Tags (continued) Web page displaying line breaks HTML 5 and CSS 3 - Illustrated Complete

Validating Your HTML Code Code validation: automated process for comparing your code against HTML5 coding standards Useful for identifying the source of a specific problem You can use online tools to validate your code HTML 5 and CSS 3 - Illustrated Complete

Summary HTML is a coding language which has standards but is constantly under transformation An HTML document is a text document which defines a structure of the text to be displayed The structure of the text to be displayed is defined by the use of tags HTML 5 and CSS 3 - Illustrated Complete

Summary (continued) Tags can include attributes which specify their properties Two-sided tags enclose the text that they relate to One-sided tags are for specific occurrences Problems in a Web page can be identified by rendering it in a Web browser or by validating the code HTML 5 and CSS 3 - Illustrated Complete