©SoftMoore ConsultingSlide 1 Introduction to HTML: Basic Document Structure.

Slides:



Advertisements
Similar presentations
Farhan Nisar University of Peshawar
Advertisements

Introduction to HTML & CSS
Web Development & Design Foundations with XHTML
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
HTML: HyperText Markup Language Hello World Welcome to the world!
Website Design.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
XHTML Basics.
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.
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 1.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 3: XHTML Coding © 2007 Prosoft Learning Corporation All rights reserved ITD 110 Web Page.
Site Development Foundations © 2004 ProsoftTraining All rights reserved.
XHTML 16-Apr-17.
HTML and XHTML Controlling the Display Of Web Content.
HTML Computing Concepts HTML - An Introduction 1.
17-Jun-15 XHTML 2 What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML.
XHTML and CSS Overview. Hypertext Markup Language A set of markup tags and associated syntax rules Unlike a programming language, you cannot describe.
Upgrading to XHTML DECO 3001 Tutorial 1 – Part 1 Presented by Ji Soo Yoon 19 February 2004 Slides adopted from
Lecture 12. A Very Brief Introduction to HTML and XHTML Instructor: Jie Yang Department of Computer Science University of Massachusetts Lowell Exploring.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
© Ms. Masihi 1.  A web page is created using a language called, Hypertext Markup Language, better known as HTML Code.  HTML is a user friendly language.
Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.
Computer Sciences Department
Creating a Simple Page: HTML Overview
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Creating a Basic Web Page
ULI101 – XHTML Basics (Part II) What is Markup Language? XHTML vs. HTML General XHTML Rules Block Level XHTML Tags XHTML Validation.
HTML BASICS Creating Web Pages with HTML CIS 133 Web Programming Concepts 1.
CS 299 – Web Programming and Design Introduction to HTML.
HTML (HyperText Markup Language)
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!
CS134 Web Design & Development Creating a Basic Web Page Mehmud Abliz.
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
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.
1 XHTML محمد احمدی نیا 2 Of 19 HTML vs XHTML  XHTML is a stricter and cleaner version of HTML.  by combining the strengths of HTML.
CP2022 Multimedia Internet Communication1 HTML and Hypertext The workings of the web Lecture 7.
XHTML1-1 Extensible HyperText Markup Language (XHTML) Xingquan (Hill) Zhu
1 Web Developer Foundations: Using XHTML Chapter 2 Key Concepts.
HTML INTRODUCTION, EDITORS, BASIC, ELEMENTS, ATTRIBUTES.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
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.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Creating Webpage Using HTML
XHTML 1.1  Derived from Standard Generalized Markup Language (SGML) of ISO  XHTML concerned primary with content rather than presentation and style 
XHTML1-1 Extensible HyperText Markup Language (XHTML) Part 2 Xingquan (Hill) Zhu
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.
XHTML By Trevor Adams. Topics Covered XHTML eXtensible HyperText Mark-up Language The beginning – HTML Web Standards Concept and syntax Elements (tags)
ECA 228 Internet/Intranet Design I Intro to Markup.
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.
_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition1  Wiley and the.
1 Web Application Programming Presented by: Mehwish Shafiq.
Lecture: Web Design Assis. Prof. Freshta Hanif Ehsan Faculty of Computer Science Kabul Polytechnic University Spring Semester
1 Tutorial 11 Creating an XML Document Developing a Document for a Cooking Web Site.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
COP 3813 Intro to Internet Computing Prof. Roy Levow Lecture 2.
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
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
CIS 228 The Internet Day 2, 9/1/11 Hypertext. The Course Instructor: Bowen Alpern Office hour: GI 137-I, 4-5pm Tu.
Hyper Text Markup Language.  My First Heading My first paragraph. Example Explained The DOCTYPE declaration defines the document type The text between.
1 Introduction to HTML. 2 Definitions  W W W – World Wide Web.  HTML – HyperText Markup Language – The Language of Web Pages on the World Wide Web.
Introduction to XHTML.
Lesson 2: HTML5 Coding.
Presentation transcript:

©SoftMoore ConsultingSlide 1 Introduction to HTML: Basic Document Structure

©SoftMoore ConsultingSlide 2 The HyperText Markup Language For creation of Web pages Mixture of –regular text for content –“markup” tags to describe content, appearance, and layout World Wide Web Consortium (W3C) Standards –HTML 3.2 –HTML 4.0 and 4.01 –XHTML –HTML 5 Varying browser support

©SoftMoore ConsultingSlide 3 HTML Example Hello Hello, world. Structure: Doctype (optional) HTML – Head – Body

