Unit 2, cont. September 14 HTML,Validating your pages, Publishing your site.

Slides:



Advertisements
Similar presentations
Anatomy of a Web Page. Parts of a Web Page Title Bar Navigation Tool Bar Location Bar Header Graphic/Image Text Horizontal Rule Links.
Advertisements

Use Tables for Layout Control Day 7. You will learn to: Understand Tables Create a Simple Table Modify Your Tables Appearance Create Page Layouts with.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
Cascading Style Sheets
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.
CS134 Web Design & Development Attributes, Lists, Tables, Links, and Images Mehmud Abliz.
HTML and XHTML Controlling the Display Of Web Content.
XHTML1 Building Document Structure. XHTML2 Objectives In this chapter, you will: Learn how to create Extensible Hypertext Markup Language (XHTML) documents.
CIS101 Introduction to Computing Week 07. Agenda Your questions Resume project Review Project Two HTML Project Three This week online Next class.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
XP Creating Web Pages with HTML Using Tables. XP Objectives Create a text table Create a table using the,, and tags Create table headers and captions.
Creating a Well-Formed Valid Document. 2 Objectives Introducing XHTML Creating a Well-Formed Document Creating a Valid Document Creating an XHTML Document.
Using HTML Tables.
Hypertext Markup Language (HTML) Created by Sarah Dooley & Amanda Foster Edited and presented by Caroline Hallam September 9, 2014.
Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.
HTML. Creating a Table Attributes: border: indicates the border type of the table Value: 0 (no border), 1, 2, etc. cols: indicates the number of columns.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 06: Tables - Spring 2011.
Chapter 5 Working with Tables. Agenda Add a Table Assign a Table Border Adjust Cell Padding and Spacing Adjust Cell Width and Height Add Column Labels.
XHTML1 Tables N100 Creating a Simple Web Page. XHTML2 Creating Basic Tables Tables are collections of rows and columns that you use to organize and display.
Identifies the Structure Table Row Column 1 Table Heading Column 2.
1 The Structure of a Web Table beginning of the table structure first row of three in the table end of the table structure table cells You do not need.
XHTML Tables. Tables create little boxes in which you can place things to keep them organized. The little boxes are called table cells. Tables are created.
Structure Content Presentation Semantics.
Creating a Simple Page: HTML Overview
HTML Comprehensive Concepts and Techniques Second Edition Project 3 Creating Tables in a Web Site.
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.
ULI101 – XHTML Basics (Part II) What is Markup Language? XHTML vs. HTML General XHTML Rules Block Level XHTML Tags XHTML Validation.
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
Web page - A Web page is a simple text file that contains a set of HTML tags (code) that describe (to the browser) what should go on a web page. It may.
XHTML1 Building Document Structure Chapter 2. XHTML2 Objectives In this chapter, you will: Learn how to create Extensible Hypertext Markup Language (XHTML)
CS134 Web Design & Development Creating a Basic Web Page Exerted from Mehmud Abliz slides.
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.
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.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
10/4/2015Tables1 Spring, 2008 Modified by Linda Kenney 4/2/08.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Unit 2, cont. September 12 More HTML. Attributes Some tags are modifiable with attributes This changes the way a tag behaves Modifying a tag requires.
Web Technologies COMP6115 Session 2: Planning, Designing, Constructing and Testing Static Web Sites Dr. Paul Walcott Department of Computer Science, Mathematics.
Designing a Web Page with Tables. A text table: contains only text, evenly spaced on the Web page in rows and columns uses only standard word processing.
Essentials of HTML Class 4 Instructor: Jeanne Hart
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Department of Information Technology Chapter 9 – Creating Tables Lecturer: Ms Melinda Chung.
HTML: Hyptertext Markup Language Doman’s Sections.
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
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
Tables Web Authoring. This kind of a table THISIs aTABLE THISIs aTABLE THISIs aTABLE THISIs aTABLE.
Lecture: Web Design Assis. Prof. Freshta Hanif Ehsan Faculty of Computer Science Kabul Polytechnic University Spring Semester
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 5: Working with Tables Kelly L.
CIS234A Lecture 8 Instructor Greg D’Andrea. Review Text Table contains only text, evenly spaced on the Web page in rows and columns uses only standard.
Unit 4 Create and Use Tables. TITLE CORNELL NOTES TOPIC: NOTES: Name: Date: 09/08/2009 Period : Summary: Reasons for using tables Unit 4 Page 1 Display.
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 Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
HTML A brief introduction HTML1. HTML, what is? HTML is a markup language for describing web documents (web pages). HTML stands for Hyper Text Markup.
XP Review 1 New Perspectives on JavaScript, Comprehensive1 Introducing HTML and XHTML Creating Web Pages with HTML.
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
CS134 Web Design & Development Attributes, Lists, Tables, Links, and Images Mehmud Abliz.
LINKING WEBPAGES USING HTML HYPERLINKS. Hyperlinks are text strings or images on a webpage which when clicked on, links to another section in the same.
`. Lecture Overview HTML Body Elements Linking techniques HyperText references Linking images Linking to locations on a page Linking to a fragment on.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Block-Level Elements.
INT222 – Internet Fundamentals
Building a Web Page. A Brief History In 1989, Tim Berners-Lee invented the Web. To enable particle physics from around the world to organize and share.
CIS101 Introduction to Computing Week 07 Spring 2004.
HTML Tables CS 1150 Spring 2017.
Programming the Web using XHTML and JavaScript
H T M L A B E S X P I N D.
Presentation transcript:

Unit 2, cont. September 14 HTML,Validating your pages, Publishing your site

Tables in HTML Tables should only be used for data However, they are also used for layout of web pages Try to keep tables for layout simple –Don’t nest tables within tables with tables, etc. –Creates havoc for trying to fix/read HTML Important tag to know how to use

Tag Indicates the beginning of a table (imagine that!) Commonly used attributes: –“border” : takes a value in pixels and creates a border around the table –“width” : takes a value in pixels or percent of horizontal space available Better to specify a percent than pixels –“cellspacing” : space between table cells, in pixels or percent –“cellpadding” : space between the cell border and the contents of the cell, also in pixels or percent

More Attributes Other attributes include: –“rules” : borders between cells You’ll most likely only use the –“none” value which has no borders between cells –“all” which has all borders between cells See XHTML 1.0 reference for the values it can take –“bgcolor” : will change the background color of the table

Tags inside Three most important and widely used tags are,, and, or table row –Defines a row inside the tag –The only attribute you’ll probably use is the bgcolor attribute Will change the background color for that row

Tag denotes a table data cell Is contained within tags Common attributes: –rowspan: how many rows the cell should span –colspan: how many columns the cell should span –bgcolor: background color of that cell –nowrap: takes the value of “nowrap” if you do not want the contents of the cell to automatically do line wrapping This can create tables which require horizontal scrolling to view --- annoying!

Tag is the tag which specifies a table header Acts much like the tag –However, this is logical markup –A table header does not usually contain table data You should use table headers when creating tables used for actual data –i.e. not for layout purposes

Table Examples In class tables

Tag Types Have seen that some tags can only go inside other tags It isn’t arbitrary 4 main classes of tags: –Top level tags –Head tags –Block level tags –Inline tags

Top Level Tags Define overall structure of the document The one’s you’re familiar with – specifies this is an html document – contains the head information which is usually not displayed as part of the page – where the “meat” of your page goes

Head Tags Head tags go inside the top level tag Give information about the page, not things to display on the page Examples: – (mandatory for this course!> Gives the page’s title at the top of the browser – we’ll use this to apply style sheets later – provides metadata, such as keywords, author, etc.

Block Level Tags Probably most widely used Block level tags take up vertical space on the page Go inside the tag Some you’ve seen: – paragraph – horizontal rule – heading tag – ordered list

Inline Tags Found inside block-level tags Called “inline” because they are placed within the text –Contents of inline tags appear beside the last text –vs. contents of block-level tags which appear below last block-level tag Change the way part of a line looks Examples: – insert an image – emphasis – insert a hyperlink

Lang Attribute Specifies the language of the text in the element Can be applied to most tags Helps search engines to categorize the page properly Is also used by browsers to render the page properly –Could even translate it automatically

How to use Lang Attribute Can be added to almost any tag If added to it will specify that the entire document is in a certain language Other common places to use lang attribute are: – : paragraph – : quote – : long quote

Examples of Lang Attribute For the entire document: – –The page is all in English For a paragraph – –The paragraph is in French Other common ones you might use are: –zh Chinese –ja Japanese

xml:lang to Specify Language Future versions of XHTML will use “xml:lang” to specify the language instead of just the lang attribute Can use both specifications without problem: – Good idea to do so

Mistakes in HTML Common browsers often display HTML which actually contains errors Just because it looks right, doesn’t mean it is right Not all browsers are this “smart” to overlook mistakes in HTML documents Example: – Badly nested tags –Most browsers will display this as: Badly nested tags It was what was meant, but not correct!

HTML Validators HTML validators, or just validators, are programs used to find errors in HTML Check the web page against the formal HTML definition and reports errors (and warnings sometimes) In order to know which version of HTML the page should be checked against, it must be specified in the HTML document

Document Type Declaration Document type declaration is used to specify the version of HTML that is being used Must be the first line of the HTML document –Before tag States that the document is written in XHTML 1.0 as defined by the W3C ALSO that it is strict XHTML

Transitional Doctype This is what you’ll use for assignment 1 The transitional type allows you to use deprecated tags and attributes –Strict does NOT ALL of your html documents MUST have a specified doctype to validate

Namespace Attribute In the tag you must add: –“xmlns = Your tag would then read: So what the heck is this? –Basically it specifies where the definition for xhtml is coming from –xmlns comes from XML NameSpace –In this case its from the w3c

How to Check a Page Use a validator from the list on the course website In class example

How to Upload a Page 1. usermin upload/download on at: – 2. Use an SCP file transfer client –Like WinSCP –Some can be found on Course Software of course webpage 3. Manually using scp –Primarily for those using linux/unix

Usermin Demonstration

Other Important Publishing Concerns All of your html files that you want to be seen need to be put in the public_html directory This is includes any directories, etc. Your entire website should be contained within public_html Your homepage will be

How to Create the Homepage Your homepage should be a file named index.html Why? –Servers are configured to look for a default file name to load –cmpt165.cs.sfu.ca has a default of “index.html” With the default page specified, you don’t have to type: – –Automatically loaded with: Imagine if for every website you also had to know the default file name Using something like index.html makes it easier

Questions