Lecture 12. A Very Brief Introduction to HTML and XHTML Instructor: Jie Yang Department of Computer Science University of Massachusetts Lowell 91.113 Exploring.

Slides:



Advertisements
Similar presentations
Introduction to HTML & CSS
Advertisements

Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
Website Design.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
How Tags are used to form your Web Page
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 3: XHTML Coding © 2007 Prosoft Learning Corporation All rights reserved ITD 110 Web Page.
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
Hypertext Markup Language. Platform: - Independent  This means it can be interpreted on any computer regardless of the hardware or operating system.
Lecture 13. A Very Brief Introduction to HTML and XHTML, part II Instructor: Jie Yang Department of Computer Science University of Massachusetts Lowell.
Developing a Basic Web Page with HTML
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
HTML: PART ONE. Creating an HTML Document  It is a good idea to plan out a web page before you start coding  Draw a planning sketch or create a sample.
Computer Sciences Department
Review HTML  What is HTML?  HTML is a language for describing web pages.  HTML stands for Hyper Text Markup Language  HTML is not a programming language,
Basics of HTML.
Creating a Simple Page: HTML Overview
Internet Skills An Introduction to HTML Alan Noble Room 504 Tel: (44562 internal)
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
HTML HTML stands for "Hyper Text Mark-up Language“. Technically, HTML is not a programming language, but rather a markup language. Used to create web pages.
HTML HyperText Markup Language Constantly evolving - extra facilities being added regularly Java applets and JavaScript used to increase functionality.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
HTML Structure & syntax
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.
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.
CP2022 Multimedia Internet Communication1 HTML and Hypertext The workings of the web Lecture 7.
HTML INTRODUCTION, EDITORS, BASIC, ELEMENTS, ATTRIBUTES.
HTML. WHAT IS HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language A markup language is a set of.
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.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Introduction to HTML. What is HTML? Hyper Text Markup Language (HTML) is a language for describing web pages. HTML is not a programming language, it is.
Just A Few More Fun Objectives 1 Having Some Fun With Java Script 2 Using Style Sheets.
XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 8 1 Creating Effective Web Pages Creating HTML Documents Tutorial 8.
XP 1 HTML Committed to Shaping the Next Generation of IT Experts. 01: Introduction to HTML.
Web Programming Basics of HTML. HTML stands for Hyper Text Mark-up Language A mark-up language is different than those that you have learned before in.
Web Page Creation Part I ST: Introduction to Web Interface Design Prof. Angela Guercio.
Just Enough HTML How to Create Basic HTML Documents.
Creating Webpage Using HTML
IS1811 Multimedia Development for Internet Applications Lecture 4: Introduction to HTML Rob Gleasure
Introduction to web development and HTML MGMT 230 LAB.
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.
 Anyone with access to the Internet can post a Web page.  You can create a Web page with just a text editor.  There are Web page construction tools.
Introducing the World Wide Web Internet- a structure made up of millions of interconnected computers whose users communicate with each other and share.
HTML BTEC National in Computing Section5. Create Information “HTML: defining HTML, discussing HTML uses and demonstrating HTML basics, HTML structure…..
HTML GUIDE Press F5 and then Click on the links on the left to get to the section you want Section 1: Getting Started Section 2: Moving Banner Section.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Basic Document Structure.
2.1 XHTML. Motto High thoughts must have high language. –Aristophanes.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
WEEK -1 ACM 262 ACM 262 Course Notes. HTML What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language 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
HTML – The Basics Rebecca Shillingburg
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
Tutorial #1 Using HTML to Create Web Pages. HTML, XHTML, and CSS HTML – HyperText Markup Language The tags the browser uses to define the content of the.
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML.
HTML AN INTRODUCTION TO WEB PAGE PROGRAMMING. INTRODUCTION TO HTML With HTML you can create your own Web site. HTML stands for Hyper Text Markup Language.
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.
HTML Structure & syntax
HTML Basics.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
Web Pages Anyone with access to the Internet can post a Web page.
Introduction to XHTML.
WEBSITE DESIGN Chp 1
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
Presentation transcript:

Lecture 12. A Very Brief Introduction to HTML and XHTML Instructor: Jie Yang Department of Computer Science University of Massachusetts Lowell Exploring the Internet, Fall 2011

Anyone with access to the Internet can post a Web page. You can create a Web page with just a text editor. There are Web page construction tools available that allow you to create pages without understanding the underlying machinery. Taking Charge 2

Think about the theme or purpose of your Web page. Think about what you want to place on your page, and the source of the material you will use. Ensure that your content is consistent with your theme. Then consider the organization of this content. Planning Your Web Page 3

Create a storyboard. The storyboard shows the layout of the material you plan to place on your Web page. 4

Basic Elements ▫ Descriptive title ▫ Include your name and contact info ( ) ▫ Show the creation/modification date ▫ Use picture to highlight and emphasize the purpose of the page. ▫ Provide navigational content if multiple pages are used. 5

Design & Organization Recommendations ▫ Put the most interesting/important info at the top of the page. ▫ Keep the image files small and few. ▫ Avoid excessive use of embedded multimedia content. ▫ Use browser-safe colors. Non-standard colors may appear differently on other systems. 6

Design & Organization Recommendations ▫ Use the default fonts. Specialty fonts may not be installed on the viewer’s computer - so an alternate font will be used, potentially affecting the impact of your page. ▫ Use only a few fonts. The display may become too “busy”. ▫ Preview/test your page. Nothing is more frustrating than a Web page that is incomplete because the author failed to fix display issues 7

