Create web pages in HTML with a text editor, following the rules of XHTML syntax and using appropriate HTML tags Create a web page that includes

Similar documents
INTRODUCTION TO HTML5! HTML5 Page Structure!

Tutorial 1 Getting Started with HTML5. HTML, CSS, and Dynamic HTML 5 TH EDITION

c122jan2714.notebook January 27, 2014

CHAPTER 1: GETTING STARTED WITH HTML CREATED BY L. ASMA RIKLI (ADAPTED FROM HTML, CSS, AND DYNAMIC HTML BY CAREY)

Background of HTML and the Internet

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

c122sep814.notebook September 08, 2014 All assignments should be sent to Backup please send a cc to this address

It is possible to create webpages without knowing anything about the HTML source behind the page.

MODULE 2 HTML 5 FUNDAMENTALS. HyperText. > Douglas Engelbart ( )

Review of HTML. Chapter Pearson. Fundamentals of Web Development. Randy Connolly and Ricardo Hoar

Revision for Grade 7 ASP in Unit :1&2 Design & Technology Subject

Web Design and Application Development

GRAPHIC WEB DESIGNER PROGRAM

HTML. HTML Evolution

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

MPT Web Design. Week 1: Introduction to HTML and Web Design

Hypertext Markup Language, or HTML, is a markup

Creating and Building Websites

What is XHTML? XHTML is the language used to create and organize a web page:

Full file at New Perspectives on HTML and CSS 6 th Edition Instructor s Manual 1 of 13. HTML and CSS

Web Site Design and Development. CS 0134 Fall 2018 Tues and Thurs 1:00 2:15PM

HTML: Introduction CISC 282. September 11, What is HTML?

Beginning Web Site Design

Web Programming and Design. MPT Senior Cycle Tutor: Tamara Week 1

HTML/CSS Essentials. Day Three Ed Crowley

is Introduction to HTML

Reading How the Web Works

Web Publishing Basics I

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

Data Visualization (CIS/DSC 468)

UNIT -II. Language-History and Versions Introduction JavaScript in Perspective-

INTRODUCTION TO WEB USING HTML What is HTML?

Document Object Model. Overview

HTML5 MOCK TEST HTML5 MOCK TEST I

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

This document provides a concise, introductory lesson in HTML formatting.

Introduction to Web Development

HTML CS 4640 Programming Languages for Web Applications

introduction to XHTML

History of the Internet. The Internet - A Huge Virtual Network. Global Information Infrastructure. Client Server Network Connectivity

Full file at HTML 5 and CSS 3 - Illustrated Complete

Developing a Basic Web Page

Semantic Web Lecture Part 1. Prof. Do van Thanh

Introduction to Web Technologies

More about HTML. Digging in a little deeper

HTML+ CSS PRINCIPLES. Getting started with web design the right way

Announcements. Paper due this Wednesday

Web Page Creation Part I. CS27101 Introduction to Web Interface Design Prof. Angela Guercio

Chapter 2:- Introduction to XHTML. Compiled By:- Sanjay Patel Assistant Professor, SVBIT.

A network is a group of two or more computers that are connected to share resources and information.

HTML5 & CSS 8 th Edition. Chapter 2 Building a Webpage Template with HTML5

Introduction to HTML

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

Objectives. Introduction to HTML. Objectives. Objectives

Course Overview. Week 1

COMS 359: Interactive Media

What is CSS? NAME: INSERT OPENING GRAPHIC HERE:

Tutorial 2 - HTML basics

1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014

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

COMP519 Web Programming Lecture 3: HTML (HTLM5 Elements: Part 1) Handouts

The internet is a worldwide collection of networks that link millions of computers. These links allow the computers to share and send data.

Navigation. Websites need a formalized system of links to allow users to navigate the site

Programmazione Web a.a. 2017/2018 HTML5

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

HTML: The Basics & Block Elements

HTML HTML/XHTML HTML / XHTML HTML HTML: XHTML: (extensible HTML) Loose syntax Few syntactic rules: not enforced by HTML processors.

HTML is a mark-up language, in that it specifies the roles the different parts of the document are to play.

COMSC-030 Web Site Development- Part 1. Part-Time Instructor: Joenil Mistal

