CHAPTER 14 INTRODUCTION TO HTML 1. Terms Web pages Documents that are written in a language called HTML HTML Stands for Hypertext Markup Language HTML.

Slides:



Advertisements
Similar presentations
HTML I. HTML Hypertext mark-up language. Uses tags to identify elements of a page so that a browser such as Internet explorer can render the page on a.
Advertisements

HTML Basics Customizing your site using the basics of HTML.
HTML popo.
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: HyperText Markup Language Hello World Welcome to the world!
WeB application development
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
MR.Mohammed Sharaf al Shareef
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
HTML Introduction HTML
Database-Driven Web Sites, Second Edition1 Chapter 2 INTRODUCTION TO HTML.
Computer Science 103 Chapter 2 HyperText Markup Language (HTML)
 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.
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.
Web Design is a class created to nurture the minds of high school techies, and introduce those without prior knowledge to the field.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Chapter 14 Introduction to HTML
Computer Sciences Department
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
Presenting Information on WWW using HTML. Presenting Information on the Web with HTML How Web sites are organized and implemented A brief introduction.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
HTML. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is a markup language A markup language.
Headings, Paragraphs, Formatting, Links, Head, CSS, Images
DAT602 Database Application Development Lecture 14 HTML.
.  Entertain  Inform  Educate  Blogs  Sell  Date  Gamble  Religion.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
WEB DESIGN USING DREAMWEAVER. The World Wide Web –A Web site is a group of related files organized around a common topic –A Web page is a single file.
Understanding HTML Code
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.
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.
XP Mohammad Moizuddin Creating Web Pages with HTML Tutorial 1 1 New Perspectives on Creating Web Pages With HTML Tutorial 1: Developing a Basic Web Page.
CHAPTER 1 HTML & HTML5 I อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา 1.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
Copyright © 2013 MyGraphicsLab / Pearson Education STRUCTURE AND HTML TAGS MyGraphicsLab: Adobe Dreamweaver CS6 ACA Certification Preparation for Web Communication.
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.
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.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
INTRODUCTORY Tutorial 1 Using HTML Tags to Create Web Pages.
1 John Magee 9 November 2012 CS120 Lecture 17: The World Wide Web and HTML Web Publishing.
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.
Ali Alshowaish. What is HTML? HTML stands for Hyper Text Markup Language Specifically created to make World Wide Web pages Web authoring software language.
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.
HTML ( HYPER TEXT MARK UP LANGUAGE ). What is HTML HTML describes the content and format of web pages using tags. Ex. Title Tag: A title It’s the job.
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.
CSE 409 – Advanced Internet Technology 1 DISCUSSION OF BASIC HTML TAGS.
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
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.
HTML HYPER TEXT MARKUP LANGUAGE. INTRODUCTION Normal text” surrounded by bracketed tags that tell browsers how to display web pages Pages end with “.htm”
XP Review 1 New Perspectives on JavaScript, Comprehensive1 Introducing HTML and XHTML Creating Web Pages with HTML.
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
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.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
HTML Basics.
Objective % Select and utilize tools to design and develop websites.
Chapter 8 Introduction to HTML
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Introduction to XHTML.
Objective % Select and utilize tools to design and develop websites.
Introduction to HTML.
4.00 Apply procedures to add content by using Dreamweaver. (22%)
Presentation transcript:

CHAPTER 14 INTRODUCTION TO HTML 1

Terms Web pages Documents that are written in a language called HTML HTML Stands for Hypertext Markup Language HTML Markup tags Special codes that tell the Web browser how to display the HTML document Web browser An application that can interpret HTML and display the document in the format and layout according to the markup tags Examples: Firefox, Internet Explorer, Safari, Chrome, Opera 2

Terms HTML Document A plain text file, that can be created using: a text editor (Notepad in Windows, or TextEdit in Mac OS) a Web page editor Web page editor Example: Microsoft Expression Web, Adobe Dreamweaver Allows you to create and edit the page visually without having to manually add markup tags 3

