HTML: AN INTRODUCTION. Document Structure HEAD: Provides information about the document to browsers and agents. Some elements include: –TITLE: Tell what.

Slides:



Advertisements
Similar presentations
Session 2 Introduction to HyperText Markup Language 4 (HTML 4) Matakuliah: M0114/Web Based Programming Tahun: 2005 Versi: 5.
Advertisements

HyperText Markup Language (HTML). Introduction to HTML Hyper Text Markup Language HTML Example The structure of an HTML document Agenda.
CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
HTML: HyperText Markup Language Hello World Welcome to the world!
HTML popo.
Chapter 2 HTML Basics Key Concepts
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
1 HTML Markup language – coded text is converted into formatted text by a web browser. Big chart on pg. 16—39. Tags usually come in pairs like – data Some.
HTML and XHTML Controlling the Display Of Web Content.
13 February Building a Web Page. HTML Files Two types of information Text Instructions on how to display Instructions are in the form of tags Tags are.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
HTML Primer Basics of HTML for those who haven’t used it before.
Marking Up With Html: A Hypertext Markup Language Primer
HTML Introduction DSC340 Mike Pangburn. What is HTML?  HTML: Hyper Text Markup Language  The predominant markup language for web-page design.  A markup.
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
CpSc 462/662: Database Management Systems (DBMS) (TEXNH Approach) HTML Basics James Wang.
Chapter 4 Fluency with Information Technology L. Snyder Marking Up With HTML: A Hypertext Markup Language Primer.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
Chapter 2: The Client Side: HTML CIS 275—Web Application Development for Business I.
Basic HTML Hyper text markup Language. Re-cap  … - The tag tells the browser that this is an HTML document The html element is the outermost element.
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.
HTML HyperText Markup Language Constantly evolving - extra facilities being added regularly Java applets and JavaScript used to increase functionality.
ITCS373: Internet Technology HTML
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
 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.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Introduction to Computers CS Dr. Zhizhang Shen Chapter 4: Talking.
 2002 Prentice Hall, Inc. All rights reserved.2 Chapter 2 — Introduction to HyperText Markup Language 4: Part I Outline 2.1Introduction 2.2Markup Languages.
