1 Introduction to HTML Joshua S. Simon Collective Technologies.

Slides:



Advertisements
Similar presentations
Introduction to HTML. A Web Page is.. An ASCII (text) file.. Whose filename ends with.htm or.html –index.html or cookie-recipe.htm Contains HTML tags.
Advertisements

HTML popo.
Web Development & Design Foundations with XHTML
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
HTML. The World Wide Web Protocols Addresses HTML.
Chapter 2 HTML Basics Key Concepts
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
XHTML Basics Web pages used to be written exclusively in html
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
< REVIEW > How HTML looks like (Overview)? Page title here Main page content comes here.
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.
XHTML II DIGITAL MEDIA: COMMUNICATION AND DESIGN F2007.
CS /13 DePaul University SNL 262 Advanced Web Page Design Review & Introduction - I Instructor: David A. Lash.
Web Page Development Identify elements of a Web Page Start Notepad
Marking Up With Html: A Hypertext Markup Language Primer
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.
Computer Science 101 HTML. World Wide Web Invented by Tim Berners-Lee at CERN, the European Laboratory for Particle Physics in Geneva, Switzerland (roughly.
ULI101: XHTML Basics (Part III) Introduction to XHTML / Continued … Block-Level vs. Inline Elements (tags) Manipulating Text,  , Text Characteristics,,,,,,,,,,,,,,,
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.
Chapter 2 HTML (Hypertext Markup Language) Part I.
Computer Science 101 Introduction to Web Pages. Origins of the Web Vannevar Bush (Memex, 1945) Ted Nelson (Xanadu, 1968) Doug Englebart and Alan Kay (
Programming I 2 nd lecture. Block-level and inline elements BlockInline block-level elements generally can contain text, data, inline elements, or other.
HTML HyperText Markup Language Constantly evolving - extra facilities being added regularly Java applets and JavaScript used to increase functionality.
HTML (HyperText Markup Language)
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
Understanding HTML Code
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.  Describe the anatomy of a web page  Format the body of a web page with block-level elements including headings, paragraphs, lists, and blockquotes.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
1 Web Developer Foundations: Using XHTML Chapter 2 Key Concepts.
1.NET Web Forms HTML Introduction © 2002 by Jerry Post.
CSCI 1101 Intro to Computers
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.
Creating Web Pages with Links, Images, and Formatted Text Information Presented by S. Cox.
Just Enough HTML How to Create Basic HTML Documents.
HTML,DHTML & Javascript/Session1/1 of 39 Introduction and Basic Tags Session 1 of Using HTML, DHTML & JavaScript.
INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,
Chapter 13. Applets and HTML HTML Applets Computer Programming with JAVA.
HTML: Hyptertext Markup Language Doman’s Sections.
Agenda Block-Level vs. Inline Elements (tags) Manipulating Text,  , Text Characteristics,,,,,,,,,,,,,,, Font Attributes: size, color, face Horizontal.
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
HTML for ISD Brown Bag Presentation Session 2 What we will cover:  Basics of HTML  How to make your first page  Links  Text formatting.
HTML HyperText Markup Language ©Richard L. Goldman July 15, 2003.
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.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Introduction to HTML C151 Multi-User Operating Systems.
Basic HTML Programming Technology Education Ellsworth Community Middle School Communication Systems.
1 HTML: HyperText Markup Language Representation and Management of Data on the Internet.
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.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
1999, COMPUTER SCIENCE, BUU Introduction to HTML Seree Chinodom
HTML – The Basics Rebecca Shillingburg
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.
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.
Introduction to HTML.
HTML Basics.
Marking Up with XHTML Tags describe how a web page should look
Introducing XHTML: Module D: Text, Lists & Links
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Chapter 4: Marking Up With HTML: A Hypertext Markup Language Primer
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
COMS 161 Introduction to Computing
Digging in a little deeper
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

1 Introduction to HTML Joshua S. Simon Collective Technologies

2 Overview  What a URL is  How the HTTP protocol works  How to create a simple HTML document  How to add hypertext links  How to add color and graphics

3 Uniform Resource Locator (URL)  Format: protocol :// user : server : port / path / document [# reference |? query ]  Not all fields always required

4 HyperText Transfer Protocol (HTTP)  Client sends request ( HEAD, GET, PUT )  Server replies with  response code (3-digit)  response text (string)  document (depending on code)  Client displays document or error to user

5 Creating HTML documents  Plain text file  Specific format  Markup tags

6 Format of an HTML document  Optional description  HTML container  Header  Body  Address

7 A simple HTML document  HTML code: Hello, world!

8 A simple HTML document: results  Generates:

9 Adding a title to the header  The HEAD container  The TITLE container  The META tag  The LINK container

10 Using HEAD and TITLE  HTML code fragment: My First HTML

11 Using HEAD and TITLE : results  Generates:

12 Body of the document  Default colors typically black-on-gray, blue links  Can change them on a per-document basis

13 Changing colors  BODY container options:  BGCOLOR -- Document background color  TEXT -- Color of the text  ALINK -- Color of actively-selected links  LINK -- Color of unfollowed links  VLINK -- Color of followed links  Colors in the form # rrggbb

14 Example of new colors 

15 Example of new colors: results  Generates:

16 Making the body text meaningful  “Hello world” isn’t too useful  Document should have utility or nobody will use (visit) it

17 Body text tags  Creating headers  Creating paragraphs  Creating lists  Adding comments inside the code

18 Creating headers  The H1 through H6 header containers  Generates:

19 Creating paragraphs  P container defines a paragraph  BR tag creates a line break  HR tag creates a horizontal line  PRE container defines preserved text  CODE container defines code examples

20 Ordinary paragraphs  Can align with ALIGN={LEFT|CENTER|RIGHT}  This is a paragraph. The lines will wrap around in the browser until someone tells them to stop. I could go on and on and on here just to have a longer paragraph, but I won’t. Much.

21 Ordinary paragraphs: result  Generates:

22 Line break  If we put a line break tag in the middle of the paragraph: This is a paragraph. The lines will wrap around in the browser until someone tells them to stop. I could go on and on and on here just to have a longer paragraph, but I won’t. Much.

23 Line break: result  We get:

24 Horizontal rules as separators  What if we wanted to put a horizontal line across the page before the paragraph? This is a paragraph. The lines will wrap around in the browser until someone tells them to stop. I could go on and on and on here just to have a longer paragraph, but I won’t. Much.

25 Horizontal rules: results

26 Creating lists  Bullet (unordered) list  Ordered list  Definitions list  Other lists

27 Bullet lists  UL container defines list  LI tag specifies an item  Options to both:  TYPE={CIRCLE|DISC|SQUARE}

28 Bullet lists: example  HTML HTTP CGI

29 Bullet lists: result

30 Ordered lists  OL container defines list  LI tag specifies an item  Options to both:  TYPE={A|a|I|i|1}  START= n

31 Ordered lists: example  Peel the banana Slice banana into dish Add three scoops of ice cream Add chocolate sauce

32 Ordered lists: result

33 Definition lists  DL container defines list  Option COMPACT suppresses automatic newline between term and definition  DT tag defines the term  DD tag defines the definition

34 Definition lists: example  HTTP The HyperText Transfer Protocol; the means by which web browsers and web servers exchange information.

35 Definition lists: result

36 Other list containers  BLOCKQUOTE -- offset quotation by an indent level  DIR -- directory listing  MENU -- menu of options

37 Code and examples  Other paragraph containers for code and examples include:  PRE Preserve  XMP Example (deprecated; unused)  CODE Code

38 PRE container  Defines the font as monospaced (Courier)  Still interprets HTML inside the PRE container  Example (all on one line): This is an example of PRE.

39 CODE container  Just like PRE except  Dont need to escape and &  HTML inside the CODE container is not interpreted  Example (all on one line): This is an example of CODE.

40 PRE and CODE results  The two examples generate:

41 Adding comments  Asymmetric container tags  <!-- to start a comment  --> to end a comment  Spaces required:

42 Comment examples 

43 Formatting characters  Logical formatting  Physical formatting  Font changes  Special characters

44 Logical character formatting  CITE for citations (usually italics)  EM for emphasis (usually italics)  STRONG for strong emphasis (usually boldface)

45 Physical character formatting  B for boldface  I for italics  TT for typewriter-text  U for underlining

46 Character formatting examples  The following characters are emphasized and given strong emphasis. Meanwhile, these are in boldface, italics, underlining, and typewriter text.

47 Character formatting results

48 Changing the font  The FONT container can adjust size  SIZE={1..7} sets “absolute” size  SIZE=+ n goes n sizes higher (maximum 7)  SIZE=- n goes n sizes lower (minimum 1)

49 Changing the font: example  This text is normal, this is smaller, this is bigger.

50 Changing the font: results

51 Handling special characters  HTML reserves some characters: &  Use character escapes to generate them in a document  < generates <  > generates >  & generates &

52 Other special characters  Can generate other symbols:  © generates ©  ® generates ®  " generates a quotation mark  &# nnn ; generates ASCII character nnn  List is online at pub/WWW/MarkUp/html-spec/ html-spec_13.html

53 Hypertext references  Static documents are nice  Hypertext-linked documents are better  A container provides hypertext anchors

54 Hypertext references  Provide a link to somewhere:  Provide a destination for a link:

55 Hypertext reference examples  Click here for the CT home page.  definition of HTTP  HyperText Transfer Protocol (HTTP)...

56 Address block  Typically in italics  Should contain contact information  mailto: link to author  revision date

57 Address block example  Page last updated April 3, 1997, by Josh Simon.

58 Address block results

References  HTTP specification:  HTML specification:

60 Questions