URL Stands for Uniform Resource Locator standard for specifying the address of Web pages and other resources on the World Wide Web Example: The address is made up of segments of standard information: http stands for Hypertext Transfer Protocol The protocol specifies a set of rules that govern how the information transfer between the Web server and the Web client (the computer that requests to view the page) 4

URL Example: The address is made up of segments of standard information: This is the domain name of the Web server 5

URL Example: The address is made up of segments of standard information: departments/compsci/index.html This is the file path of the document index.html The file path is the location information of the page on the Web server In this example, the document index.html is in a folder called compsci, which in turn is located in a folder called departments 6

Term Cascading Style Sheets (CSS) Widely used for Web page design and layout Style sheets allow you to define styles to display HTML elements Style sheet files are text files The styles defined in the files follow specific rules and syntax 7

Term JavaScript A scripting language for Web pages Can be used to: Add functional features on web pages including interactivity validate online forms before submission 8

Term Dynamic HTML (DHTML) Not a programming language by itself, but a combination of HTML, CSS, and JavaScript When combined with CSS, JavaScript can be used to dynamically control properties such as: text styles text color visibility of HTML elements positioning of HTML elements (and hence create animation) image file to be used for an image element (and hence create animation) 9

Term HTML 5 The newest standard of HTML Its specifications are still a work in progress (at the time of writing the book) New features of HTML 5 include: video and audio tags content-specific tags: footer, header, nav, article, section, figure, summary, aside tags for form elements canvas element: allows drawing graphics and displaying images dynamically using JavaScript commonly used for HTML 5 game development allowing storage and retrieval of data on the user's device using JavaScript 10

Markup Tag Tells the Web browser the format of the text Surrounded by Examples: paragraph tag: HTML Components 11 Towson Univ. attribute value elements Starting tag Ending tag

Markup Tag In pairs: start tag and end tag (closing tag) Example: start tag: end tag: Placement of start and end tags Example: This is a paragraph. 12 element content

Tags That Do Not Have Element Content Examples: line break: can be written as: image tag: can be written as: 13

Attributes of a Tag To specify properties of the element that is marked up the tag Example: id attribute: This is a paragraph. Placed inside the start tag In name-value pairs like this: name = "value" 14

Basic Structure of an HTML Document This is a title. This is the content of the Web page. 15

Document Tags tag Tells the browser that this is the start of an HTML document Start tag is placed at the beginning of the HTML document End tag is placed at the end of the HTML document tag Its element content is information about the document function definitions of JavaScript links to external JavaScript and style sheets Header information is not displayed in the body of the browser window 16

Document Tags Tag Its element content is the title of the document. The title is displayed on the Window bar of the browser window. The title is used as the bookmark for the page. Displays a title for the page in search-engine results Tag Defines the document's body. Its element content is what will be displayed in the browser window. Contains all the contents of an HTML document, such as text, hyperlinks, images, tables, lists, etc. 17

Nested Tags Markup elements can be nested in another element (i.e., placed within another element’s content.) Example: header and body elements are nested inside title element is nested inside 18

Paragraph: Browsers automatically add some space (margin) before and after each element. The margins can be modified with CSS (with the margin properties). 19

Line Break: Inserts a single line break tab is empty tag which means that it has no end tag Note Use the tag to insert line breaks, not to create paragraphs In XHTML the tag must be properly closed, like this: 20

Headings: - Display title or subtitle on web pages 21

Font Styling Tags : renders as italic text : renders as bold text : renders as bigger text : renders as teletype text renders as smaller text 22

Superscripts and Subscripts 23 Defines subscript text Subscript text appears half a character below the baseline Defines superscript text Superscript text appears half a character above the baseline

Emphasizing Text 24 Renders as emphasized text Renders as strong (highlighted) text

Other Font Styling Tags 25 Defines a definition term Defines a piece of computer code Defines sample output from a computer program Defines keyboard input Defines a variable part of a text Defines a citation

Highlighting Text 26 Defines marked text Used to highlight parts of your text

Ordered List Defines an ordered list Defines list items 27

Unordered List Defines an unordered (bulleted) list. Defines list items 28

