Structure Content Presentation Semantics. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

Slides:



Advertisements
Similar presentations
Introduction to HTML & CSS
Advertisements

Web Development & Design Foundations with XHTML
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
COS 125 Internet Fundamentals and Web Page Design Day 3.
1 HTML Standards & Compliance. 2 Minimum Required HTML tags: (must go in this order!)
1. Content – Collective term for all text, images, videos, etc. that you want to deliver to your audience. 2. Structure – How the content is placed on.
HTML/XML XHTML Authoring. Creating Tables  Table: An arrangement of horizontal rows and vertical columns. The intersection of a row and a column is called.
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 1.
XHTML 16-Apr-17.
17-Jun-15 XHTML 2 What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML.
Unit 2, cont. September 14 HTML,Validating your pages, Publishing your site.
COS 125 Day 13. Agenda Capstone Projects Proposals Over Due Timing of deliverables is 10% of Grade Still missing two First Capstone Progress Report Due.
Tutorial 9 Working with XHTML. XP Objectives Describe the history and theory of XHTML Understand the rules for creating valid XHTML documents Apply a.
Creating a Well-Formed Valid Document. 2 Objectives Introducing XHTML Creating a Well-Formed Document Creating a Valid Document Creating an XHTML Document.
Assignment 1 Pointers ● Be sure to use all tags properly – Don't use a tag for something it wasn't designed for – Ex. Do not use heading tags... for regular.
XHTML and CSS Overview. Hypertext Markup Language A set of markup tags and associated syntax rules Unlike a programming language, you cannot describe.
COS 125 Internet Fundamentals and Web Page Design Day 12.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
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
HTML. Goals How to use the Komodo editor HTML coding and testing – List and Images – Tables and Links – At least 2 pages and navigation –
Structure Content Presentation Semantics.
Creating a Simple Page: HTML Overview
Creating a Basic Web Page
Working with XHTML Creating a Well-Formed Valid Document.
XP Tutorial 9New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
XP The University of Akron Summit College Business Technology Department Computer Information Systems 2440: 140 Internet Tools Instructor: Enoch E. Damson.
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
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.
CS134 Web Design & Development Creating a Basic Web Page Mehmud Abliz.
1 HTML intro The development of HTMLThe development of HTML The transition from HTML to XHTMLThe transition from HTML to XHTML XHTML syntax, tags, and.
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.
Introduction. Document Structure Overview  XML declaration (prolog)  Document type declaration  Root element (namespace)  Document header  Document.
1 HTML XHTML. 2 Understand the Doctype tag Know the html tags which are now classed as depreciated Understand how Dreamweaver adds styles Add styles to.
1 XHTML محمد احمدی نیا 2 Of 19 HTML vs XHTML  XHTML is a stricter and cleaner version of HTML.  by combining the strengths of HTML.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
1 Web Developer Foundations: Using XHTML Chapter 2 Key Concepts.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
XP Tutorial 9 1 Working with XHTML. XP SGML 2 Standard Generalized Markup Language (SGML) A standard for specifying markup languages. Large, complex standard.
HTML: Hyptertext Markup Language Doman’s Sections.
Lesson 4.
Introduction HTML (Hypertext Markup Language) is used to create document on the World Wide Web. HTML is not a programming language, it is a markup language.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Creating XHTML Documents Essentials for.
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
1 Web Application Programming Presented by: Mehwish Shafiq.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Basic Document Structure.
Advanced Topics Lecture 8 Rachel A Ober
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
XP Tutorial 9New Perspectives on HTML and XHTML, Comprehensive 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
Tutorial 9 Working with XHTML. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Describe the history and theory of XHTML.
INT222 – Internet Fundamentals
Tutorial 9 Working with XHTML. XP Objectives Describe the history and theory of XHTML Understand the rules for creating valid XHTML documents Apply a.
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
Hyper Text Markup Language.  My First Heading My first paragraph. Example Explained The DOCTYPE declaration defines the document type The text between.
HTML And the Internet. HTML and the Internet ► HTML: HyperText Markup Language  Language in which all pages on the web are written  Not Really a Programming.
Creating a Well-Formed Valid Document
Tutorial 9 Working with XHTML
XHTML Basics.
Introduction to XHTML.
XHTML Basics.
XHTML Basics.
HTML A brief introduction HTML.
Tutorial 9 Working with XHTML
XHTML Basics.
Creating a Basic Web Page
XHTML Basics.
Web Design & Development
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
Presentation transcript:

Structure Content Presentation Semantics

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " An XHTML 1.0 Strict standard template <meta http-equiv="content-type" content="text/html;charset=utf-8" /> … Your HTML content here … DOCTYPE XML Namespace Content Type & Character Set

 Overview  Page consists of:  DOCTYPE  xml namespace  head section  title tags  meta tag  content type  character set  body section  All enclosed in html tags  Lets discuss purpose of each section

 DOCTYPE <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "  Provides info for browsers and validators  An attempt to deal with code written according to standards versus legacy code from 1990’s  Browsers can operate in three modes ( render the page differently):  Standards Mode  Quirks Mode  Almost Standards Mode  Excellent article  Some browsers will switch to Quirks mode if DOCTYPE not present  Examples of Quirks vs Standards (bottom of page)  Great Timeline of Browser:   Not valid HTML if you leave DOCTYPE out  Different DOCTYPES for each version of HTML and XHTML 

 DOCTYPES exists for different versions of HTML and XHTML but wait they also have different levels.  Strict  This is what you should be using.  Doesn’t allow HTML tags being used for presentational purposes – Ex. center, font, iframe, strike, u, align bgcolor, noshade, nowrap, text, link, vlink, vspace   Transitional  Good for legacy code  Helpful for people moving from older HTML to web standards  Frameset  Not recommended  Look at Dreamweaver settings for new files.  Firefox tells you the mode in upper right corner: checkmark for standards and an x for quirks mode.

 Things to remember about DOCTYPEs  Copy your DOCTYPE from a standardized template because typos or spacing errors could invalidate the DOCTYPE  If a browser reads an HTML file without a DOCTYPE it may think this is a very old html file and the browser may use its old rules (Quirks mode) to try to display it. You may waste time fixing the HTML in a document because of a faulty DOCTYPE  Use the DOCTYPE to help you validate your page – find typos, syntax errors and deprecated tags  For this class use XHTML 1.0 Strict!!!!!

 xml namespace   An attribute of the html tag  It is an XML thing. Namespaces help clarify confusion around tags with the same name.  “any tag within this document which doesn't have a namespace explicitly specified exists within the namespace - and therefore can be interpreted as XHTML.  The URL is actually a unique identifier – no code is read from the site or interpreted by the browser

 head section An XHTML 1.0 Strict standard template <meta http-equiv="content-type" content="text/html; charset=utf-8" />  Head section does not display on rendered document. Why??  Head section at a minimum consists of a title and a meta tag containing content type and charset

<meta http-equiv="content-type" content="text/html; charset=utf-8" /> content=“text/html” - MIME (Multipurpose Internet Mail Extensions) is a standard that describes content being sent. Content can be text, images, audio or application specific The server can send a message in the HTTP header stating the content type Or the document (in web design) can have a attribute in the meta tag stating the type The server overrules the document Remember XHTML 1.1 expected a document of type application/xhtml+xml - never really worked Browser has different “engines” and rules and needs to know how to interpret the bits and bytes Firebug – Net panel shows headers with content types

<meta http-equiv="content-type" content="text/html; charset=utf-8" />  What is this charset stuff??  character-encoding/2 character-encoding/2  html html  ASCII – Unicode – UTF8 – More acronym soup  For most html documents you create use utf-8 Very good article

 When HTML was only used by scientists the emphasis was on the structure of a page – no need for the page to look “pretty”  Headers(h1), sub-headers(h3), paragraphs(p), lists(ol).  However, users and browser manufacturers allowed users to apply certain HTML tags for presentational (look pretty) purposes.  HTML House of Horror: hings_that_go_blink_in_the_n.html#26 hings_that_go_blink_in_the_n.html#26  Header tags to make something bold and big even if it wasn’t a header.  Blockquote (blockquote) tags to make some text indented even though it wasn’t a quote.  Font (font) tags to change the size and color of text.  Table (table) tags to make the layout of a page!

 Use HTML for structure  Try to use a tag that comes close to the role the content plays on the page ( CSS: The Missing Manual, 2 nd edition)  In other words write semantic HTML  antic_html/ antic_html/    HTML 4.01/XHTML 1.0 list of allowed tags for Strict, Transitional and Frameset   Note the deprecated tags – won’t pass validator in Strict mode  Use CSS (Cascading Style Sheets) for presentation  Apply CSS to the HTML tag

 From CSS: The Missing Manual 2 nd edition 1. Use HTML for structure 2. Use CSS for presentation 3. Stop using,,, for layout and body tag attributes like background, bgcolor, text, link, alink, vlink 4. Stop using leftmargin, topmargin, marginwidth, marginheight attributes 5. Don’t overuse the tag Rule of thumb: Stop using attributes assigned to tags to control color, borders, backgrounds, and alignments. List of deprecated tags and attributes:

 From CSS: The Missing Manual 2 nd edition 1. Only use one H1 tag per page 2. Use headings to indicate relative importance of text. Ex. All headers of equal importance should share a or tag. Use the next level down for lesser important text. Try not to skip levels. 3. Use for paragraphs of text 4. Use for list of related items 5. Use for steps or order of importance

6. For glossary of terms use,, 7. For quotes use either or 8. Be specific if you can: for book title, newspaper article, website for contact information 9. Avoid using tags to simply add presentation 10. If a tag doesn’t fit the bill look to the and tag 11. Don’t overuse tag 12. Develop good coding habits !!!! like/ like/

 Create a XHTML 1.0 Strict webpage using all of the tags from the HTML Beginner Section of HTML Dog website. As always run it through and post validator results. BTW, don’t copy the one on the site! NO CSS!!!  Create a XHTML 1.0 Strict webpage using all of the tags from the HTML Intermediate Section (Excluding JavaScript) of HTML Dog website. As always run it through and post validator results. NO CSS!!!  Create a HTML 4.01 Transitional website using the table tag for layout purposes. Your site should have at a minimum a header, two columns, and a footer. Content is not the emphasis of the assignment - You can use basic, simple, made-up content. BTW – don’t just copy the Knuckles site. NO CSS!!!  Evaluation: Validation, Use of semantic html, correct usage of tags, correct syntax, indentation/formatting of code, correct DOCTYPES, ability to create a table layout and its formatting and appearance.