Comm 244 Week 3. Navigation. Navigation. Websites need a formalized system of links to allow users to navigate the site

Bridges To Computing

Web Standards Mastering HTML5, CSS3, and XML

ATSC 212 html Day 1 Web Authoring

BASIC HTML LAB 4. Vocabulary. Discussion and Procedure

Web Design and Application Development

Chapter 2 Creating and Editing a Web Page

Year 8 Computing Science End of Term 3 Revision Guide

MARKUP LANGUAGES. A brief history of Markup languages

CREATING A WEBSITE USING CSS. Mrs. Procopio CTEC6 MYP1

ATSC Week 2 Web Authoring

Introduction, Notepad++, File Structure, 9 Tags, Hyperlinks 1

Chapter 10: Understanding the Standards

HTML and CSS COURSE SYLLABUS

MRK260. Week Two. Graphic and Web Design

EXPLORE MODERN RESPONSIVE WEB DESIGN TECHNIQUES

Beginning HTML. The Nuts and Bolts of building Web pages.

HTML Markup for Accessibility You Never Knew About

Comp 336/436 - Markup Languages. Fall Semester Week 4. Dr Nick Hayward

Introduction to XML. Asst. Prof. Dr. Kanda Runapongsa Saikaew Dept. of Computer Engineering Khon Kaen University

HTML: The Basics & Block Elements

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

Azon Master Class. By Ryan Stevenson Guidebook #7 Site Construction 2/3

Tutorial 1: HTML Tutorial (Windows Version) HTML (Hypertext Markup Language) Basics Objectives

Web Design and HTML. Web Page vs Web Site. Navigation. Links. A web page is a single page viewable using web browser. A web site is a set of web pages

Interview Question & Answers

By Ryan Stevenson. Guidebook #2 HTML

Ministry of Higher Education and Scientific Research

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

Understanding structure Learning about markup Tags and elements. Structure COPYRIGHTED MATERIAL

Introduction to web development and HTML MGMT 230 LAB

Transcription:

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB By Hassan S. Shavarani UNIT2: MARKUP AND HTML 1

IN THIS UNIT YOU WILL LEARN THE FOLLOWING Create web pages in HTML with a text editor, following the rules of XHTML syntax and using appropriate HTML tags Create a web page that includes links and images List some common HTML tags Use relative URLs to refer to resources on a website 2

TOPICS 1. Text Files and Markup 2. HTML and Tags 3. Attributes and More 4. Semantic Markup 5. Validating HTML 6. URLs: Links and Images 7. Character References 3

MARKUP LANGUAGES A markup language is a way to describe a document for a computer using only plain text LaTeX is a markup language often used for scientific and mathematical documents This is a sentence with an \emph{emphasized} word, and a formula: \(x^2 - x + 1\). * image from http://www.cs.sfu.ca/coursecentral/165/common/study-guide/figures/latex.png 4

SAME EXAMPLE IN HTML <p>this is a sentence with an <em>emphasized</em> word, and a formula: x<sup>2</sup> - x + 1.</p> This is a sentence with an emphasized word, and a formula: x 2 - x + 1. 5

All of HTML, CSS, and JavaScript files are just Text Files with code in them 6

TEXT FILES AND TEXT EDITORS A Text File is a generic term for a file that contains only characters they could be for storing data (like CSV files for spreadsheet data) or could be documents (like LaTeX or HTML files) or could be programs (in JavaScript, Python, Java, C, ) In order to work with text files, you will need a program called a text editor 7

HTML files are edited with a text editor: just make sure you save the file with the extension.html (i.e. name it something like mypage.html) 8

THE HISTORY OF HTML [*] HTML 1.0 the first release of HTML to the world not many people were involved in website creation at the time, and the language was very limiting what it could to was to get some simple text onto the web * content from http://www.yourhtmlsource.com/starthere/historyofhtml.html 9

THE HISTORY OF HTML [*] HTML 2.0 included everything from the original 1.0 specifications but added a few new features to the mix it was the standard for website design until Jan. 1997 defined many core HTML features for the first time * content from http://www.yourhtmlsource.com/starthere/historyofhtml.html 10

