Comp-206 : Introduction to Software Systems Lecture 22. Alexandre Denault Computer Science McGill University Fall 2006

Similar documents
Web Publishing with HTML

Basic HTML. Lecture 14. Robb T. Koether. Hampden-Sydney College. Wed, Feb 20, 2013

Basic HTML. Lecture 14. Robb T. Koether. Hampden-Sydney College. Wed, Feb 20, 2013

Basic HTML Lecture 14

HTML BEGINNING TAGS. HTML Structure <html> <head> <title> </title> </head> <body> Web page content </body> </html>

HTML Tags <A></A> <A HREF=" CNN </A> HREF

Introduction to HTML. SSE 3200 Web-based Services. Michigan Technological University Nilufer Onder

Web Design 101. What is HTML? HTML Tags. Web Browsers. <!DOCTYPE html> <html> <body> <h1>my First Heading</h1> <p>my first paragraph.

Markup Language SGML: Standard Generalized Markup Language. HyperText Markup Language (HTML) extensible Markup Language (XML) TeX LaTeX

INTRODUCTION TO HTML5! HTML5 Page Structure!

Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM Advanced Internet Technology Lab.

HYPERTEXT MARKUP LANGUAGE ( HTML )

CSC 121 Computers and Scientific Thinking

HTML Images - The <img> Tag and the Src Attribute

Introduction to Computer Science (I1100) Internet. Chapter 7

A Brief Introduction to HTML

HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS

Tutorial 2 - HTML basics

HTML. Asst. Prof. Dr. Kanda Runapongsa Saikaew Department of Computer Engineering Khon Kaen University

recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML)

11. HTML5 and Future Web Application

A HTML document has two sections 1) HEAD section and 2) BODY section A HTML file is saved with.html or.htm extension

HTML Basics. Prerequisites: You will need a text editor, such as Notepad and an Internet browser, such as Internet Explorer or Netscape.

HTML Module Web Page Design

5/17/2009. Marking Up with HTML. An HTML Web Page File. Tags for Bold, Italic, and underline. Structuring Documents

Creating Web Pages Using HTML

Introduction to Computers and Their Applications

Web Development & Design Foundations with HTML5 & CSS3 Instructor Materials Chapter 2 Test Bank

Introduction to Computer Science (I1100) Internet. Chapter 7

A Balanced Introduction to Computer Science, 3/E

UNIT II Dynamic HTML and web designing

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

1.264 Lecture 12. HTML Introduction to FrontPage

Motivation (WWW) Markup Languages (defined). 7/15/2012. CISC1600-SummerII2012-Raphael-lec2 1. Agenda

Chapter 4: Marking Up With HTML: A Hypertext tmarkup Language Primer

Selected Sections of Applied Informatics

Creating Web Pages. Getting Started

What is an HTML File? HTML Tags

CSE 3. Marking Up with HTML. Comics Updates Shortcut(s)/Tip(s) of the Day Google Earth/Google Maps ssh Anti-Spyware

I-5 Internet Applications

Working with HTML. must appear at the very beginning of your webpage. starts the first section of your page

Bridges To Computing

Marking Up with HTML. Tags for Bold, Italic, and underline. An HTML Web Page File. Chapter 4: Marking Up With HTML: A. Formatting with Tags:

Web Development & Design Foundations with XHTML. Chapter 2 Key Concepts

Desire2Learn: HTML Basics

Introduction to HTML

Web Development & Design Foundations with HTML5 & CSS3 Instructor Materials Chapter 2 Test Bank

Job Description Options

Basics of Web Design, 3 rd Edition Instructor Materials Chapter 2 Test Bank

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.

1. Please, please, please look at the style sheets job aid that I sent to you some time ago in conjunction with this document.

html: lists, images, tables network basics UNIVERSITY OF MASSACHUSETTS AMHERST CMPSCI 120 Fall 2010 See notes 09/16/10 Go to the validator

HTML (Hypertext Mark-up language) Basic Coding

What You Will Learn Today

ITNP43: HTML Lecture 3

Certified HTML5 Developer VS-1029

Web Engineering (Lecture 01)

Introduction to HTML. Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island

Title: Sep 12 10:58 AM (1 of 38)

Html basics Course Outline

Announcements. 1. Class webpage: Have you been reading the announcements? Lecture slides and coding examples will be posted

By Ryan Stevenson. Guidebook #2 HTML

Web Development and Design Foundations with HTML5 8th Edition

