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
Introduction to HTML & CSS
Advertisements

Web Development & Design Foundations with XHTML
Cascading Style Sheets (CSS). Cascading Style Sheets With the explosive growth of the World Wide Web, designers and programmers quickly explored and reached.
HTML: HyperText Markup Language Hello World Welcome to the world!
WeB application development
Website Design.
Teppo Räisänen LIIKE/OAMK 2010
Chapter 2 HTML Basics Key Concepts
Anne McGrath 16 th February  Review of what we have learned so far.  Angled brackets surround HTML tags.  The words between the angled brackets.
16 HTML Tables and Frames Section 16.1 Create a basic table using HTML Define borders Merge cells Align content in tables Section 16.2 Create a frames-based.
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.
Writing HTML specifications: A HTML specification for a WWW document must be stored in a plain text file The text file must not contain any control characters.
Cascading Style Sheets. Slide 2 Lecture Overview Overview of Cascading Style Sheets (CSS) Ways to declare a CSS CSS formatting capabilities New features.
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;
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.
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.
Basic HTML Workshop LIS Web Team Fall What is HTML? Stands for Hyper Text Markup Language Computer language used to create web pages HTML file =
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.
Purpose Tags are the key to marking up content on your HTML page. It’s the tags that mark up sections of the page and are defined (aesthetically) on the.
HTML Basics An Introduction to HTML. What is HTML? Stands for “Hyper Text Markup Language” Composed of “tags” which are surrounded by sideways triangles.
Basics of HTML Shashanka Rao. Learning Objectives 1. HTML Overview 2. Head, Body, Title and Meta Elements 3.Heading, Paragraph Elements and Special Characters.
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)
4 HTML Basics 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.
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)
Essential Tags Web Design – Sec 3-3 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Agenda Links External and Internet Links Anchor Tag Text Hyperlinks Image Hyperlinks Images Image Attributes: src, alt, width, height, align, border.
 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.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
HTML INTRODUCTION, EDITORS, BASIC, ELEMENTS, ATTRIBUTES.
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.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Introduction to HTML. What is HTML? Hyper Text Markup Language (HTML) is a language for describing web pages. HTML is not a programming language, it is.
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,
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.
HTML Structure & syntax. Introduction This presentation introduces the following: Doctype declaration HTML Tags, Elements and Attributes Sections of a.
HTML: Hyptertext Markup Language Doman’s Sections.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
4 HTML Basics 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.
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.
2.1 XHTML. Motto High thoughts must have high language. –Aristophanes.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
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.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
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.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
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.
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?
Web Development & Design Foundations with HTML5 8th Edition
Essential Tags Web Design – Sec 3-3
Elements of HTML Web Design – Sec 3-2
Uppingham Community College
Elements of HTML Web Design – Sec 3-2
A guide to HTML.
WEBSITE DESIGN Chp 1
Introduction to HTML5.
Internet Technologies I - Lect.01 - Waleed Ibrahim Osman
Pertemuan 1 Desain web Pertemuan 1
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

Use lower- case tags –The picture on this slide is very old –It shows upper-case tags, which were allowed back then –Upper-case tags are not allowed any more –Do not use upper-case tags

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

HTML tags must be used only for specifying the structure of documents So far, we have seen these tags: – Each of these tags carries a meaning –It introduces a particular kind of structure into a document HTML tags must be used only for this purpose They must never be abused to achieve a desired appearance –For example, the tag must never be used to introduce empty space into the appearance of a document

Never use presentational tags Some years ago, a version of HTML introduced some tags that were intended to allow programmers to control the appearance web pages The tags, called presentational tags, should never be used. They include – These tags remain in modern HTML, only to admit legacy web pages Style sheets should be used instead of presentational tags

Tags with an ambiguous status There are a few tags which some people regard as presentational but which other people regard as structural These include – It is always possible to achieve the effect of these tags by using style sheets So, try to avoid using them

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 tag

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:

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