11 Introduction to HTML. 2 Objectives You will be able to Create a simple web page in HTML using a plain text editor. Publish your page on the web so.

Slides:



Advertisements
Similar presentations
Introduction to Creating a Web Page using a Simple Text Editor (Notepad) 1  2004 Ecirp Studios
Advertisements

Introduction to HTML & CSS
Web Development & Design Foundations with XHTML
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
WeB application development
Website Design.
ASHIMA KALRA.  WHAT IS HTML WHAT IS HTML  HTML TAGS HTML TAGS  FORMATTING TAGS FORMATTING TAGS.
XHTML Basics.
1. Content – Collective term for all text, images, videos, etc. that you want to deliver to your audience. 2. Structure – How the content is placed on.
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 1.
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.
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
HTML Hypertext Markup Language –First proposed by CERN in 1989 –It is non-linear so it allows you to jump from place to place –Markup refers to the structure.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
HTML Introduction HTML
Upgrading to XHTML DECO 3001 Tutorial 1 – Part 1 Presented by Ji Soo Yoon 19 February 2004 Slides adopted from
Tutorial 3: Adding and Formatting Text. 2 Objectives Session 3.1 Type text into a page Copy text from a document and paste it into a page Check for spelling.
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
Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.
Computer Sciences Department
11 An Introduction to HTML. 2 Objectives You will be able to Create a simple web page in HTML using a plain text editor. Publish your page on the web.
Web page - A Web page is a simple text file that contains HTML tags (code) that describe what should be displayed on the browser. -The Web browser interprets.
Creating a Simple Page: HTML Overview
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Creating a Basic Web Page
XML introduction to Ahmed I. Deeb Dr. Anwar Mousa  presenter  instructor University Of Palestine-2009.
DAT602 Database Application Development Lecture 14 HTML.
Using HTML to Create a Basic Web Page… By Josh Gallagan.
CS 299 – Web Programming and Design Introduction to HTML.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
HTML Structure & syntax
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
Week 1 Understanding the Web Design Environment. 1-2 HTML: Then and Now HTML is an application of the Standard Generalized Markup Language Intended to.
Essential Tags Web Design – Sec 3-3 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
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.
Learning Web Design: Chapter 4. HTML  Hypertext Markup Language (HTML)  Uses tags to tell the browser the start and end of a certain kind of formatting.
1 Web Developer Foundations: Using XHTML Chapter 2 Key Concepts.
HTML INTRODUCTION, EDITORS, BASIC, ELEMENTS, ATTRIBUTES.
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.
XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 8 1 Creating Effective Web Pages Creating HTML Documents Tutorial 8.
Web Page Creation Part I ST: Introduction to Web Interface Design Prof. Angela Guercio.
A Basic Web Page. Chapter 2 Objectives HTML tags and elements Create a simple Web Page XHTML Line breaks and Paragraph divisions Basic HTML elements.
1 Creating Web Pages Part 1. 2 OVERVIEW: HTML-What is it? HyperText Markup Language, the authoring language used to create documents on the World Wide.
HTML Structure & syntax. Introduction This presentation introduces the following: Doctype declaration HTML Tags, Elements and Attributes Sections of a.
HTML: Hyptertext Markup Language Doman’s Sections.
XHTML By Trevor Adams. Topics Covered XHTML eXtensible HyperText Mark-up Language The beginning – HTML Web Standards Concept and syntax Elements (tags)
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Creating XHTML Documents Essentials for.
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
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.
2.1 XHTML. Motto High thoughts must have high language. –Aristophanes.
Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley What did we learn so far? 1.Computer hardware and software 2.Computer experience.
Lesson 2 – Unit B. Quick review 1. What is the name of the eGCC host that you ftp your files? 2. What type of software do you use to create and edit web.
1 2/16/05CS120 The Information Era Chapter 4 Basic Web Page Construction TOPICS: Intro to HTML and Basic Web Page Design.
Web Design – Week 2 Introduction to website basics Website basics: How the Web Works Client / server architecture Packet switching URL components.
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.
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
Introduction to HTML.
Introduction to HTML.
Introduction to XHTML.
WEBSITE DESIGN Chp 1
An Introduction to HTML Pages
Presentation transcript:

11 Introduction to HTML

2 Objectives You will be able to Create a simple web page in HTML using a plain text editor. Publish your page on the web so that it can be seen anywhere in the world. Use character entities to include special characters in your page. 2

33 The Web’s Rulebooks The web was created to permit users to view documents. HTTP -- Hypertext Transport Protocol Defines rules for communication between a browser and a web server. Web applications must live within these rules. HTML – Hypertext Markup Language Defines rules for formatting a document that a browser will display. Web applications produce their output in this form.

4 HTTP HTTP is a client-server protocol Browser is the client. Web server is the server. Server constantly listens for request messages. The client originates the message exchange. Client sends Request. Server sends Response.

5 HTML HTML defines the content of a web page. Originally included “mark up” for page layout and appearance. Better handled by CSS today. Cascading Style Sheets HTML defines page structure. The Document Object Model Permits programmatic modification The HTML document itself is plain ASCII text.