HTML. Hypertext Markup Language. Code used to create web pages

CMPT 165 Unit 2 Markup Part 2

Certified HTML Designer VS-1027

7300 Warden Avenue, Suite 503 Markham, Ontario Canada L3R 9Z6. Phone: Toll Free: Fax:

The Structural Layer (Hypertext Markup Language) Webpage Design

Web browsers. 1. Google Chrome - 62% 2. Mozilla Firefox - 15% 3. Internet Explorer - 10% 4. Safari - 5 % 5. Microsoft Edge - 4% 6.

Intro to html. --- define every element, attribute, and entity along with the rules for their use

RECOMMENDED HTML TAGS

Announcements. 1. Class webpage: Have you been reading the announcements? Lecture slides and coding examples will be posted

HTML OBJECTIVES WHAT IS HTML? BY FAITH BRENNER AN INTRODUCTION

HTML & XHTML Tag Quick Reference

HTTP & Websites. Web Browsers. Web Servers vs. Web sites. World Wide Web. Internet Explorer. Surfing the World Wide Web. Part 4. The World Wide Web

Unit 5 Web Publishing Systems Page 1 of 13 Part 4 HTML Part 4

Computer Applications Final Exam Study Guide

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

c122jan2714.notebook January 27, 2014

HTML CS 4640 Programming Languages for Web Applications

1. The basic building block of an HTML document is called a(n) a. tag. b. element. c. attribute. d. container. Answer: b Page 5

week8 Tommy MacWilliam week8 October 31, 2011

Announcements. Paper due this Wednesday

HTML and CSS: An Introduction

Seminar on Web Design

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1

CSC Web Programming. Introduction to HTML

Web Programming Week 2 Semester Byron Fisher 2018

HTML Hints & Tips. HTML is short for HyperText Markup Language.

Text and Layout. Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11. This presentation 2004, MacAvon Media Productions

Creating A Web Page. Computer Concepts I and II. Sue Norris

Module 2-1-1: Markup Languages & HTML

Web Publishing with HTML

AOS Lab 4 HTML, CSS and Your Webpage

CS 1124 Media computation. Lab 9.3 October 24, 2008 Steve Harrison

BOOTSTRAP TYPOGRAPHY

HTML & CSS. SWE 432, Fall 2017 Design and Implementation of Software for the Web

Creating Web Pages with SeaMonkey Composer

Chapter 4. Introduction to XHTML: Part 1

Hyper Text Markup Language HTML: A Tutorial

Transcription:

HTTP and HTML Comp-206 : Introduction to Software Systems Lecture 22 Alexandre Denault Computer Science McGill University Fall 2006

15 / 55 Mercury

Subversion Directory The URL for the class subversion directory is: /xtra/2006/cs206-svn

Client / Server I want page.html Here is page.html

Request for Comments - RFC RFCs are a series of documents used to innovate on Internet technologies. A central authority assigns them numbers. Once an RFC receives a number, it is never changed. An author can then improve on the technology by publishing a follow up RFC. Thus possibly making the previous RFC obsolete. Internet technologies have evolved through this format. This is one of the reason most of the technologies can interoperate and are not proprietary RFC can be found at http://www.rfc-editor.org/rfc.html

HTTP HTTP is a protocol to transfer HTML pages. It is the culmination of several RFC's. A HTTP client establishes a connection over a predefined port : 80 for normal HTTP 443 for SSL HTTP The client sends back a response code with the requested document, if it exists. 200: OK 401: Unauthorized 403: Forbidden 404: Not Found 500: Internal Server Error

HyperText Markup Language (HTML) HTML is markup language for the creation of web pages. It contains both data and instructions on how to display that data. When HTML was created, it was very loosely defined. That helped it gain popularity. Now, HTML (current version of 4.01) is strictly defined. The 4.01 standards were developed by The World Wide Web Consortium (W3C), an international consortium where Member organizations, a full-time staff, and the public work together to develop Web standards.

HTML by Example <html> <head> <title>title of page</title> </head> <body> This is my first homepage. <b>this text is bold</b> </body> </html>

Tags HTML are collections of tags. Two types of tag exists Those with text in between. <tag>this text is in between tags</tag> Those with only attributes. <tag attribute= value /> Both kinds of tags can have attributes. When working with the first kind of tags, only the opening tag has attributes. <tag attribute= value >text</tag> Although tags can be written in upper or lower case, future standards will require them to be written in lower case. Attributes can be single or double quoted.

