Another example using headings Suppose we want to write a web document which has two main sections Suppose the first section has two subsections And suppose.

Slides:



Advertisements
Similar presentations
Learning HTML. > Title of page This is my first homepage. Tells Browser This is an HTML page Basic Tags Tells Browser End of HTML page Header information.
Advertisements

Web Development & Design Foundations with XHTML
HTML: HyperText Markup Language Hello World Welcome to the world!
Chapter 2 HTML Basics Key Concepts
A really fairly simple guide to: mobile browser-based application development (part 1) Chris Greenhalgh G54UBI / Chris Greenhalgh
The Comment tag Many programming languages allow us to write comments in a program Comments are ignored by the computer when processing the program but.
Beginning Web Site Creation: Dreamweaver CS4 Noreen Brown XHTML CODING -- TAGS.
Another example using headings Suppose we want to write a web document which has two main sections Suppose the first section has two subsections And suppose.
Introduction to HTML CPS470 Software Engineering Fall 1998.
Made by: Dan Ye. Introduction Basic Last Page ☆ HTML stands for Hyper Text Markup Language; ☆ HTML is not a programming language, it is a markup language;
Computer Science 1611 Internet & Web Creating Webpages Hypertext and the HTML Markup Language.
CM143 - Web Week 2 Basic HTML. Links and Image Tags.
HTML Primer Basics of HTML for those who haven’t used it before.
Comment tags (contd.) A comment tag is of the form A comment can appear anywhere in a html specification They are frequently used to tell people who wrote.
Basics of HTML Shashanka Rao. Learning Objectives 1. HTML Overview 2. Head, Body, Title and Meta Elements 3.Heading, Paragraph Elements and Special Characters.
Computer Science 101 HTML. World Wide Web Invented by Tim Berners-Lee at CERN, the European Laboratory for Particle Physics in Geneva, Switzerland (roughly.
HTML Links and Anchors.
HTML Overview Part 2 – Paragraphs, Headings, and Lines 1.
Define html document byusing Example : Title of the document The content of the document......
Today’s Topic Language of web page - HTML (Hypertext Markup Language)
Links in HTML. Hyperlinks or links Millions of linked web pages make up the World Wide Web Used to connect a web page to another web page on the same.
HTML (HyperText Markup Language)
ACM 511 HTML Week -1 ACM 511 Course Notes. Books ACM 511 Course Notes.
1 Essential HTML coding By Fadi Safieddine (Week 2)
Informatics Computer School CS114 Web Publishing HTML Lesson 2.
Agenda Links External and Internet Links Anchor Tag Text Hyperlinks Image Hyperlinks Images Image Attributes: src, alt, width, height, align, border.
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
HTML Overview Part 4 – Tables 1. HTML Tables  Tables are defined with the tag pair.  A table is divided into rows with tag pairs. o tr stands for "table.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
All Web pages are written with some form of HTML (HyperText Markup Language). HTML documents are saved as Text Only files so virtually any computer can.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
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.
INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,
1 Labels and Tags October 14, Grammar A set of components and rules that define a method/means of communication among objects. Components are.
Unit 3 Day 6 FOCS – Web Design. Journal Unit #3 Entry #4 Write the source code that would make the following display on a rendered page: Shopping List.
HTML: Hyptertext Markup Language Doman’s Sections.
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
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.
HTML.
HTML Basic. What is HTML HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language, it.
Advanced DOM Builds on last presentation on DOM Allows you to dynamically create elements and position them on a page DOM methods/properties are W3C standard.
Introduction to HTML Year 8. What is HTML O Hyper Text Mark-up Language O The language that all the elements of a web page are written in. O It describes.
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.
HTML Comprehensive Concepts and Techniques Second Edition Project 2 Creating a Web Site with Links.
This shows CIS17 and the first day introduction..
CHAPTER TWO HTML TAGS. 1.Basic HTML Tags 1.1 HTML: Hypertext Markup Language  HTML stands for Hypertext Markup Language.  It is the markup language.
HTML Basic Structure. Page Title My First Heading My first paragraph.
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
Basics of Web Design 1 Copyright © 2016 Pearson Education, Inc., Hoboken NJ.
Click on CIS120/17 to go to website for course. The week of will tell you what is planned for the week and what has been assigned.
Comment tags (contd.) A comment tag is of the form A comment can appear anywhere in a HTML specification They are frequently used to tell people who wrote.
HTML Tutorial. What is HTML HTML is a markup language for describing web documents (web pages) HTML documents are described by HTML tags Each HTML tag.
Chapter 4 HTML Tags. HTML is written in something called tags. Tags come in pairs, an opening one and a closing one. The first pair of tags we'll write.
LISTS AND LINKS Explained By: Sarbjit Kaur. Lecturer, Department of Computer Application, PGG.C.G., Sector: 42, Chandigarh.
What you can see in the picture?
HTML basics
Mansoor Ahmed Bughio.
Uppingham Community College
Intro to CSS CS 1150 Fall 2016.
A guide to HTML.
WEBSITE DESIGN Chp 1
Intro to CSS CS 1150 Spring 2017.
Basic HTML and Embed Codes
Introduction to HTML5.
Internet Technologies I - Lect.01 - Waleed Ibrahim Osman
Pertemuan 1b
Lesson 4: Hyperlinks.
Pertemuan 1 Desain web Pertemuan 1
HyperText Markup Language
Presentation transcript:

Another example using headings Suppose we want to write a web document which has two main sections Suppose the first section has two subsections And suppose the second section has three subsections Thus, there exists Section 1, Section 1.1, Section 1.2, Section 2, Section 2.1, Section 2.2, Section 2.3

We represent this structure using headings Section 1 Section 1.1 Section 1.2 Section 2 Section 2.1 Section 2.2 Section 2.3

Of course, there would be text This manual is divided into two main sections. Section 1 This section has two sub-sections. Section 1.1

Lists A very common kind of structure to have in a document is a list A list is specified in HTML by enclosing it between a pair of tags There are different kinds of lists, including: –unordered lists –ordered lists

Example lists An ordered list: 1. January 2. February 3. March An unordered list: wine bread cheese

Tagging lists Ordered lists are contained between the and tags Unordered lists are contained between the and tags In each type of list, a list item is tagged by putting it between an and tag

Janvier Fevrier Mars

Wine Bread Cheese

Using Hyperlinks to Structure Documents: Anchor Tags

Traditional tree-like structure:

Trees can be laid out in a linear fashion: Book –Chapter 1 Section 1 –Section 1.1 –Section 1.2 Section 2 –Chapter 2 Section 2

But some information structures are more complicated:

That is, some documents are not trees, but are graphs: Each node in the last slide is a page describing some entity, either a city or a person In the description of each person, there is a link to the description of his home-town In the description of each city, there is a link to the description of the person who is its mayor

HTML allows us to specify documents which are graphs: The tool which HTML provides for building graph-like documents is called an anchor

Anchors

An anchor appears in one document

Anchors An anchor appears in one document But it usually points to another document

Anchors (contd.): An anchor is enclosed within a pair of tags: –the start anchor tag –the end anchor tag

Anchor Tags Until now, we have seen only simple tags The start anchor tag,, is a structured tag –that is, it has sub-parts The sub-parts of a tag are called attributes The start anchor tag,, can have several attributes –for now, we will look at only one attribute, the HREF attribute

Anchor tags (contd.) A start anchor tag with a HREF attribute looks like this Some examples:

Cs 3314 got here on 10 oct 2005

Anchors (contd.) An anchor can point from one web page to another web page The HREF attribute in the start tag of the anchor says where the anchor is pointing We still have to specify what the anchor looks like in the document where it appears This is done by specifying the content that lies between the and tags

The City of Cork Cork Cork is the second-largest city in Ireland. It's mayor is Fred O'Connor. It's population is...

The City of Cork Cork Cork is the second-largest city in Ireland. It's mayor is Fred O'Connor. It's population is...

Anchors can be placed anywhere normal document content can appear: They can appear in the middle of paragraphs of text, as we have seen They can appear as items in list, (as seen in the next slide)

Politics in Ireland Presidents The presidents of Ireland are: Douglas Hyde Sean T. O'Kelly Eamon De Valera...

Anchors can be placed anywhere normal document content can appear: They can appear in the middle of paragraphs of text, as we have seen They can appear as items in list They can even appear in headings (as seen in the next slide)

Politics in Ireland Presidents Douglas Hyde He founded the Gaelic League... blah blah... Eamon de Valera He took part in blah blah...

Organizing groups of anchors: Frequently, all the anchors in a document have HREFs that are very similar: Douglas Hyde Sean T. O'Kelly Eamon De Valera It would be good if we could avoid having to repeat the common parts of these HREFs HTML provides the tag to meet this need

Politics in Ireland Presidents The presidents of Ireland are: Douglas Hyde Sean T. O'Kelly...

The tag: This appears within the element of a HTML specification: some-title The href in a tag is prepended to whatever hrefs appear in tags

The tag: Thus... Douglas Hyde Sean T. O'Kelly is equivalent to Douglas Hyde Sean T. O'Kelly