Comments Used to insert comments in the source code Comments are not displayed in the browser Use comments to explain your code, which can help you when you edit the source code at a later time 29

Link: A link has two main parts Destination Specify what happen when the visitor triggers the link Label The part that the visitor sees in a browser 30 whatever to be displayed as a clickable link destination label

Links A hyperlink (or link) is a word, group of words, or image that you can click on to jump to a new document or new section within the current document When you move the cursor over a link in a Web page, the arrow will turn into a little hand

Links (Cont.) Move to “tip” section in current page Move to Open a new web page and move to Launch a default application such as MS-outlook

Image Format Presently, the three most widely used formats on the Web are JPEG, PNG, and GIF. Current browsers can view all three image formats JPEG Handles large amounts of color compresses image into small size A lossy format which means you lose some of the image’s original information when you save it as a JPEG Usually used for color photo-graphs PNG and GIF Compresses areas of continuous colors of repetitive patterns better than the JPEG format does Usually used for logos with large amounts of solid pattern

Image: General Syntax: or No element content src is the attribute Example: 34

linking Images to a Page Used to link images to a HTML page Note that images are not inserted into a HTML page, images are linked to a pages tag creates a holding space for the referenced image src : Specifies the location of page alt : Specifies an alternate text for an image height : Specifies the height of an image width : Specifies the width of image If the image exist If the image doesn’t exist width height

Hyper Link and Image tag can be nested in tag By nesting tag in tag, an image can be used for hyper link When a user clicks the image, destination page is displayed on the scree

Image Map Defines clickable area in an image Name : associated with usemap attribute in tag : defines an area inside an image map Shape : specifies the same of an area Coords : Specifies the coordinates of area 0,0 82, , 58 (center) 8 8 (radius) 145,126

Table HTML table model allows us to arrange data (text, image, links, forms, form fields, other table, etc.) into rows and columns of cells Defining Table Structure The number of rows and columns The location of column heading The placement of a table caption Once the table structure is in place, you can start entering data into the table 38

Table (cont.) Graphical tables are enclosed within a two-sided tag that identifies the start and ending of the table structure. Each row of the table is indicated using a two-sided (for table row). Within each table row, a two-sided (for table data) tag indicates the presence of individual table cells. 39 two rows two columns

,, and tags Example: A table without a border row 1, column 1 row 1, column 2 row 2, column 1 row 2, column 2 row 3, column 1 row 3, column 2 Example: A table with a border row 1, column 1 row 1, column 2 row 2, column 1 row 2, column 2 row 3, column 1 row 3, column 2 40

Table 41 Without a table border With a table border

Creating Headings with the Tag HTML provides the tag for table headings. Text formatted with the tag is centered within the cell and displayed in a boldface font. The tag is most often used for column headings, but you can use it for any cell that you want to contain centered boldfaced text Text in cells formatted with the tag is bold and centered above each table column.

File Path Location of a file on a computer Like an address to a house Start with the outermost folder to the inner folders Folder names are separated by a slash (/) 43

Types of File Paths for Web Documents Absolute paths Document-relative paths Site root-relative paths 44

Absolute Paths Example: Full URL to a Web page or any media Used for linking to files that are on a different Web site 45 Request( oducts/coffee/french-roast.html)

Document-Relative Paths Example: products/coffee/french-roast.html Most commonly used in Web authoring Request starts at the current folder The path is relative to the page that french-roast.html is being requested. 46 Root folder Product folder and index.html are in the same folder Request(produc ts/coffee/french- roast.html) from index.html

Document Relative Path(Cont..) Example:../products/coffee/french-roast.html “..” Means going to the parent folder Request(../products/coffee/french- roast.html) from cart.html

Site Root-Relative Paths Example: /products/coffee/french-roast.html Starts with a slash (/), meaning starting from the root folder of the site A root folder is the outermost folder of the site 48 Request(/products/coffee/french- roast.html) from cart.html

Example Folder Structure of a Site 49 Root folder

Navigating Folders 50

Opening the "products" folder 51

Opening the "coffee" folder that is inside "products" 52