1 Introduction to HTML: Part 1 Outline Introduction Elements and Attributes Editing HTML Common Elements Headers Images Unordered Lists Nested and Ordered.

Slides:



Advertisements
Similar presentations
HTML popo.
Advertisements

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. The World Wide Web Protocols Addresses HTML.
Chapter 2 HTML Basics Key Concepts
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
Background: HTML and CSS Chapters 1-4 of Deitel XML text.
1 Outline 9.1Introduction 9.2Markup Languages 9.3Editing HTML 9.4Common Tags 9.5Headers 9.6Text Styling 9.7Linking 9.8Images 9.9Formatting Text With 9.10Special.
 2001 Deitel & Associates, Inc. All rights reserved. 1 Outline 9.1Introduction 9.2Markup Languages 9.3Editing HTML 9.4Common Tags 9.5Headers 9.6Text Styling.
B118 Web Programming Session #3 Introduction to XHTML February 16, 2004.
1 Introduction to XHTML: Part 2 Outline Introduction Basic XHTML Tables Intermediate XHTML Tables and Formatting Basic XHTML Forms More Complex XHTML Forms.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
 2004 Prentice Hall, Inc. All rights reserved. Introduction to XHTML: Part 1.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
Week 1 8/10/2015iSTTS, Agenda Introduction to HTML Creating and publishing a Web page Validating a document Main HTML elements Block-level HTML.
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.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Chapter 2 HTML (Hypertext Markup Language) Part I.
1 Outline 3.1 Introduction 3.2 Editing HTML 3.3 First HTML Example 3.4 W3C HTML Validation Service 3.5 Headers 3.6 Linking 3.7 Images 3.8 Special Characters.
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.
1 HTML Basics Dr. Awad Khalil Computer Science Department AUC.
HTML HyperText Markup Language Constantly evolving - extra facilities being added regularly Java applets and JavaScript used to increase functionality.
HTML (HyperText Markup Language)
1 XHTML Forms A form is the mechanism to –Collect information from a browser user –Transmit collected information from a browser to a server HTML/XHTML.
 2001 Prentice Hall, Inc. All rights reserved. Lecture 1 Internet and the World Wide Web Course structure Introduction XHTML Cascading Style Sheets JavaScript.
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
Understanding HTML Code
 2002 Prentice Hall, Inc. All rights reserved.2 Chapter 2 — Introduction to HyperText Markup Language 4: Part I Outline 2.1Introduction 2.2Markup Languages.
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.
Introduction to HTML. What is a HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup tags  The.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
What is Markup and Markup Languages? What is HTML? A Basic HTML Document Basic HTML Tags Tag Attributes and Text Formatting Tags Insert Hyperlinks Add.
HTML Hyper Text Markup Language. What is an HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup.
1 Web Development Lecture # 11 Introduction to XHTML (Chapter # 4) It.GulGasht.Com.
HTML,DHTML & Javascript/Session1/1 of 39 Introduction and Basic Tags Session 1 of Using HTML, DHTML & JavaScript.
1 Introduction to XHTML. 2 Main.html Program Output 1 2
HTML: Hyptertext Markup Language Doman’s Sections.
Introduction HTML (Hypertext Markup Language) is used to create document on the World Wide Web. HTML is not a programming language, it is a markup language.
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
HTML— More Tags, Formatting, and Lists. Formatting Tags  Bold  Italics  Underline  Big text  Small text  Subscript (H 2 O)  Superscript (10 3 )
1 Introduction to XHTML: Part 1 Outline Introduction Elements and Attributes Editing XHTML Common Elements W3C XHTML Validation Service Headers Linking.
WEB DESIGN AND PROGRAMMING Introduction to XHTML.
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.
HTML (Hyper Text Markup Language) Lecture II. Review Writing HTML files for web pages – efficient compact – fundamental. Text files with htm extension.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
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.
ECA 228 Internet/Intranet Design I HTML Tags. ECA 228 Internet/Intranet Design I anchor tags Adds a link to the web page Anything placed between the anchor.
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.
1 Foundation of HTML Web Page Design. 2 Safe Web Fonts: Used by most computers regardless of environment or platform  Times New Roman  Arial  Courier.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
HTML AN INTRODUCTION TO WEB PAGE PROGRAMMING. INTRODUCTION TO HTML With HTML you can create your own Web site. HTML stands for Hyper Text Markup Language.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 22 - i-mode Outline 22.1 Introduction 22.2 Japan’s Telecommunications Industry and Infrastructure.
Lesson 5. XHTML Tags, Attributes and Structure XHTML Basic Structure head and body titles Paragraph headings comments Document Presentation Manipulating.
HTML Basics.
Chapter 24 – Introduction to XHTML Basic: Part I
Chapter 1: Introduction to XHTML (part 1)
Chapter 4 - Introduction to XHTML: Part 1
Introduction to HTML: Part 1
Introduction to HTML: Part 1
Chapter 4 - Introduction to XHTML: Part 1
Introduction to HTML- Basics
Chapter 4 - Introduction to XHTML: Part 1
Chapter 4 - Introduction to XHTML: Part 1
Presentation transcript:

1 Introduction to HTML: Part 1 Outline Introduction Elements and Attributes Editing HTML Common Elements Headers Images Unordered Lists Nested and Ordered Lists Linking Special Characters and More Line Breaks More Examples

2 - Introduction to HTML: Part 1 - HTML stands for Hyper Text Markup Language. - An HTML file is a text file containing. - The markup tags tell the Web browser how to display the page. -An HTML file must have an htm or html file extension. -An HTML file can be created using a simple text editor.

3 Main.html Program Output Internet and WWW How to Program - Welcome Welcome to XHTML! The text between the title tags appears as the title of the web page. Elements between the body tags of the html document appear in the body of the web page

4 HTML Text Formatting TagDescription Defines bold text Defines big text Defines emphasized text Defines italic text Defines small text Defines strong text Defines subscript text Defines superscript text Defines deleted text defines the text direction Defines underlined text Defines horizontal rule … Defines header text

5 Text Formatting Example my first example this is bold text this is big text this is emphasized text this is italic text this is small text this is deleted text this is underlined text This is subscript text This is superscript text this is right to left text this is left to right text

6 Header.html Internet and WWW How to Program - Headers Level 1 Header Level 2 header Level 3 header Level 4 header Level 5 header Level 6 header The font size of the text between tags decreases as the header level increases. Program Output

7 tag : defines font Attribute  size 12 font size flag available +6   -6 Example : text text centering and aligning: centering: text Aligning: Attribute  align  left, right, center this is the left side this is the right side this is the center side

8 Placing image on web page: TagDescription Defines image AttributeDescription Srcdefines the image file location. Widthspecify the image width. Heightspecify the image height. Altis an attribute give a description of the image, the description is displayed if the image cannot be displayed Borderdefines the image border width aligndefines the placement side of the image (the default is left).

9 Aligning text with images Aligning text with images: text text text Internet and WWW How to Program - Welcome <img src = "xmlhtp.jpg" height = "238" width = "183" alt = "XML How to Program book cover" /> <img src = "jhtp.jpg" height = "238" width = "183" alt = "Java How to Program book cover" /> The value of the src attribute of the image element is the location of the image file. The height and width attributes of the image element give the height and width of the image. The value of the alt attribute gives a description of the image. This description is displayed if the image cannot be displayed.

10 Program Output The second image could not be displayed properly, so the value of its alt attribute is displayed instead.

11 Tag Attribute  behavior  alternate  Scroll  Slide Direction  right, left, down, up. ScrollAmount =1,2,3,…. ScrollDelay= 30,40,…. Bgcolor: defines on underground color

