12-Jun-15 HTML. 2 What is the World Wide Web? The World Wide Web (WWW) is most often called the Web The Web is a network of computers all over the world.

Slides:



Advertisements
Similar presentations
Introduction to Web Design Lecture number:. Todays Aim: Introduction to Web-designing and how its done. Modelling websites in HTML.
Advertisements

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.
Learning HTML. > Title of page This is my first homepage. Tells Browser This is an HTML page Basic Tags Tells Browser End of HTML page Header information.
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.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
How Tags are used to form your Web Page
INTRO TO THE WWW. What is the World Wide Web? The World Wide Web (WWW) is most often called the Web. The World Wide Web (WWW) is most often called the.
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
HTML Computing Concepts HTML - An Introduction 1.
23-Jun-15 HTML. 2 Web pages are HTML HTML stands for HyperText Markup Language Web pages are plain text files, written in HTML Browsers display web pages.
HTML Lesson 1 TBE 540 Farah Fisher. Prerequisites Before beginning this lesson, the student must be able to… Access web pages and navigate the web Access.
Marking Up With Html: A Hypertext Markup Language Primer
Computer Science 103 Chapter 2 HyperText Markup Language (HTML)
16-Jul-15 HTML. 2 What is HTML? HTML stands for Hypertext Markup Language An HTML file is a text file containing markup tags The markup tags tell the.
Developing a Basic Web Page with HTML
HTML Code. What we will cover Basic HTML Body Font Images Hyperlinks Tables Frames.
Week 1 8/10/2015iSTTS, Agenda Introduction to HTML Creating and publishing a Web page Validating a document Main HTML elements Block-level HTML.
Chapter 14 Introduction to HTML
CpSc 462/662: Database Management Systems (DBMS) (TEXNH Approach) HTML Basics James Wang.
CS105 Introduction to Computer Concepts HTML
Presenting Information on WWW using HTML. Presenting Information on the Web with HTML How Web sites are organized and implemented A brief introduction.
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.
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.
CS 299 – Web Programming and Design Introduction to HTML.
ITCS373: Internet Technology HTML
HTML (HyperText Markup Language)
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
Understanding HTML Code
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Introduction to Computers CS Dr. Zhizhang Shen Chapter 4: Talking.
1 HTML intro The development of HTMLThe development of HTML The transition from HTML to XHTMLThe transition from HTML to XHTML XHTML syntax, tags, and.
1 Web Developer Foundations: Using XHTML Chapter 2 Key Concepts.
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.
Getting Started with HTML Please use speaker notes for additional information!
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.
Chapter 8 Introduction to HTML and Applets Fundamentals of Java.
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
1 John Magee 9 November 2012 CS120 Lecture 17: The World Wide Web and HTML Web Publishing.
HTML: Hyptertext Markup Language Doman’s Sections.
26-Oct-15 World Wide Web and HTML. 2 What is the World Wide Web? The World Wide Web (WWW) is most often called the Web The Web is a network of computers.
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.
HTML Basics BCIS 3680 Enterprise Programming. Web Client/Server Architecture 2  Your browser (the client) requests a Web page from a remote computer.
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.
HTML. 2 Agenda Discussion of Lab1 HTML Origins HTML Standards HTML Syntax –Basics –Tables 2.
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.
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.
CSE 409 – Advanced Internet Technology 1 DISCUSSION OF BASIC HTML TAGS.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Basic Document Structure.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
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.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
1 HTML. 2 Full forms WWW – world Wide Web HTTP – Hyper Text Transfer Protocol HTML – Hyper Text Markup Language.
1 Introduction to HTML. 2 Definitions  W W W – World Wide Web.  HTML – HyperText Markup Language – The Language of Web Pages on the World Wide Web.
Online PD Basic HTML The Magic Of Web Pages
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
Marking Up with XHTML Tags describe how a web page should look
Computer Fundamentals 2
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
HTML 19-Feb-19.
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:

12-Jun-15 HTML

2 What is the World Wide Web? The World Wide Web (WWW) is most often called the Web The Web is a network of computers all over the world All the computers in the Web can communicate with each other. All the computers use a communication standard called HTTP (Hypertext Transfer Protocol)

3 How does the WWW work? Web information is stored in documents called Web pages Web pages are text files stored on computers called Web servers Computers reading the Web pages are called Web clients Web clients view the pages with a program called a Web browser Popular browsers are: Internet Explorer, Firefox, Safari, Mozilla, Konqueror, and Opera Other browsers are: Netscape Navigator, Omniweb, iCab, etc.

4 How does the browser fetch pages? A browser fetches a Web page from a server by sending a request A request is a standard HTTP request containing a page address A page address looks like this: A page address is a kind of URL (Uniform Resource Locator)

5 How does the browser display pages? All Web pages are ordinary text files All Web pages contain display instructions The browser displays the page by reading these instructions. The most common display instructions are called HTML tags HTML tags look like this: This is a Paragraph

6 Who makes the Web standards? The Web standards are not made up by Netscape or Microsoft The rule-making body of the Web is the W3C W3C stands for the World Wide Web Consortium W3C puts together specifications for Web standards The most essential Web standards are HTML, CSS and XML The latest HTML standard is XHTML 1.0

7 What is an HTML File? HTML stands for Hypertext Markup Language An HTML file is a text file containing small markup tags The markup tags tell the Web browser how to display the page An HTML file must have an htm or html file extension.html is preferred.htm extensions are used by servers on very old operating systems that can only handle “8+3” names (eight characters, dot, three characters) An HTML file can be created using a simple text editor Formatted text, such as Microsoft Word’s.doc files, cannot be used in HTML files

