Structuring Content in a Web Document

Slides:



Advertisements
Similar presentations
XHTML Basics.
Advertisements

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.
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
Computer Sciences Department
Basics of HTML Shashanka Rao. Learning Objectives 1. HTML Overview 2. Head, Body, Title and Meta Elements 3.Heading, Paragraph Elements and Special Characters.
Basics of HTML.
Creating a Simple Page: HTML Overview
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.
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.
HTML history, Tags, Element. HTML: HyperText Markup Language Hello World Welcome to the world!
XHTML - Basics Teppo Räisänen LIIKE/OAMK Introduction XHTML = eXtensible Hypertext Markup Language Transitional ~ HTML 4.01 Goal: to replace HTML.
CS134 Web Design & Development Creating a Basic Web Page Mehmud Abliz.
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.
1 XHTML محمد احمدی نیا 2 Of 19 HTML vs XHTML  XHTML is a stricter and cleaner version of HTML.  by combining the strengths of HTML.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Creating Webpage Using HTML
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
INTRODUCTORY Tutorial 1 Using HTML Tags to Create Web Pages.
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
HTML: Hyptertext Markup Language Doman’s Sections.
Copyright © Osmosys O S M O S Y SO S M O S Y S D e p l o y i n g E x p e r i e n c e & E x p e r t i s e™ HTML Training.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Creating XHTML Documents Essentials for.
Lecture: Web Design Assis. Prof. Freshta Hanif Ehsan Faculty of Computer Science Kabul Polytechnic University Spring Semester
Introduction to HTML Year 8. What is HTML O Hyper Text Mark-up Language O The language that all the elements of a web page are written in. O It describes.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
Creating Your 1 st Web Page. Tags Refers to anything between on a webpage Most appear in pairs surrounding content Some appear as empty tags (no closing.
HTML5 and CSS3 Illustrated Unit C: Getting Started with CSS.
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.
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML.
Glencoe Introduction to Web Design Chapter 4 XHTML Basics 1 Review Do you remember the vocabulary terms from this chapter? Use the following slides to.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
HTML Structure & syntax
Getting Started with HTML
HTML Extra Markup CS 1150 Spring 2017.
Fall 2016 CSULA Saloni Chacha
HTML5 Basics.
Getting Started with CSS
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
Programming Web Pages with JavaScript
Essential Tags Web Design – Sec 3-3
Coding, Testing and Valdating a Web Page
XHTML Basics.
3.00cs HTML Overview 3.00cs Develop webpages.
Introduction to XHTML.
Intro to Web Development Class A Review
HTML Vocabulary.
Structuring Content in a Web Document
WEBSITE DESIGN Chp 1
XHTML Basics.
XHTML Basics.
HTML A brief introduction HTML.
3.02D HTML Overview 3.02 Develop webpages.
Introduction to HTML- Basics
Intro to Web Development HTML Structure
HTML Structure.
XHTML Basics.
HTML5 Session II Chapter 2 - How to Code, Test and Validate a Web Page Chapter 3 - How to Use HTML to Structure a Web Page
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
The Most Basic HTML Page
XHTML Basics.
3.02D HTML Overview 3.02 Develop webpages.
AN INTRODUCTION BY FAITH BRENNER
Lesson 2: HTML5 Coding.
4.02A HTML Overview 4.02 Develop web pages using various layouts and technologies. (Note to instructor: HTML tags are in red only to differentiate from.
Creating Web Documents
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
Presentation transcript:

Structuring Content in a Web Document

Objectives Evaluate web accessibility standards Incorporate attributes Implement the div element Add HTML5 semantic elements HTML5 and CSS3 – Illustrated, 2nd Edition

Objectives (continued) Use special characters Specify the viewport Validate your HTML code Create an XHTML document HTML5 and CSS3 – Illustrated, 2nd Edition

Evaluate Web Accessibility Standards Web pages should be accessible to provide access to the widest possible audience Web Content Accessibility Guidelines (WCAG): reference for implementing web accessibility Accessibility goals: perceivable, operable, understandable, and robust HTML5 and CSS3 – Illustrated, 2nd Edition

Evaluate Web Accessibility Standards (continued) Web page enhanced for accessibility HTML5 and CSS3 – Illustrated, 2nd Edition

Incorporate Attributes Attribute: additional code within an opening element tag that specifies information about that element, e.g. <html lang=“en”> To use an attribute, use Attribute name Attribute value surrounded by quotes Separated by an equal sign, e.g. <meta charset=“utf-8”> HTML5 and CSS3 – Illustrated, 2nd Edition

Implement the div Element Code using attributes lang attribute charset attribute charset g HTML5 and CSS3 – Illustrated, 2nd Edition

Implement the div Element (continued) div element: Used to group other elements such as heading and its related paragraphs Used as the parent element to the other nested elements Use of div element does not change the appearance of the web page HTML5 and CSS3 – Illustrated, 2nd Edition

Implement the div Element (continued) Code containing a div element HTML5 and CSS3 – Illustrated, 2nd Edition

Add HTML5 Semantic Elements All HTML elements have semantic value because they indicate the meaning of their content, e.g. h1 indicates a heading one p indicates a paragraph div element has limited semantic meaning because it groups elements but adds no other meaning HTML5 and CSS3 – Illustrated, 2nd Edition

Add HTML5 Semantic Elements (continued) Search engines use semantic elements to provide more accurate search results Selected HTML5 semantic elements HTML5 and CSS3 – Illustrated, 2nd Edition

Add HTML5 Semantic Elements (continued) script element helps browsers interpret elements Code with semantic elements and script HTML5 and CSS3 – Illustrated, 2nd Edition

Use Special Characters Some characters cannot be entered directly into HTML text They may be misinterpreted as computer instructions Character reference: formatted code that represents characters in the HTML character set Have the format &code; HTML5 and CSS3 – Illustrated, 2nd Edition

Use Special Characters (continued) Two types of character references Numeric character reference, format &#code;, e.g. • for a bullet symbol Named character reference, only a few, format &code;, e.g. > for greater than symbol (>) Important character references HTML5 and CSS3 – Illustrated, 2nd Edition

Use Special Characters (continued) Code for special characters in web page HTML5 and CSS3 – Illustrated, 2nd Edition

Specify the Viewport Viewport: the imaginary window through which most mobile browsers display web pages viewport meta element: used to change a browser’s viewport settings name attribute set to the value of viewport content attribute specifying one or more pairs of properties and values HTML5 and CSS3 – Illustrated, 2nd Edition

Specify the Viewport (continued) Most commonly used viewport content value: “width=device-width” viewport attribute properties HTML5 and CSS3 – Illustrated, 2nd Edition

Specify the Viewport (continued) Code with viewport element and resulting display HTML5 and CSS3 – Illustrated, 2nd Edition

Debug your HTML code Bug: a problem that results from incorrectly written code Debug: the process of finding and removing bugs from code Common bugs and causes HTML5 and CSS3 – Illustrated, 2nd Edition

Debug your HTML code (continued) Code with bugs and resulting page HTML5 and CSS3 – Illustrated, 2nd Edition

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 Useful for ensuring code works now and in the future Use online tools to validate your code HTML 5 and CSS 3 - Illustrated Complete

Validate Your HTML Code (continued) Common validation errors and warnings HTML 5 and CSS 3 - Illustrated Complete

Validate your HTML code (continued) Markup validation service and results HTML5 and CSS3 – Illustrated, 2nd Edition

Create an XHTML Document XHTML (Extensible Hypertext Markup Language): version of HTML that conforms to rules of another language XML (Extensible Markup Language) XHTML requires additional code, e.g. Uses XHTML DOCTYPE statement Closing all empty elements with a space and a slash (/) in closing tag HTML5 and CSS3 – Illustrated, 2nd Edition

Create an XHTML Document (continued) Differences between HTML and XHTML HTML5 and CSS3 – Illustrated, 2nd Edition

Create an XHTML Document (continued) HTML code changed to XHTML HTML5 and CSS3 – Illustrated, 2nd Edition

Summary Make your website accessible; use WCAG standards as a reference Use attributes to specify additional information about an element, using the format attribute name=“value” Use the div element to group related elements and to add limited semantic meaning HTML5 and CSS3 – Illustrated, 2nd Edition

Summary (continued) Use semantic elements to group related elements and to indicate the role of the elements; used by search engines to improve results Character references for code that might be misinterpreted by browser Numeric character reference; &#code; Named character reference; &code; HTML5 and CSS3 – Illustrated, 2nd Edition

Summary (continued) Use viewport meta element to change a browser’s viewport settings and determine the window display, format includes two parts, e.g. name=“viewport” content=“width=device-width” Debug your code to find and fix coding errors HTML5 and CSS3 – Illustrated, 2nd Edition

Summary (continued) Validate your code against HTML5 standards to Help find errors Ensure browsers display the page correctly Ensure the web page works in the future XHTML based on XML and requires additional coding that HTML does not HTML5 and CSS3 – Illustrated, 2nd Edition