You all know how to use Google sites to create a website There are other WYSIWYG (What You See Is What You Get) Web page editor tools, such as Nvu, or KompoZer. So, why do we still learn HTML? Introduction 8

It’s helpful to delve deeper and see the underlying structure of a Web page. Although those tools are mostly free, they all have limitations A thorough knowledge of Web page structure and its implementation allows the user to add many new features and perform simple fixes. 9

Nvu lacks tools to insert many cool Web page features. But it’s not that hard to insert them directly in the code if you know HTML - HyperText Markup Language. The Web page description language now used will eventually be supplanted by eXtensible markup language (XML) and cascading style sheets (CSS). 10

XHTML (Extensible HyperText Markup Language) ▫ markup language for creating web pages Based on HTML (HyperText Markup Language) ▫ legacy technology of the World Wide Web Consortium (W3C) XHTML 1.0 ▫ Allows only a document’s content and structure to appear in a valid XHTML document, and not its formatting ▫ Formatting is specified with Cascading Style Sheets 11

HyperText Markup Language is a type of page description language. An HTML file is a simple ASCII text file with “markup language” inserted into it. The “markups” provide information to the browser regarding how the associated content should be displayed. The “markups” are formally known as elements. HTML and XHTML 12

There are four basic elements that should be included in every displayable Web page: ▫ html ▫ head ▫ title ▫ body 13

There are 2 general types of HTML elements: ▫ container ▫ empty Elements are formed using two types of tags: ▫ Start tag ▫ End tag All tags are formed using a pair of left and right angle brackets and the forward slash: This is the content Container elements use both start and end tags. Empty elements use only the start tag. The 4 elements define basic Web page layout: 14

HTML and XHTML 15

Create a new folder and name it “webpage”. Go to Start>Programs>Accessories>notepad Type in the following: Exploring the Internet Exploring the Internet Your First Web Page 16

From notepad, –go to “File>Save As”, –follow the folder hierarchy to the folder “webpage”, –pick “All Files” in “Save as Type,” –and enter “hello.html” in the “File Name” field –This should result in a file in ~\webpage\hello.html. From My Computer, –Go to folder webpage, and double click on hello.html –This should bring up a web browser with “ Exploring the Internet ” (this is your 1 st web page !) 17

18 See what it looks like: Exploring the Internet Exploring the Internet Exploring the Internet Exploring the Internet

Exploring the Internet Exploring the Internet Hello! Exploring the Internet Exploring the Internet Hello! Regard it as a tree html head title body pp i

All viewable Web pages have this basic structure. Note that relationship between start and end tags - they’re identical except for the forward slash character in the end tag. The indention shown is not required, but it helps to distinguish one element from another. Text placed between the start and tags of an element are the contents, hence the name container element. Start tags may include attributes, to provide further details regarding the display of the element. End tags never have attributes. 20

General form of a START tag: General form of an END tag: Put no characters (like a space or return character) between an attribute, the equal sign, and its value. A start tag can be spread across more than one line if desired, but don’t split an attribute from its value. Each attribute/value pair must be separated by at least one space or return character. Attribute values should be quoted unless it’s a single numerical value. (Some attributes are assigned several numbers as their value). 21

Attributes always have values. For example: This body element has 4 attributes that describe the text color (style element), active link text color (alink), link text color (link), and visited link text color (vlink). 22

First XHTML example. Creates a head element Creates a title element, which contains the text Welcome Creates a p element within the body, which displays welcome text XHTML comments, not interpreted by the browser 23

HTML is case insensitive. XHTML is case sensitive. Hello World is correct in HTML Hello World is wrong in XHTML ▫ Correction: Hello World HTML and XHTML 24

Use the browser “View - Page Source” selection to see the HTML (text) view of a Web page. 25

26

The head element contains the title element and other elements that provide information about the page but do not affect the display of the page. The body element contains all the viewable content. 27

Regions of text ▫  All text placed between the and tags forms one paragraph ▫ 28 HTML Tags

Specific Attributes Horizontal lines - an empty element: --- line break --- italicize or -- bold --- underline and -- super or subscript and --- font size 29

Style=“text-align:right” Style=“font-family:Arial” –Basic font types Sans-serif: Plain --- arial and helvetica Serif: embellishments called serifs at tips of letters --- times and times new roman Monspaced: characters with equal widths --- courier and courier new –From a list, the first available font will be used “arial, helvetica, sans-serif” Style=“font-size:12pt” Style=“font_weight:bold” Style=“color:blue” 30

31 Headings XHTML provides six headings (h1 through h6) for specifying the relative importance of information ▫ Heading element h1 is considered the most significant heading and is rendered in the largest font ▫ Each successive heading element (i.e., h2, h3, etc.) is rendered in a progressively smaller font

32 The text size used to display each heading element can vary significantly between browsers. In CSS, we discuss how to control the text size and other text properties. Placing a heading at the top of every XHTML page helps viewers understand the purpose of each page. Use larger headings to emphasize more important sections of a web page.

33 Heading elements h1 through h6. Creates six headings, each with decreasing significance

Further Reading Wikipedia’s explanation of HTML: ▫ W3schools.com XHTML Tutorial ▫ W3schools.com CSS Tutorial ▫ W3schools.com JavaScript Tutorial ▫ HTML Color Codes: ▫ ▫ HTML Tag Quick Reference Guide ▫