66 Cascading Style Sheets CSS conveys the author’s intentions about how the content of a web page should be displayed. Instructions analogous to a (human) editor’s instructions to a typesetter. Center this text. Use a large sans serif font here. Make this bold. etc. Can be included within an HTML document or can be a separate file. ASCII text

77 Standards HTML standards are developed by the World Wide Web Consortium, W3C. The original HTML standard was very permissive. Lots of room for interpretation. Tolerant of errors and omissions.

88 HTML Versions HTML Version 4.01 is current. XHMTL is a version of HTML that follows the stricter rules of XML. Can be validated. Better cross browser compatibility. Version 1.1 is mainstream. Version 2 is under development. Abandoned by W3C in Draconian error handling and the WHATWG

9 HTML Versions HTML 5 is the successor to Standards work is ongoing. Considered a living document. Now referred to as simply HTML. Supported to various degrees by all widely used browsers. 9

10 HTML5 Built-in support for Video Audio Drawing Local Storage Improved separation of presentation from content CSS3 for presentation Layout, colors, fonts,...

11 How to Produce a Web Page You can use any text editor to produce your HTML file. The initial examples in this presentation were done with NotePad. There are many fancy WYSIWYG editors for HTML. Avoid these while learning HTML. Use a plain text editor and work directly with the HTML. Visual Studio also has an option to edit HTML files. Works either way: text (language aware) or WYSIWYG.

12 How the Page Layout is Determined Browsers interpret the markup as they see fit. Author has influence over the resulting layout, but not absolute control The user also influences the layout. Resize window. Set display resolution. Set font size. Different browsers may render a given page in different ways.

13 HTML Tags HTML defines a number of tags which authors can use to mark up a document. HTML tags are enclosed in angle brackets. Most appear in begin-end pairs Examples: This appears at the top of the page All visible content of the page A block of text Beginning of a new paragraph.... Multiple tags can apply to the same text, but they should be properly nested.

14 HTML Tags Some tags alter the appearance of text Examples: Some text in italics This text will be in bold Appearance tags are now obsolete but are still supported by browsers and are still widely used.

15 Cascading Style Sheets Style sheets are a better way to specify appearance.

16 Some Individual Tags Some tags stand alone. Break (Force new line.) New lines, and other white space, in the HTML document are normally not significant. The browser will wrap the text according to the size of the window. Horizontal Rule (Line across page.) The / takes the place of the end tag. Can generally be used when there is no text between the start tag and the end tag. Not necessary in old HTML, but required for valid XHMTL. Optional in HTML5.

17 Case Sensitivity Tags are not case sensitive. But upper case is considered invalid in XHTML. Recommendation: Use lower case. The Visual Studio HTML editor will help.

18 A Very Simple Web Page A very simple web page This is a very simple HTML page! I can write in Italic or Bold Or I can write in both Note nesting

19 How to View Your Web Page While developing a web page, you need to view it frequently with a browser. You can simply point your browser to a local file by typing the pathname in the URL window. Or double click on the file name or icon. Click the Reload button to get the latest version. Beware of cached copies of your page during development!

20 Simple Example in Internet Explorer Title Page was displayed from a local file.

21 Headings A Really Big Heading Next level down... A Very Small Heading

22 Headings A Page with Headings A Really Big Heading Some text to appear below a really big heading. Next level down Some text to appear below a smaller heading. A Very Small Heading Some text to appear below a very small heading.

23 Page in Chrome

24 Miscellaneous Tips What if I want to put some space into my text? Ordinarily white space in an HTML document is ignored except for producing a single space. To force the browser to leave a space use (nonbreaking space) & is a form of escape character in HTML. Everything from the & to the ; is interpreted as a character entity rather than as text to be displayed. There are many such character entities. Refer to a book or web tutorial on HTML to get the full list. Examples:

25 Miscellaneous Tips But what if I want an & to appear on my page? Write & (The character entity for &)

26 A page with nonbreaking spaces A Discourse on Nonbreaking Spaces This paragraph is indented five spaces using the   entity. The lines will wrap wherever the browser chooses, depending primarily on the current window size. If the user resizes the window, the text will be laid out again using the new window size, and the line breaks will ofen be different. Notice that this paragraph had five ASCII spaces at the start, but they did not cause the paragraph to be indented. 26 Example of Nonbreaking Spaces

27 Page in Firefox Nonbreaking spaces Ampersand within text No indentation for space characters

28 Structure of a Web Page So far we have been cheating Leaving out some of the standard parts of a web page as specified by the HTML standard. Web browsers typically do the best they can with whatever they are given. To improve the odds of your page looking as you intend on various browsers, you should strictly adhere to the standard. The Visual Studio HTML editor makes this easier.

29 Using Visual Studio for HTML From the File menu, select New File. Then in the dialog box that pops up Select Web. Select HTML Page. Click Open.

30 Using Visual Studio for HTML Click here

31 The HTML Template Initial lines identify the standard which this page will adhere to.

32 Structure of the Page

33 hello.html

34 Save As hello.html

35 Save As hello.html

36 hello.html in Chrome Double click on the file icon to open the page in your default browser. Or right click and select a browser from the “Open With” menu. End of Section