12 Ordered and Unordered List Ordered list: create a list in which item begin with a number or letter. Unordered list: does not order it's items by letters or unletters. TagDescription Defines ordered list Defines unordered list Defines list items AttributeDescription typeType of ordering or unordering (circle, square, disk)

13 List.html Internet and WWW How to Program - Lists The Best Features of the Internet You can meet new people from countries around the world. You have access to new media as it becomes public: New games New applications For business For pleasure Around the clock news Search engines Shopping Programming XML Java XHTML Scripts New languages Links Keeping in touch with old friends It is the technology of the future! My 3 Favorite CEOs Harvey Deitel Bill Gates Michael Dell Entries for an ordered list must be placed between the and tags. By inserting a list as an entry in another list, lists can be nested. The type attribute of the ordered list element allows you to select a sequence type to order the list. Text placed between the em tags will be italicized.

14 List.html Program Output Some sequence types available to order lists are roman numerals, letters and numbers. Nested lists are indented underneath the main list.

15 Linking TagDescription Defines an anchor, used to create an anchor to link for. AttributeDescription href Used to address the document to link to target Defines where the link document will be opened

16 Links.html Internet and WWW How to Program - Links Here are my favorite sites Click on a name to go to that page. Deitel Prentice Hall Yahoo! USA Today Text between strong tags will appear bold. Elements placed between paragraph tags will be set apart from other elements on the page with a vertical line before and after it. Linking is accomplished in XHTML with the anchor (a) element. The anchor links to the page that’s value is given by the href attribute. The text between the a tags is the anchor for the link.

17 Program Output Clicking on the “Deitel” link will open up the Deitel homepage in a new browser window.

18 Contact.html Internet and WWW How to Program - Contact Page My address is Click the address and your browser will open an message and address it to me. To create an link include “mailto:” before the address in the href attribute.

19 Program Output When a user clicks on an link, an message addressed to the value of the link will open up.

20 Character Entities Entity nameDescriptionResult Non-breaking spaceSpace <Less than< >Greater than> "Quotation mark“ ©Copyright©

21 Contact2.html Internet and WWW How to Program - Contact Page My address is Click on the address and your browser will automatically open an message and address it to my address. All information on this site is © Deitel & Associates, Inc You may download 3.14 x 10 2 characters worth of information from this site. Only one download per hour is permitted. Note: < ¼ of the information presented here is updated daily. The horizontal rule element renders a horizontal line on the web page. Special characters are denoted with an ampersand (&) and an abbreviation for that character. In this case, the special characters are ampersand and copyright.

22 Contact2.html Program Output Text placed between del tags is struck out.. Text placed between the sup tags is superscripted. Text placed between the sub tags is subscripted.

23 Nav.html Internet and WWW How to Program - Navigation Bar <img src = "buttons/links.jpg" width = "65" height = "50" alt = "Links Page" /> <img src = "buttons/list.jpg" width = "65" height = "50" alt = "List Example Page" /> <img src = "buttons/contact.jpg" width = "65" height = "50" alt = "Contact Page" /> <img src = "buttons/header.jpg" width = "65" height = "50" alt = "Header Page" /> <img src = "buttons/table.jpg" width = "65" height = "50" alt = "Table Page" /> <img src = "buttons/form.jpg" width = "65" height = "50" alt = "Feedback Form" /> Placing an image element between anchor tags, creates an image that is an anchor for a link. A line break will render an empty line on a web page.

24 Nav.html Program Output Using an image as an anchor works exactly the same as using text. Clicking on the image entitled “links” brings the user to the page on the right.

25 Links2.html Internet and WWW How to Program - Links Here are my favorite sites Click on a name to go to that page. Deitel Prentice Hall Yahoo! USA Today The entries in an unordered list must be included between the and tags. An entry in the list must be placed between the and tags.

26 Program Output Each entry in the list is rendered on its own line with a bullet before it.