THE HISTORY OF HTML [*] HTML 3.0 began with the introduction of new proprietary tags and attributes into Netscape Navigator browser other browsers began to act differently on the same set of tags Was abandoned due to the slow speed of browser companies to implement the full set of new extensions * content from http://www.yourhtmlsource.com/starthere/historyofhtml.html 11

THE HISTORY OF HTML HTML 3.2 world Wide Web Consortium (abbreviated to the W3C) was founded in 1994 W3C introduced its first web developement standard as WILBUR or HTML 3.2 most of the extensions tags that had been introduced by Netscape did not make it into these new standards it soon caught on and became the official standard in Jan. 1997, and today practically all browsers support it fully * content from http://www.yourhtmlsource.com/starthere/historyofhtml.html

12

THE HISTORY OF HTML HTML 4.0 most of its new functionality set came from the illfated HTML 3.0 specs and old tags the focus was on internationalisation, and support for HTML s new supporting presentational language, cascading stylesheets was recommended by the W3C in Dec. 1997 and became the official standard in Apr. 1998 * content from http://www.yourhtmlsource.com/starthere/historyofhtml.html 13

THE HISTORY OF HTML XHTML 1.0 W3C recommended it as the web developement standard in Jan. 2000 it inherits from both XML and HTML there were not many new or deprecated tags and attributes in XHTML it is mainly just a new set of coding rules you have to close every tag you open! * content from http://www.yourhtmlsource.com/starthere/historyofhtml.html 14

THE HISTORY OF HTML HTML 5.0 W3C was trying to introduce XHTML 2.0 Web Hypertext Application Technology Working Group (WHATWG) developed a new specification set over HTML 4.0 W3C disconiued XHTML 2.0 and announced HTML 5.0 as the new standard on Sep. 2014 * content from http://www.yourhtmlsource.com/starthere/historyofhtml.html 15

Now let's see what an HTML document looks like 16

HTML PAGE STRUCTURE * image from https://www.w3schools.com/html/html_intro.asp 17

HTML TAGS the things wrapped in triangular braces (the < > characters) are called tags There are both opening tags and closing tags (or starting tags and ending tags) which come in pairs to enclose pieces of content 18

AN HTML PAGE EXAMPLE 19

BASIC TAGS <!DOCTYPE html> This isn't really a tag or an element, it is the document type declaration (or doctype) for the page. This doctype indicates that the page is HTML5. The doctype doesn't have a closing version: it's the first thing in an.html file and stands alone. <html> </html> This element contains entire HTML page. It should be the first tag to start (after the doctype) and last to close. <head> </head> This element contains information about the page (as opposed to content of the page). For now, it will hold only the <title> and <meta> tags. <title> </title> This element gives the main title for the page. It gives the main title for the document, which is used in the title bar and for bookmarks to the page. <meta charset="utf-8" /> This tag tells the browser about the character encoding for this document. The details aren't important now, but it's a property of how the text file is encoded when it is saved. This <meta> tag should be in every HTML file like this. You may have also noticed that it has no closing tag, and that there's some extra stuff in the tag. We will get to that very soon <body> </body> Finally, this element contains the actual content of the page: the part that is displayed in the main browser window. Most of the new tags we learn will go somewhere in the <body>. 20

AN HTML PAGE EXAMPLE (EXTENDED) 21

MORE TAGS <h1> This tag is used for a level 1 heading. That is, it's the most important heading on the page. Typically, every page should start with an <h1> that has the same contents as the <title>: the main title for the page. <em> This tag indicates emphasized text: some important word or phrase in the sentence. An <em> must go inside a paragraph (or heading, or other block-level element as we'll see later). <ul> This tag describes an unordered list. That is, it contains a list of things where the order isn't important. The <ul> element (and the ordered list version <ol>, or menu list <menu>) can't contain text the way a <p> can: it can only contain <li> elements. <li> These are the only thing that can go in a <ul> or <ol> element (and can only be inside one of those elements). They denote list items. 22

WHITESPACE the line breaks, spaces, and other formatting in the HTML code have no effect of the display in the browser if you press enter a few times to insert a blank link in the HTML, it will not change the appearance in the browser you must use tags (and later we'll see CSS styles) to change the way things look 23

Any Questions? 24