Computer Science 101 HTML. World Wide Web Invented by Tim Berners-Lee at CERN, the European Laboratory for Particle Physics in Geneva, Switzerland (roughly.

Slides:



Advertisements
Similar presentations
HTML popo.
Advertisements

HyperText Markup Language (HTML). Introduction to HTML Hyper Text Markup Language HTML Example The structure of an HTML document Agenda.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
HTML. The World Wide Web Protocols Addresses HTML.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
HTML Minute University Richard Fisher 10/1/2001 HTML FSA Training2 HTML Overview  HTML  HyperText Markup Language.
HTML Computing Concepts HTML - An Introduction 1.
Computer Science 1611 Internet & Web Creating Webpages Hypertext and the HTML Markup Language.
Introduction to HTML 2004 CIS101. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
Creating a Web Page HyperText Markup Language. HTML Documents  Created using any text editor  Notepad  Vi, Pico, or Emacs  If using word-processor,
More HTML Chapter 4. 2 Nesting Tags How do you write the following in HTML? The wrong way: This is really, REALLY fun ! Tags must be correctly nested.
Glencoe Digital Communication Tools Create a Web Page with HTML Chapter Contents Lesson 4.1Lesson 4.1 Get Started with HTML (85) Lesson 4.2Lesson 4.2 Format.
HTML BASIC
1 Introduction to HTML. 2  W W W – World Wide Web.  HTML – HyperText Markup Language – The Language  of Web Pages on the World Wide Web. HTML is a.
WEB DESIGN 1 THEORY : 30 PRACTICE : 60 Lecturer : Phạm Sĩ Quan Phone : Blog:
Computer Sciences Department
Basics of HTML Shashanka Rao. Learning Objectives 1. HTML Overview 2. Head, Body, Title and Meta Elements 3.Heading, Paragraph Elements and Special Characters.
CS105 Introduction to Computer Concepts HTML
Presenting Information on WWW using HTML. Presenting Information on the Web with HTML How Web sites are organized and implemented A brief introduction.
What is HTML ? HyperText Markup Language. The authoring language of the Web is currently HTML, which stands for HyperText Markup Language. Future versions.
Introduction to HTML. Topics HTML –What is HTML –Parts of an HTML Document –HTML Tags.
Computer Science 101 Introduction to Web Pages. Origins of the Web Vannevar Bush (Memex, 1945) Ted Nelson (Xanadu, 1968) Doug Englebart and Alan Kay (
Chapter 16 The World Wide Web Chapter Goals ( ) Compare and contrast the Internet and the World Wide Web Describe general Web processing.
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.
Understanding HTML Code
 HTML stands for Hyper Text Mark-up Language. The coding language used to create documents for the World Wide Web  HTML is composed of tags. HTML tags.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Formatting Text and Lists Essentials for.
Getting Started with HTML Please use speaker notes for additional information!
 Internet network of connected computer › No company owns the internet › Purpose is to share information  World Wide Web (Web) one of the ways information.
Introduction to HTML 1 Basharat Mahmood, Department of Computer Science, CIIT, Islamabad, Pakistan.
G053 Lecture 12 Introduction To HTML Mr C Johnston ICT Teacher
Computer Information Technology – Section 3-4. HTML – The Language of the Internet Objectives: The Student will: 1. Look at HTML 2. Understand the basic.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Write basic.
HTML BASICS Web Design I. Web Design  WWW created in the late 1980’s  Used in academics for the next 5 years  Mosaic (1994) allowed both pictures &
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
1 John Magee 9 November 2012 CS120 Lecture 17: The World Wide Web and HTML Web Publishing.
College of Micronesia- FSM Pohnpei State Campus GEORGE S. MANGONON, MBA Chair, Math/Sci Division September 15-25, 2008.
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
HTML HTML: Hypertext Markup Language. The basic language of the World Wide Web. Developed around 1991 at the CERN lab on the French-Swiss border by Tim.
Introduction to HTML. Today’s Discussion What is HTML ? What is HTML ? What is Web Page ? What is Web Page ? Web Server Web Server Web Browser Web Browser.
College of Micronesia- FSM Pohnpei State Campus GEORGE S. MANGONON, MBA Chair, Math/Sci Division September 15-25, 2008.
HTML BTEC National in Computing Section5. Create Information “HTML: defining HTML, discussing HTML uses and demonstrating HTML basics, HTML structure…..
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Introduction to Web & HTML
HTML – The Basics COE 201- Computer Proficiency. The Internet The World Wide Web ▫Also known as the Web ▫Created in 1989  European Laboratory for Particle.
HTML Links HTML uses a hyperlink to another document on the Web.
CompSci Today’s topics Networks & the Internet Basic HTML ä The basis for web pages ä “Almost” programming Upcoming ä Connections ä Algorithms.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
G046 Lecture 03 Introduction To HTML Mr C Johnston ICT Teacher
Writing Web Pages in HTML HTML.1 The Web  Lots of computers connected together in a collection of networks  HyperText Markup Language (HTML) is a common.
HTML – The Basics Rebecca Shillingburg
CompSci 1 Lecture 2 HTML Webpages. Today’s Topics Basic HTML The basis for web pages “Almost” programming Upcoming Programming Java Reading Great Ideas.
1 HTML. 2 Full forms WWW – world Wide Web HTTP – Hyper Text Transfer Protocol HTML – Hyper Text Markup Language.
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 HTML Dave Edsall IAGenWeb County Coordinator’s Conference June 30, 2007.
Basic Web Publishing M. Scott Gartner 7/15/98.
Introduction to HTML (Web Design) IT Fundamentals.
HTML Basics.
Lecturer (Dept. of Computer Science)
CSCI-235 Micro-Computers in Science
Uppingham Community College
Today’s topics Networks & the Internet Basic HTML
Introduction to XHTML.
COMPUTING FUNDAMENTALS
Introduction to Web & HTML
Computers and Scientific Thinking David Reed, Creighton University
Web Design and Development
Chapter 16 The World Wide Web.
HTML Basics Mr. Fazzalari.
Presentation transcript:

Computer Science 101 HTML

World Wide Web Invented by Tim Berners-Lee at CERN, the European Laboratory for Particle Physics in Geneva, Switzerland (roughly 1989) Invented by Tim Berners-Lee at CERN, the European Laboratory for Particle Physics in Geneva, Switzerland (roughly 1989) Wanted researchers to be able to “link” or cross-reference each others research papers Wanted researchers to be able to “link” or cross-reference each others research papers By mid 1980s we had DNS – domain name service to map domain names to IP address By mid 1980s we had DNS – domain name service to map domain names to IP address

WWW (cont.) Berners-Lee developed a simple protocol, HTTP – HyperText Transfer Protocol for exchanging information via hypertext links Berners-Lee developed a simple protocol, HTTP – HyperText Transfer Protocol for exchanging information via hypertext links The documents themselves were to be marked up using HTML – HyperText Markup Language The documents themselves were to be marked up using HTML – HyperText Markup Language HTML based on SGML - Standard Generalized Mark-up Language which was widely used in publishing industry HTML based on SGML - Standard Generalized Mark-up Language which was widely used in publishing industry

WWW (cont.) Early 1990s World Wide Web ramped up Early 1990s World Wide Web ramped up 1993 – NCSA - National Center for Supercomputers (University of Illinois) released Mosaic browser 1993 – NCSA - National Center for Supercomputers (University of Illinois) released Mosaic browser 1994 – Netscape was formed 1994 – Netscape was formed

Important Web Programs Web Server: This is a program that manages web sites on server computers. The web server accepts requests from other programs (clients) asking for pages from the web sites. Web Server: This is a program that manages web sites on server computers. The web server accepts requests from other programs (clients) asking for pages from the web sites. Browsers: Programs like Internet Explorer and Firefox that act as clients for web servers requesting pages for the user and displaying the returned pages. Browsers: Programs like Internet Explorer and Firefox that act as clients for web servers requesting pages for the user and displaying the returned pages.

HTML HyperText Markup Language – HTML is used to mark up a document to tell browser how it should be displayed, nothing about content HyperText Markup Language – HTML is used to mark up a document to tell browser how it should be displayed, nothing about content Allows us to markup up text with special tags that inform the web browsers how the content should be displayed Allows us to markup up text with special tags that inform the web browsers how the content should be displayed For the most part HTML tags are placed in “angle brackets” like and occur in pairs like Here is some text For the most part HTML tags are placed in “angle brackets” like and occur in pairs like Here is some text

Some HTML tags html – this tag together with its end tag enclose the entire document html – this tag together with its end tag enclose the entire document head – there are two sections to the document, the head and the body. For the most part the head section contains the title of the document head – there are two sections to the document, the head and the body. For the most part the head section contains the title of the document title – encloses the page title shown in title bar at the top title – encloses the page title shown in title bar at the top body – enclose the body of the document, essentially all of the displayed content body – enclose the body of the document, essentially all of the displayed content

A Minimal HTML document Title of your page All the good stuff goes here

More tags h1 – There are six levels of headings in HTML, numbered h1 through h6 with h1 being the largest and boldest h1 – There are six levels of headings in HTML, numbered h1 through h6 with h1 being the largest and boldest p – Marks the beginning of a new paragraph. p – Marks the beginning of a new paragraph. ul – enclose an unordered list – bullet list ul – enclose an unordered list – bullet list ol – enclose an ordered or numbered list ol – enclose an ordered or numbered list li – enclose an item in a list li – enclose an item in a list

Unordered Lists

Ordered Lists

Example HTML page

And in the browser

More tags br – Causes a line break to occur. Does not use an end tag (Recommend: br – Causes a line break to occur. Does not use an end tag (Recommend: hr – Causes a horizontal line to be drawn across the page. No end tag. (Recommend: ) hr – Causes a horizontal line to be drawn across the page. No end tag. (Recommend: ) b – enclosed text is bold b – enclosed text is bold i – enclosed text is in italics i – enclosed text is in italics

The anchor tag The anchor tags, and, are used with links. The anchor tags, and, are used with links. –To specify a link from a location in your page to a location in current page or another page on the web. –To specify a location in your page that can be linked to from another location in the current page or from another page.

Making links – HREF Attribute General form is link-phrase General form is link-phrase – URL (Uniform Resource Locator) is the web address to link to –link-phrase is the phrase to appear on your page for the user to click in order to execute the link.

Linking to other places: HREF attribute Suppose we want to have a link on our page to link to W&L’s home page. The following markup will achieve this: My University Suppose we want to have a link on our page to link to W&L’s home page. The following markup will achieve this: My University

Locations that can be linked to: Name attribute In order to link to specific locations within a page, these locations must first be given names that are recognized by HTML. In order to link to specific locations within a page, these locations must first be given names that are recognized by HTML. To do this we use the anchor tag again, but now using the NAME attribute rather than the HREF attribute. To do this we use the anchor tag again, but now using the NAME attribute rather than the HREF attribute.

Linking to locations in same page General form is Location-title where location-name is the name that will be used in anchors that link to this location, and Location-title will appear at the position where the Name anchor is placed. General form is Location-title where location-name is the name that will be used in anchors that link to this location, and Location-title will appear at the position where the Name anchor is placed.

Linking to named locations in same page Example: Chapter 2 – Tree Algorithms Example: Chapter 2 – Tree Algorithms Suppose we put the above tag at the beginning of the Chapter 2 section of our page. Then to link from another location to Chapter 2, we could use any of the following: Chapter 2 Tree Algorithms Chapter 2 – Tree Algorithms Suppose we put the above tag at the beginning of the Chapter 2 section of our page. Then to link from another location to Chapter 2, we could use any of the following: Chapter 2 Tree Algorithms Chapter 2 – Tree Algorithms Here the # indicates that we are linking to an anchor location within the page. Here the # indicates that we are linking to an anchor location within the page.

Linking to named locations in another page Example: Chapter 2 – Tree Algorithms Example: Chapter 2 – Tree Algorithms Suppose the named location above occurs in “MyReport.html” and that we would like to place a link to that location in “MyWork.html”. At the place where we want the link, we could have See Chapter 2 assuming these files are in same location. Otherwise, use the full web address to MyWork.html. Suppose the named location above occurs in “MyReport.html” and that we would like to place a link to that location in “MyWork.html”. At the place where we want the link, we could have See Chapter 2 assuming these files are in same location. Otherwise, use the full web address to MyWork.html.

Images Here is an example for having an image in the file Here is an example for having an image in the file

Background Color We can add a background color to our web page by adding a bgcolor attribute to the Body tag: We can add a background color to our web page by adding a bgcolor attribute to the Body tag: The value can be either a “known” color or a color specified with the 6 hex digit system. The value can be either a “known” color or a color specified with the 6 hex digit system.

Background Color (cont.) There is a long list of “known” colors, but only 16 that are guaranteed to validate with all browsers: aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow There is a long list of “known” colors, but only 16 that are guaranteed to validate with all browsers: aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow To specify a background color with hex digits use the form for example To specify a background color with hex digits use the form for example