1 What is the Internet?  a network of networks – an inter-network, or Internet What are Internet protocols?  the rules for transferring information between.

Slides:



Advertisements
Similar presentations
HTML Basics Customizing your site using the basics of HTML.
Advertisements

HTML popo.
HyperText Markup Language (HTML). Introduction to HTML Hyper Text Markup Language HTML Example The structure of an HTML document Agenda.
Web Development & Design Foundations with XHTML
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
HTML: HyperText Markup Language Hello World Welcome to the world!
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 3: XHTML Coding © 2007 Prosoft Learning Corporation All rights reserved ITD 110 Web Page.
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.
CM143 - Web Week 2 Basic HTML. Links and Image Tags.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
Marking Up With Html: A Hypertext Markup Language Primer
HTML Introduction HTML
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
Basics of HTML Shashanka Rao. Learning Objectives 1. HTML Overview 2. Head, Body, Title and Meta Elements 3.Heading, Paragraph Elements and Special Characters.
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.
1 What is the Internet?  a network of networks – an inter-network, or Internet What are Internet protocols?  the rules for transferring information between.
Chapter 2: The Client Side: HTML CIS 275—Web Application Development for Business I.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
HTML HyperText Markup Language Constantly evolving - extra facilities being added regularly Java applets and JavaScript used to increase functionality.
HTML (HyperText Markup Language)
.  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 
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
Understanding HTML Code
HTML history, Tags, Element. HTML: HyperText Markup Language Hello World Welcome to the world!
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
 2002 Prentice Hall, Inc. All rights reserved.2 Chapter 2 — Introduction to HyperText Markup Language 4: Part I Outline 2.1Introduction 2.2Markup Languages.
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.
CP2022 Multimedia Internet Communication1 HTML and Hypertext The workings of the web Lecture 7.
XHTML1-1 Extensible HyperText Markup Language (XHTML) Xingquan (Hill) Zhu
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
1 Introduction to HTML Joshua S. Simon Collective Technologies.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
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.
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: 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.
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
Introduction to HTML. Today’s Discussion What is HTML ? What is HTML ? What is Web Page ? What is Web Page ? Web Server Web Server Web Browser Web Browser.
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.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
1 Lecture 12 Lecture 12 Basic HTML ITEC 1000 “Introduction to Information Technology”
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.
1 2/21/05CS120 The Information Era Chapter 4 Basic Web Page Construction TOPICS: Lists, Fonts, Links, and Preformatted Text.
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
1 HTML: HyperText Markup Language Representation and Management of Data on the Internet.
`. 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
Tutorial #1 Using HTML to Create Web Pages. HTML, XHTML, and CSS HTML – HyperText Markup Language The tags the browser uses to define the content of the.
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.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
Introduction to HTML.
HTML Basics.
WEBSITE DESIGN Chp 1
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
Marking Up with XHTML Tags describe how a web page should look
Lesson 2: HTML5 Coding.
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

1 What is the Internet?  a network of networks – an inter-network, or Internet What are Internet protocols?  the rules for transferring information between programs  HTTP - hypertext transfer protocol  FTP - file transfer protocol  SMTP – simple mail transfer protocol What is the World Wide Web?  a set of HTML pages accessible using the HTTP protocol Internet / Protocols / WWW

2 How does a Web Browser (Firefox) fit in this picture? - your browser connects, using the HTTP protocol, to a web server - the web server fetches an HTML web page and sends the HTML to your browser - your browser turns the HTML page into a nice-looking page on your screen How the WWW Works Your computer, Your web browser e.g. Firefox Internet connection Internet Routers Text file containing an HTML web page Their computer, Their web server (an HTTP server) e.g. Apache /mypage.html

3 Hyper Text Markup Language - HTML Hyper Text Markup Language (HTML) Basics  HTML is a “mark-up language” You add the mark-up tags to your text document  Now follows a published standard via  HTML is a language of mark-up “tags” in angle brackets: <> each tag has a name and may have one or more quoted attributes eg.  Tags usually come in pairs (with some exceptions)...,...,...,,  Web pages are free-form input; line breaks can be used most anywhere and don't affect the appearance of the document Yes, your entire page could be a single line of text!

4 … (Required!)  Basic tag to identify portion of file that contains HTML  is an opening tag  is a closing tag (note the direction of the slash!)  text between the opening and closing tag is called the “element” … (Required!)  placed at the top of document immediately after the tag  tags information about the document, e.g. author, style, etc.  contains the required document... tag HTML – Required Tags

5 … (Required!)  included as an element inside the … section  element of this tag is the title displayed in title bar of the browser  may also be used as title of page when page is bookmarked  should be meaningful and uniquely identify the page … (Required!)  included as the second element inside the … tags.  follows the … portion of the document  contains the information to be displayed in the browser window  any attributes set on this tag will apply to the entire page

6 HTML – Required Tags … (Required!)  included as an element inside the … section  Surrounds a paragraph of text DOCTYPE (Required!)  Must be the very first line of your file, before  NOT an HTML tag; it is an instruction to your web browser  Tells the browser what version of HTML to expect  In this course we use only the “strict” HTML version 4.01 type: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "

7 HTML – Required Tags That's all you need for a basic web page! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" " My Title This is my first web page.

8 HTML - Basic Tags More useful basic tags: (no closing tag needed)  put a line break in the text (starts a new line) … through...  used to identify text as a Level 1 (major) to Level 6 (minor) heading Comment Tag  notice that the comment is typed as an attribute inside the tag  comments may be one or multiple lines long (HTML is free-form)  text within this tag will not be displayed or processed by your browser  comments do not nest! No comments inside comments! --  The comment may not contain two (or more) adjacent dashes, e.g. --

9 HTML - Basic Tags The Anchor Tag – Hyper Linking - making the web a web …  one major attribute – the location of the hyperlink: href=”string”  element is clickable/selectable as a document hyperlink  browser attempts to load the page specified by the href= attribute  the href= string can be a relative URL on the same server: without the leading it is in the same directory structure: e.g. Click here to continue e.g. See the box here. e.g. Click here

10 HTML - Basic Tags … anchor tag continued  The href= string can be an absolute URL on any server: string can be any HTTP URL (web address) you like: e.g. Free Software  The href= string can be an address: string can be an address preceded by “mailto:” e.g. Ian! D. Allen Attempts to open an client (specified in the web browser's options) and places the specified address in the To: field of a new message.

11 HTML - Basic Tags (no closing tag needed)  used to display graphics (.jpeg,.png,.gif) in your web pages  you must specify the URL for the image source, and an alt= text  the basic attributes of are: src=”string” - the absolute or relative location of the image file alt=”string” - Alternate Text for people who don't see images height=”string” - image height, percent or absolute pixels (optional) width=”string” - image width, percent or absolute pixels (optional) title=”string” - mouse-over title of the image (optional) Etc….  specifying height= and width= lets your browser reserve space in the document to load the image in the background and avoid redrawing the page after the image is fully loaded

12 HTML - Basic Tags (no closing tag needed) – Hard/Horizontal Rule – draw a horizontal line – rule appearance can be changed with styles … – block quotation, indented … – a short, in-line “quotation as part of running text” … – preformatted text (e.g. computer code or output) – fixed-width font (e.g. Courier fixed width ) – preserves spaces and line breaks

13 Font-style tags – for more control, use CSS instead … and … – bold and italic text (in-line) … – Teletype Text: fixed-width font (e.g. Courier ) … and … – bigger and smaller text (in-line) HTML - Basic Tags

14 HTML - Phrase Tags Phrase tags – often better done using CSS … and... – text to be emphasized and strongly emphasized – browser decides how: usually italicized, made bold Less often used:...,...,... – computer code, sample code, keyboard text – usually rendered in Courier fixed-width font

15 The element and the style= attribute The style= attribute can be used on most tags – defines features for a single HTML element, e.g. Center me. The element:... – tag always goes in the section – defines style information for the whole HTML page – requires the type=”text/css” attribute – more details to come in the description of CSS – to link to a separate CSS style sheet, use instead: HTML – Style Element/Attribute

Apple Pear Kiwi Big Small Apple Pear Kiwi Big Small HTML - Lists Lists – Unordered List and Ordered List

17 HTML - Basic Tags … – List Item: surrounds each list item inside a list – used inside both and list types … – surrounds an unordered list – no numbering –... items each indented and bulleted – use styles (style= attribute) to change type of bullet: – CSS style: list-style-type: string string can be: circle, disc, square e.g.... HTML – Unordered Lists

18 HTML – Ordered Lists … – surrounds an ordered list – items are indented and numbered (or alphabetized) – use styles (style=) to change type of numbering: – CSS style: list-style-type: string examples of string: decimal, lower-alpha, upper-roman e.g.... – the start= attribute determines first item's value e.g. - begin numbering at 3 (or c, or iii) but this is deprecated, with no CSS replacement!

19 HTML – Definition List … – definition list containing and items –... definition title –... definition description Example definition list containing two definitions: Hacker An expert or enthusiast of any kind. Cracker An intruder into computer systems.

20 HTML - - Page Attributes (no closing tag needed) – used only inside section of page – gives details about page, e.g. author, keywords – search engines may ignore keywords, since many pages use fake keywords to boost search results CST8281 Course Homepage

21 HTML - - continued elements of include: – name=string identifies what type of meta content will follow – content=string details relating to the name can also be used to have your page automatically load another web page after a short delay: – note the attribute name: http-equiv=”refresh” – the content= string begins with number of seconds before next page is loaded, followed by a semicolon, then url= giving the URL of the next page to be loaded

22 Use to set the character set for the HTML page – needed to pass W3C validation without warnings also frequently used: charset=iso – iso is “Latin-1” and includes French – Latin-1 common in North America, Western Europe – but UTF-8 includes all languages (preferred) HTML – - charset – Character Set

23 Identifying and Grouping elements (e.g. for CSS)... – division or section – groups and identifies one or more block-elements – usually causes a line break before and after... – groups and identifies in-line elements (e.g. words) – no visual change by itself (no line break) – used to apply styles to parts of a text line, e.g. This red apple. HTML – Identify/Group Tags

24 HTML Entities – for special characters, accents, foreign – starts with ampersand and ends with semicolon non-breaking-space – acts like a letter – words connected with will not separate across a line break; they stay together as one word – e.g. Mr. Ian! D. Allen < (less than) = " (double quote) = " &apos; (apostrophe) = ' & (ampersand) = & – many, many others! HTML – Entities (Special Characters)