Document Tags <html> : Tells you browser that this is an HTML document. <head> : Text between <head> tags is header information. <title> : Text between <title> tags is the title of the document. <body> : Text between <body> tags is the title of the document.

Headers Headings are defined with the <h1> to <h6> tags. <h1> defines the largest heading. <h6> defines the smallest heading. <h1>this is the largest heading</h1> <h2>this is a larger heading</h2> <h3>this is a large heading</h3> <h4>this is a medium heading</h4> <h5>this is a small heading</h5> <h6>this is the smallest heading</h6>

Paragraphs and Line Breaks Paragraphs are defined with the <p> tag. The <br> tag is used when you want to end a line, but don't want to start a new paragraph. The <br> tag forces a line break wherever you place it. <p>this <br />is a para<br />graph with line breaks</p> <p>this is a paragraph without line breaks </p>

The Big, the Bold and the Emphasized <b> defines bold text <b>this text will be bold</b> <big> defines big text <big>this text will be BIG</big> <em> defines emphasized text <em>this text will be emphasized</em> <i> defines italic text <i>this text will be italic</i> <small> defines small text <small>this text will be small</i> <strong> defines strong text <strong>this text will be bold</strong>

Quotes and citations <blockquote> defines a long quotation I also used it extensively for indentation. <blockquote>this code will be indented</blockquote> <q> defines a short quotation <q>this code will be italic</q> <cite> defines a citation <cite>i have no idea what this looks like</cite>

Links to other pages HTML uses the <a> (anchor) tag to create a link to another document. An anchor can point to any resource on the Web: an HTML page, an image, a sound file, a movie, etc. <a href="url">text to be displayed</a> With the target attribute, you can define where the linked document will be opened. <a href="http://www.cs.mcgill.ca/~cs206/" target="_blank">visit the course webpage.</a>

Jumping to a specific location When used with the <a> tag, the name attribute is used to create a named anchor. <a name="label">text to be displayed</a> You should notice that a named anchor are invisible To link directly to the "label" section, add a # sign and the name of the anchor to the end of a URL. <a href="http://www.cs.mcgill.ca/~cs206/page.html#label">visit the course webpage.</a>

Images Images can be inserted using the <img> tag. <img src="bob.png"> The display of images can modified using variable attributes. width= and height= : indicates the width and height of an image Allows you to scale an image (don't recommend it) Allows a browser to draw the page faster border= : allows you to draw a border around an image I usually use border=0 to remove borders alt= : indicates text to display if image cannot be loaded Also used by browsers for the disabled

Frames Frames are used to share the screen between two pages. Nobody uses frames anymore, so I'm not teaching them :-)

Tables Tables are defined using a combination of <table>, <tr>, <th> and <td> tags. <table> defines the table <tr> defines a row <td> defines a column You can then use use attributes to change the properties of the different component. width= changes the width of a column (td, th) border= change the width of the border around table (table) cellpadding= determines padding space in each cell (table) cellspacing= determines spacing between each cell (table)

Table Example <table border="1"> <tr> <th>heading</th> <th>another Heading</th> </tr> <tr> <td>row 1, cell 1</td> <td>row 1, cell 2</td> </tr> <tr> <td>row 2, cell 1</td> <td>row 2, cell 2</td> </tr> </table>

Lists You can use the <ul> or <ol> tags to create lists. <ul> creates unnumbered lists (bullets). <ol> creates numbered lists (numbers). Each list item is delimited by a <li> tag. <ul> <li>studying</li> <li>homework</li> </ul>

Character Entities Some characters have a special meaning in HTML like the less than sign (<) that defines the start of an HTML tag. If we want the browser to actually display these characters we must insert character entities in the HTML source. A character entity has three parts: an ampersand (&) an entity name or a # and an entity number a semicolon (;)

Character Entities Table Result Result Entity Name Entity Number non-breaking space < less than < < > greater than > > & ampersand & & quotation mark &quote; " ' apostrophe &apos; (not IE) &#39; copyright registered trademark division

Comments The comment tag is used to insert a comment in the HTML source code. A comment will be ignored by the browser. You can use comments to explain your code, which can help you when you edit the source code at a later date. <!-- This is a comment -->

Hosting using your Socs account In your Socs account, create a directory name public_html. Chmod this directory rwxr-xr-x (755). Put your html files in that directory. Chmod them rwxr--r-- (744). You can view your files by pointing your browser to http://www.cs.mcgill.ca/~username/ To allow Apache to read your files, all directories and files but have the proper permissions.