8 HTML Tags HTML tags are used to mark up HTML elements HTML tags are surrounded by angle brackets, Most HTML tags come in pairs, like and The tags in a pair are the start tag and the end tag The text between the start and end tags is the element content The tags act as containers (they contain the element content), and should be properly nested HTML tags are not case sensitive; means the same as XHTML tags are case sensitive and must be lower case To ease the conversion from HTML to XHTML, it is better to use lowercase tags

9 Structure of an HTML document An HTML document is contained within tags It consists of a and a, in that order The typically contains a, which is used as the title of the browser window Almost all other content goes in the Hence, a fairly minimal HTML document looks like this: My Title Hello, World!

10 HTML documents are trees html headbody title My Web Page This will be the world’s best web page, so please check back soon! (Under construction)

11 Text in HTML Anything in the body of an HTML document, unless marked otherwise, is text You can make text italic by surrounding it with and tags You can make text boldface by surrounding it with and tags You can put headers in your document with,,,,, or tags (and the corresponding end tag, through ) is quite large; is very small Each header goes on a line by itself

12 Whitespace Whitespace is any non-printing characters (space, tab, newline, and a few others) HTML treats all whitespace as word separators, and automatically flows text from one line to the next, depending on the width of the page To group text into paragraphs, with a blank line between paragraphs, enclose each paragraph in and tags To force HTML to use whitespace exactly as you wrote it, enclose your text in and tags (“pre” stands for “preformatted”) also uses a monospace font is handy for displaying programs

13 Lists Two of the kinds of lists in HTML are ordered, to, and unordered, to Ordered lists typically use numbers: 1, 2, 3,... Unordered lists typically use bullets ( ) The elements of a list (either kind) are surrounded by and Example: The four main food groups are: Sugar Chips Caffeine Chocolate

14 Attributes Some markup tags may contain attributes of the form name =" value " to provide additional information Example: To have an ordered list with letters A, B, C,... instead of numbers, use to For lowercase letters, use type="a" For Roman numerals, use type=" I " For lowercase Roman numerals, use type="i" In this example, type is an attribute

15 Links To link to another page, enclose the link text in to Example: I'm taking Dr. Dave's CIT597 course this semester. Link text will automatically be underlined and blue (or purple if recently visited) To link to another part of the same page, Insert a named anchor: References And link to it with: My references To link to a named anchor from a different page, use My references

16 Images Images (pictures) are not part of an HTML page; the HTML just tells where to find the image To add an image to a page, use: The src attribute is required; the others are optional Attributes may be in any order The URL may refer to any.gif,.jpg, or.png file Other graphic formats are not recognized The alt attribute provides a text representation of the image if the actual image is not downloaded The height and width attributes, if included, will improve the display as the page is being downloaded If height or width is incorrect, the image will be distorted There is no end tag, because is not a container

17 Tables Tables are used to organize information in two dimensions (rows and columns) A contains one or more table rows, Each table row contains one or more table data cells,, or table header cells, The difference between and cells is just formatting--text in cells is boldface and centered Each table row should contain the same number of table cells To put borders around every cell, add the attribute border="1" to the start tag

18 Example table Name Phone Dick Jane Sally

19 More about tables Tables, with or without borders, are excellent for arranging things in rows and columns Wider borders can be set with border=" n " Text in cells is less crowded if you add the attribute cellpadding=" n " to the start tag Tables can be nested within tables, to any (reasonable) depth This is very convenient but gets confusing Tables, rows, or individual cells may be set to any background color (with bgcolor=" color " ) Columns have to be colored one cell at a time You can also add bgcolor=" color " to the start tag

20 Entities Certain characters, such as <, have special meaning in HTML To put these characters into HTML without any special meaning, we have to use entities Here are some of the most common entities: < represents < > represents > & represents & &apos; represents ' " represents " represents a “nonbreaking space”--one that HTML does not treat as whitespace

21 Frames Frames are a way of breaking a browser window up into “panes,” and putting a separate HTML page into each pane The Java API is an example of a good use of frames

22 Framesets Frames are enclosed within a frameset Replace... with... Within the start tag, use the attributes: rows= row_height_value_list cols= col_width_value_list The value lists are comma-separated lists of values, where a value is any of: value % – that percent of the height or width value – that height or width in pixels (usually a bad idea) * – everything left over (use only once) Example:

23 Adding frames to a frameset Put as many tags within a as there are rows or columns is not a container, so there is no end tag Each should have this attribute: src= URL – tells what page to load Some optional tags include: scrolling="yes|no|auto" (default is "auto" ) noresize Within a you can also put Text to display if no frames

24 Example: The Java API Java 2 Platform SE v1.4.0 If you see this, you have frames turned off!

25 The rest of HTML HTML is a large markup language, with a lot of options None of it is really complicated I’ve covered only enough to get you started You should study one or more of the tutorials Your browser’s View -> Source command is a great way to see how things are done in HTML HTML sometimes has other things mixed in There is no such “thing” as DHTML (Dynamic HTML) DHTML is simply HTML with several other technologies mixed in, such as forms and JavaScript, some of which we will cover If something on an HTML page doesn’t look like HTML, it probably isn’t--so don’t worry about it for now

26 Vocabulary WWW: World Wide Web W3C: World Wide Web Consortium HTML: Hypertext Markup Language URL: Uniform Resource Locator

27 The End