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.

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

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.
OMT II Mam Saima Gul. * Static web page * a web page with contents that remain fixed and unchanged once it has been created by the author Web server Client.
How Tags are used to form your Web Page
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
HTML and XHTML Controlling the Display Of Web Content.
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.
HTML Computing Concepts HTML - An Introduction 1.
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.
Chapter 14 Introduction to HTML
Basics of HTML.
CpSc 462/662: Database Management Systems (DBMS) (TEXNH Approach) HTML Basics James Wang.
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
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.
XML introduction to Ahmed I. Deeb Dr. Anwar Mousa  presenter  instructor University Of Palestine-2009.
_ HTML, XHTML & CSS Sami Niemelä | Module 1: Introduction to digital media: Day 02.
CO1552 – Web Application Development Lists, Special Characters, and Tables.
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.
 HTML stands for Hyper Text Mark-up Language. The coding language used to create documents for the World Wide Web  HTML is composed of tags. HTML tags.
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.
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.
Creating Webpage Using HTML
Chapter 2 Introduction to HTML. Learning Outcomes Describe Hypertext Markup Language (HTML). Introduce HTML syntax. Recognize basic structure of HTML:
HTML,DHTML & Javascript/Session1/1 of 39 Introduction and Basic Tags Session 1 of Using HTML, DHTML & JavaScript.
Chapter 8 Introduction to HTML and Applets Fundamentals of Java.
Web Technologies COMP6115 Session 2: Planning, Designing, Constructing and Testing Static Web Sites Dr. Paul Walcott Department of Computer Science, Mathematics.
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
Introduction to HTML Wah Yan College (Hong Kong) Mr. Li C.P.
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.
HTML Basics BCIS 3680 Enterprise Programming. Web Client/Server Architecture 2  Your browser (the client) requests a Web page from a remote computer.
Lec.10 + (Chapter 8 & 9) GUI Java Applet Jiang (Jen) ZHENG July 6 th, 2005.
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. 2 Agenda Discussion of Lab1 HTML Origins HTML Standards HTML Syntax –Basics –Tables 2.
HTML Basics. HTML Introduction Stands for HyperText Markup Language. HTML files are plain text files with mark ups. Some characteristics of HTML: –No.
Lecture: Web Design Assis. Prof. Freshta Hanif Ehsan Faculty of Computer Science Kabul Polytechnic University Spring Semester
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.
COP 3813 Intro to Internet Computing Prof. Roy Levow Lecture 2.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
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
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
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.
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.
NOTEPAD++ Lab 1 1 Riham ALSmari. Why Notepad++ ?  Syntax highlighting  Tabbed document interface  Zooming  Indentation code  Find and replace over.
Marking Up with XHTML Tags describe how a web page should look
Web Design and Development
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:

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 by interpreting the HTML language HTML pages may have other languages embedded in them CSS -- Cascading Style Sheets JavaScript -- a programming language vaguely like Java

3 Example of HTML factorial factorial Definition: The factorial of an integer n ≥ 0, written n!, is n × n-1 ×... × 2 × 1. In particular, 0! = 1.

4 Why do we care? Javadoc comments are written in HTML If you know a little HTML, you can write much better- looking comments Applets are normally embedded in a web page You need to know enough HTML to construct a web page with an applet in it You do not need to know HTML to run an applet from an IDE HTML is the language of the World Wide Web Java is an excellent language for web programming

5 HTML Files An HTML file is a plain 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

6 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 A few tags, such as (line break) are not nested and have no end tag HTML tags are not case sensitive; means the same as Lowercase tags are preferable

7 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!

8 Text in HTML Anything in the body of an HTML document, unless marked otherwise, is text To make text italic, surround it with and tags To make text boldface, surround 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

9 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

10 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

11 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 If a tag has more than one attribute, they can be in any order

12 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

13 Example table Name Phone Dick Jane Sally

14 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 Hence, to display if (x < 0) return "negative"; you need to write if (x < 0) return "negative";

15 Applets in HTML To put an applet into an HTML page, you use the tag, which has three required attributes, code (the class file) and width and height (in pixels) Example: If your applet contains several classes, you should jar them up; in this case you also need the archive attribute:

16 Applets with parameters You can pass parameters to your applet from your HTML page: The applet can retrieve the parameters like this: String message = getParameter("message"); String sizeAsString = getParameter("arraySize"); All parameters are passed as String s, so you may need to do some conversions: try { size = Integer.parseInt (sizeAsString) } catch (NumberFormatException e) {…}

17 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 (or similar) is a great way to see how things are done in HTML HTML sometimes has other things mixed in (such as forms, DHTML, and JavaScript), so if it doesn’t look like HTML, it probably isn’t

18 The End