©SoftMoore ConsultingSlide 4 Document Type Optionally described in first line of HTML document Helps browsers and other agents make useful inferences about the type of elements included in the document. Three Basic Types for HTML 4.0 and 4.01 –“HTML 4.01 Strict” for Style Sheets –“HTML 4.01 Transitional” for deprecated elements and attributes –“HTML 4.01 Frameset” used for frames and transitional elements and attributes. Can use XHTML with all three types HTML 5 supercedes XHTML

XHTML A reformulation of HTML as an application of XML Essential difference: XHTML must be well-formed XML, while HTML need not be. Example of differences –XHTML is case sensitive (element names are lower case) –XHTML documents must begin with XML declaration –No unclosed tags (but empty tags are allowed) e.g., or –Attribute values must be enclosed in quotes –No overlapping element tags (forces hierarchical tree structure) ©SoftMoore ConsultingSlide 5

©SoftMoore ConsultingSlide 6 Content The data contained within the document Formatted by the browser based on tags and user settings Usually not sensitive to extra whitespace Hello, world. Hello, world.

Markup Tags Identify markup elements Enclosed in angle brackets: Not case sensitive: or Recommendation: XHTML requires lowercase. Use lowercase for compatibility with XHTML. Commonly paired: … ©SoftMoore ConsultingSlide 7 Hello, world tags content formatted by the tags

©SoftMoore ConsultingSlide 8 Using Element Tags Many element tags come in pairs... The end tag is often optional This is a paragraph This is another paragraph Recommendation: For compatibility with XHTML, always supply the end tag even when it is optional. Some elements have no end tag. Two forms: (explicit empty tag – required for XHTML)

©SoftMoore ConsultingSlide 9 Nesting Elements Elements are often nested within other elements An HTML document should not contain overlapping element tags. Italicized heading proper Italicized heading improper Most browsers are forgiving of overlapping tags, but in general they should be avoided.

Attributes Supply additional information for tags Format attribute="value" Quotes optional in HTML but required in XHTML Example Hello, world. Can use CSS style sheets to separate content from presentation (more on this later). ©SoftMoore ConsultingSlide 10 attribute value

©SoftMoore ConsultingSlide 11 Comments Enclosed by special markup elements Can extend over multiple lines Space required after initial “ ” Not rendered by the user’s browser Can be used to “hide” JavaScript blocks from older browsers

©SoftMoore ConsultingSlide 12 HTML Template Document Title

©SoftMoore ConsultingSlide 13 HTML Validation Sites

©SoftMoore ConsultingSlide 14 Character Entities Used to represent special characters Two forms –numeric: © –mnemonic: © Examples –< –& &– " " –© ©– ® ® – nonbreaking space

©SoftMoore ConsultingSlide 15 Document Head HTML element: head Provides high-level information about the document to browsers and agents Common elements within the head include –title : typically displayed at the top of the browser –script : include a script (e.g., JavaScript) –style : create an internal style sheet –meta : define meta information (e.g., keywords) –link : relationship between documents (e.g., stylesheet) –base : starting location for relative URL’s –object : include an object

©SoftMoore ConsultingSlide 16 Title HTML Element: title Required head element Document Title Only one per document Should succinctly describe the document’s content Should generally be less than 65 characters Should not contain other HTML tags Can contain entity references (e.g., “ © ” for ©) Default for bookmarks/favorites

©SoftMoore ConsultingSlide 17 Document Base HTML Element: base Specifies starting location for relative URLs No end tag Default location is directory of current document

©SoftMoore ConsultingSlide 18 Meta Elements HTML Element: meta Multipurpose tag providing information through a name- content attribute pair Commonly used for –description –keywords –refreshing/forwarding

©SoftMoore ConsultingSlide 19 Examples of meta Elements <meta name="keywords" content="Java, UML, XML, J2EE object-oriented, object, consulting"> <meta name="refresh" content="5; url=

©SoftMoore ConsultingSlide 20 Background Sound HTML Element: bgsound Nonstandard element for playing sound files Supported by Internet Explorer Loop attribute specifies num of times the sound file will be played –default is 1 –value of "-1" or "infinite" means to play continuously

©SoftMoore ConsultingSlide 21 Document Body HTML Element: body Contains the basic text of the document Common attributes include –background color ( bgcolor ; can use color name or hexadecimal RGB value for color) –font color for text ( text, link, vlink, alink ) –background image: ( background ) Example

©SoftMoore ConsultingSlide 22 Color Can be expressed as a 6-digit hexadecimal number representing the red, green, and blue (RGB) components of the color. #F0F800 Sixteen standard color names –black– blue –red– … Many more extended color names –blue2– beige –darkblue– …

©SoftMoore ConsultingSlide 23 Standard Colors

©SoftMoore ConsultingSlide 24 Choosing Background Image Smaller images download faster and display faster. Check compatibility with background and text color. Images are tiled across the background. A simple design is usually the best.