Using Html Basics, Text and Links. Objectives  Develop a web page using HTML codes according to specifications and verify that it works prior to submitting.
Objectives: 1. Create a Skeleton HTML 2. View a Skeleton File Through a Server and Browser 3. Learn HTML Body Tags for the Display of Text and Graphics.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
1 Introduction to HTML Joshua S. Simon Collective Technologies.
Getting Started with HTML Please use speaker notes for additional information!
CPT 123 Internet Skills Class Notes Publishing to the Web Session B.
HTML,DHTML & Javascript/Session1/1 of 39 Introduction and Basic Tags Session 1 of Using HTML, DHTML & JavaScript.
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,
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.
LEARNING HTML PowerPoint #1 Cyrus Saadat, Webmaster.
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
HTML Basics. HTML Introduction Stands for HyperText Markup Language. HTML files are plain text files with mark ups. Some characteristics of HTML: –No.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
HTML Basics Computers. What is an HTML file? *HTML is a format that tells a computer how to display a web page. The documents themselves are plain text.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Basic Document Structure.
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.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Text-Level Elements and Links.
Introduction to HTML C151 Multi-User Operating Systems.
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 is a markup.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
`. Lecture Overview HTML Body Elements Linking techniques HyperText references Linking images Linking to locations on a page Linking to a fragment on.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
1999, COMPUTER SCIENCE, BUU Introduction to HTML Seree Chinodom
©SoftMoore ConsultingSlide 1 Introduction to HTML: Block-Level Elements.
INT222 – Internet Fundamentals
Create Your Own Web Page: An Introduction to HTML Instructor: Corey Johnson Assisted by: tba.
HTML Basics.
Marking Up with XHTML Tags describe how a web page should look
Computers and Scientific Thinking David Reed, Creighton University
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Introduction to HTML.
Chapter 4: Marking Up With HTML: A Hypertext Markup Language Primer
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

HTML: AN INTRODUCTION

Document Structure HEAD: Provides information about the document to browsers and agents. Some elements include: –TITLE: Tell what the document is about (ideally). Typically displayed at the top of the browser. –SCRIPT: include a script. –STYLE: create a style sheet. –META: define meta information. –LINK: relationship between documents. –OBJECT: include an object.

TITLE Include only one in each document. Should succinctly describe the document’s content. Keep title under 64 characters. Should not contain other HTML tags.

BODY Otherwise optional, it is often included because it allows the designer to set presentational values for attributes associated with the tag. –Background Color (BGCOLOR; can use color name or hexidecimal RGB value for color). –Font Color for Text (TEXT, LINK, VLINK). –Background Images: (BACKGROUND).

<!DOCTYPE HTML PUBLIC “-//W3C/DTD HTML 4.0 FRAMESET//EN” “ Welcome to the White House <BODY background=“/WH/images/bg.gif” bgcolor = #FFFFFF” text=“#000000” link=“0000BB” vlink=“BB0000”> Sample HTML Code of Tags Introduced So Far.

Basic Body Elements Headings: H1 to H6 The White House Vice-Presidential Suite Secretary’s Office ALIGN: The White House

Basic Body Elements Paragraphs: … The White House is a place of action and suspense. Use of Physical and Logical Style Elements: –Physical Elements:,,,,,,. –Logical Elements:,,, Subscript and SuperScript: SUB, SUP

Basic Body Elements Special Characters: –© Copyright symbol –® Registered symbol – Nonbreaking space –< Less than symbol –> Greater than symbol –& Ampersand –" Double quote

Basic Body Elements Line Breaks: Forces a line break but does not insert an extra blank line. –CLEAR Attribute: Provides flow control for text that is next to an image or other object.

Basic Body Elements No Break: –All the text that start and end with the NOBR tags will not have line breaks inserted. Will force horizontal scrolling. Addresses: –Used to hold addresses. Browsers usually displays in italics.

Basic Body Elements Comments: –Text appearing within comment tags is ignored by browsers. Use comments to help make sense out of your HTML coding.

Lists Unnumbered (bulleted) lists Numbered lists Definition lists Definition List Defined item in a definition list. Definition of an item in a definition list.

Ordered List Important things to do today Eat breakfast Take a nap Eat dinner

Ordered List Important things to do today 1.Eat breakfast 2.Take a nap 3.Eat dinner

Unnumbered Lists Things in the refrigerator Road Kill Wiggle Sewer Soup Rancid Relish

Unnumbered Lists Things in the refrigerator Road Kill Wiggle Sewer Soup Rancid Relish

Definition List Language List Java An object-oriented language Fortran A scientific language Perl A text processing language

Definition List Language List Java An object-oriented language Fortran A scientific language Perl A text processing language

Nested Lists Types of Horses Race Nag Types of Pigs Sloppy Fat

Nested Lists 1. Types of Horses Race Nag 2. Types of Pigs Sloppy Fat

HTML: LINKS

Creating Links To create a link in HTML, you need two things: –The name of the file (or the URL of the file) you want to link to… –The text that will serve as the “hot spot” -- that is, the text that will be highlighted in the browser, which your readers can then select to follow the link. –To create a link in an HTML page, use the HTML link tag ….

The Link Tag Go back to Main Menu File to load when link is selected Opening Tag Text that will be highlighted Closing Tag “HREF” stands for “Hypertext REFerence.”

Example with List Feeding Your Ostrich Grooming Your Ostrich Cleaning Up After Your Ostrich Taunting Your Ostrich Feeding Your Ostrich Grooming Your Ostrich Cleaning Up After Your Ostrich Taunting Your Ostrich

Relative Pathnames Relative pathnames point to file based on their locations relative to the current file. To specify relative pathnames in links, use UNIX-style pathnames regardless of the system you actually have. This means that directory or folder names are separated by forward slashes (/), and use two dots to refer generically to the directory above the current one (..).

Relative Pathnames HREF = “file.html” HREF = “files/file.html” HREF=“files/morefiles/ file.html” HREF=“../file.html” HREF=“../../files/ html” file.html is located in the current directory. file.html is located in the directory (or folder) called files (and the files directory is located in the current directory). file.html is located in the morefiles directory, which is located in the files directory, which is located in the current directory. file.html is located in the directory one level up form the current directory (the “parent” directory. file.html is located two directory levels up, in the directory files.

Absolute Pathnames Absolute pathnames point to the page by starting at the top of your directory hierarchy and working downward through all the intervening directories to reach the file. Absolute pathnames point to files based on the absolute location on the file system. Absolute pathnames always begin with a slash, which is the way they are differentiated from relative pathnames.

Absolute Pathnames HREF = “/u1/tbyrd/file.html HREF=“/d|/files/html/file.h tml” HREF=“/Hard Disk 1/HTML Files/file.html” file.html is located in the directory /u1/tbyrd (typically UNIX). file.html is located on the D: disk in the directories files/html (Windows systems). file.html is located on the disk Hard Disk 1, in the folder HTML Files (typically on MacIntosh).

Linking to Web Documents Remote pages are pages contained somewhere on the Web other than the system you are currently working on. The HTML code for linking to these pages look exactly like the code for local pages except you use the URL of the Web page instead of the local address of the file. Auburn Home Page

Linking to Specific Locations Instead of just linking to another document and moving to the top of the page, you can set up link to a specific place within that page, for example, to the fourth major section down. Anchors are special places inside documents that can be linked to. Links can then jump to those special places inside the page as opposed to jumping just to the top of the page.

Linking to Specific Locations Soft Fruits: Please choose a subtopic. *Strawberries *Blackberries *Blueberries Blackberries Berries grow on canes. Blueberries Blueberries grow on bushes in colder climates. Strawberries Strawberries are an herbaceous plant.

Linking to Specific Locations Example 1: In the “berries.html” document. Strawberries Example 2: Within the same document. Strawberries Note: Anchor names and links are case sensitive. Make sure that the anchor name you used in the NAME attribute and the anchor name in the link after the # are identical.

Parts of URLs protocol hostname directory and file name ftp://auburn.edu gopher://auburn.edu

Tables in HTML The TABLE element allows the setup of text in columns and rows. A table must be enclosed in the tags. Within the table, the tag is used to designate rows. Individual cells are designated by for a header cell or for a data cell. A caption may also be included using the.

Table in HTML Soup of the Day Monday Tuesday Wednesday Thursday Friday Split Pea New England Clam Chowder Minestrone Cream of Broccoli Chowder

Attributes in Tables align = left; align=right; align=center valign=top; valign=middle; valign=bottom width=size (px or %); height=size (px or %) bgcolor=color cellspacing=size; cellpadding=size; border=size –(for table tag in pixels) rowspan=value; colspan=value (The number of rows and columns throughout a table must be equivalent)