Published on

Basic HTML Presentation

  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide


  1. 1. Web Programming & XML Module Presented by Prof Venkat Krishnan
  2. 2. Who am I??? <ul><li>Prof Venkat Krishnan </li></ul><ul><li>SCJP </li></ul><ul><li>SCJD </li></ul><ul><li>Weblogic Certified Trainer </li></ul><ul><li>IBM Certified Trainer </li></ul><ul><li>NCST Trainer </li></ul><ul><li>S P Jain Management Trainer </li></ul><ul><li>MET eMBA Trainer </li></ul><ul><li>K J Somaiya Management Trainer </li></ul>
  3. 3. <ul><li>Visiting Faculty at: </li></ul><ul><ul><li>S.P.Jain Inst of Management </li></ul></ul><ul><ul><li>Somaiya Institute of Management </li></ul></ul><ul><ul><li>CMIT </li></ul></ul><ul><li>Corporate Trainings offered at: </li></ul><ul><ul><li>Air India </li></ul></ul><ul><ul><li>ABN Amro </li></ul></ul><ul><ul><li>Kale Consultants </li></ul></ul><ul><ul><li>Supreme Technologies </li></ul></ul><ul><ul><li>IDBI </li></ul></ul><ul><ul><li>Associated with: </li></ul></ul><ul><ul><li>Champlain College (UK) </li></ul></ul><ul><ul><li>Southern New Hampshire (UK) </li></ul></ul><ul><ul><li>Malboro College (US) </li></ul></ul><ul><ul><li>Charles Strut University (Aus) </li></ul></ul><ul><ul><li>Northwood University (US) </li></ul></ul>Prof.Venkat Krishnan
  4. 4. Topics Covered in this Module <ul><li>Internet & HTML </li></ul><ul><li>CSS </li></ul><ul><li>JavaScript </li></ul><ul><li>ASP </li></ul><ul><li>XML </li></ul><ul><li>DOM & Data Binding </li></ul><ul><li>XSL </li></ul><ul><li>XSLT </li></ul>
  5. 5. Brief history of the Internet <ul><li>The Internet has revolutionized the computer and communications world like nothing before. </li></ul><ul><li>The invention of the telegraph, telephone, radio, and computer set the stage for this unprecedented integration of capabilities. </li></ul><ul><li>The Internet is at once </li></ul><ul><li>a world-wide broadcasting capability </li></ul><ul><li>a mechanism for information dissemination and </li></ul><ul><li>A medium for collaboration and interaction between individuals and their computers without regard for geographic location. </li></ul>
  6. 6. <ul><li>The first recorded description of the social interactions that could be enabled through networking was a series of memos written by J.C.R. Licklider of MIT in August 1962 discussing his &quot;Galactic Network&quot; concept. He envisioned a globally interconnected set of computers through which everyone could quickly access data and programs from any site. </li></ul><ul><li>In late 1966 MIT researcher Lawrence G. Roberts went to DARPA (Defense Advanced Research Projects Agency) to develop the computer network concept and quickly put together his plan for the &quot;ARPANET&quot; , publishing it in 1967. </li></ul>
  7. 7. <ul><li>In October 1972 Kahn organized a large, very successful demonstration of the ARPANET at the International Computer Communication Conference (ICCC). </li></ul><ul><li>This was the first public demonstration of this new network technology to the public. It was also in 1972 that the initial &quot;hot&quot; application, electronic mail, was introduced. </li></ul>
  8. 8. Technical Words <ul><li>Client side v/s Server side Programming </li></ul><ul><li>Web Server </li></ul><ul><li>Web Server Software </li></ul><ul><li>Web Client / Browser </li></ul><ul><li>URL </li></ul><ul><li>Domain (Physical Domain / Virtual Domain) </li></ul><ul><li>wwwroot / index.html </li></ul>
  9. 9. <ul><li>TCP / IP </li></ul><ul><li>Physical Layer (pure Hardware) </li></ul><ul><li>Data Link Layer (splitting data into packets) </li></ul><ul><li>Network Layer (sending to the correct network address and best route) </li></ul><ul><li>Transport Layer (routing data) </li></ul><ul><li>Application Layer </li></ul>
  10. 10. <ul><li>Host </li></ul><ul><li>InterNIC </li></ul><ul><li>ISP </li></ul><ul><li>Structure of an IP Address (Eight bits each) </li></ul><ul><li>WWW </li></ul><ul><li>FTP </li></ul><ul><li>Telnet </li></ul>
  11. 11. What is Markup? <ul><li>HTML is one of many markup languages that have appeared in recent years. </li></ul><ul><li>In brief, a markup language provides guidelines for adding markup—in the form of special symbols—to text documents. These symbols describe the parts of the document. </li></ul><ul><li>Markup is needed because computers are quite stupid when it comes to understanding text. A computer can’t really tell whether a certain portion of a text is an abstract, a title, a heading, or a paragraph. Without some kind of additional coding, the computer doesn’t know how to display the text so that it looks like an actual document. </li></ul>
  12. 12. <ul><li>Word processing programs provide the necessary coding by means of proprietary formatting codes, but these have a gigantic downside: They work only if you’re looking at the document using the same word processing program and type of computer that created it. If you ever tried to exchange a WordPerfect file with a Macintosh MS Word user, you can understand the difficulties involved. </li></ul>
  13. 13. HTML—a hypertext markup language <ul><li>What’s hypertext? In brief, hypertext is a way of organizing information so readers can choose their own path through the material. Instead of clicking through sequentially organized pages, a hypertext user clicks specially highlighted text, called a hyperlink (or just a link for short), to go directly to information of interest. </li></ul><ul><li>When you mark up a document with HTML, you can define some of the text as a link, within which you embed the computer address of another resource on the Internet. This could be a document, a movie, a sound, an animation, or a file to download. </li></ul>
  14. 14. <ul><li>Eroding the structure/presentation distinction </li></ul><ul><li>The whole purpose of a markup language lies in separating structure from presentation and, in so doing, enabling content developers to create documents that can be displayed faultlessly on any type of computer. </li></ul><ul><li>But this distinction hasn’t fared well. By the time HTML got to Version 3.2, it had been seriously eroded. The reason lies in the Web’s rapid commercialization. Actually, HTML was initially designed to enable physics researchers to make their preliminary papers available to other physics researchers. </li></ul><ul><li>Realizing that something drastic had to be done to rescue HTML, the World Wide Web Consortium (W3C)—the nonprofit, standards-setting body responsible for HTML—has published a specification for a new version of HTML, Version 4.01. </li></ul>
  15. 15. <ul><li>Every organization has its own rule-making body. In the case of the Web, the rule-making body is the World Wide Web Consortium (W3C). The W3C is composed of representatives from over 400 member companies who want to have a say in the standards. The W3C tries to balance the interests of the academy, the companies producing the Web browsers (notably Netscape and Microsoft), and the technology. </li></ul>
  16. 16. Syntax of HTML <ul><li>When you learn a language, you need to learn rules, called syntax . </li></ul><ul><li>When you write your HTML, you use elements </li></ul><ul><li>to define the structure of the document </li></ul><ul><li>to define the presentation of your document, to define links to other documents and </li></ul><ul><li>to specify desired behavior. </li></ul><ul><li>Elements vs. Tags </li></ul><ul><li>Understanding Your Options: Attributes </li></ul>
  17. 17. <ul><li>Even elements have parts – Nesting (Table) </li></ul><ul><li>Every element has a name . </li></ul><ul><li>The start tag is the element name surrounded by angle brackets. </li></ul><ul><li>The end tag always starts with a slash, has the element name, and is surrounded by angle brackets. </li></ul><ul><li>Most elements have content, which occurs between the start and the end tags. </li></ul><ul><li>Some elements have no content. (BR) </li></ul><ul><li>Some elements have no end tags. ( LI and p) </li></ul>
  18. 18. Features of Elements <ul><li>Couples only </li></ul><ul><li>Always shop from a list (valign in images) </li></ul><ul><li>In the case of valign (an attribute frequently used to tell the browser where on the page you want an image or a table to appear, relative to text), your choices are top, middle, bottom, and baseline. </li></ul><ul><li>Please take a number (when you define a table, you may want the first column to be 25 percent of the screen width, the second column to be 50 percent of the screen width, and the third column to be 25 percent of the screen width.) </li></ul><ul><li>The colors of the world </li></ul>
  19. 19. Using Special Characters: Entities <ul><li>entities are simply characters you may want to display that don’t appear on your keyboard or are characters with special significance to HTML (notably <,>,&, and “). The most common of these are ( © ) (copyright) and ( ™ ) (trademark). Whichever way you choose, you will find all entities begin with an ampersand (&) and end with a semicolon ( ; ): </li></ul><ul><li>Using character notation. &copy; is the entity for the copyright symbol </li></ul><ul><li>Using decimal notation. The decimal representation of a copyright symbol is © </li></ul><ul><li><p>The paragraph element identifies some text as a paragraph:</p> </li></ul><ul><li><p>&lt;p&gt;This is a paragraph.&lt;/p&gt;</p> </li></ul>
  20. 20. Adding Comments to Your HTML <ul><li>Begin your comment with <!--. Any text you put after the two dashes is comment. The browser will not even try to read it. Even if you use special characters, such as ampersands and slashes and quotation marks and angle brackets, your browser ignores everything it comes across until it sees -->. </li></ul><ul><li>Line Break and Horizontal Lines </li></ul>
  21. 21. The Basic Structure of an HTML Document: <ul><li>1. Version information. This is also called the document type declaration used by this document. <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4-01 Frameset//EN”“ TR/html4/frameset.dtd”> </li></ul><ul><li>2. The HEAD. The HEAD, in addition to being part of the HTML element, is an element of its own. The HEAD element can contain the title and Metadata. </li></ul><ul><li>3. The BODY. Everything else you want to put into an HTML document belongs in the BODY . The BODY, like the HEAD, is also an element. </li></ul>
  22. 22. First Html <ul><li><! DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4-01 Frameset//EN” </li></ul><ul><li>“”> </li></ul><ul><li><HTML> </li></ul><ul><li><HEAD> </li></ul><ul><li><TITLE>My Valid HTML document</TITLE> </li></ul><ul><li></HEAD> </li></ul><ul><li>If this had been an actual HTML document, this is where we would have put the content. </li></ul><ul><li></BODY> </li></ul><ul><li></HTML> </li></ul>
  23. 23. <ul><li>What we haven’t mentioned yet is that HTML itself is an element. The HTML element has both a start tag and an end tag. </li></ul><ul><li>The start tag should be placed after the version information and before the start tag of the HEAD element. </li></ul><ul><li>The end tag goes at the very end of your document, after the end tag of the BODY element. </li></ul>
  24. 24. Title <ul><li>Search engines use the contents of the <title> bar when they list Web pages in response to a query. </li></ul><ul><li>The title is also used for Bookmarks and in a browser’s History; therefore, keeps your titles short and sweet. </li></ul>
  25. 25. <ul><li><!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN&quot; </li></ul><ul><li>“;> </li></ul><ul><li><html xmlns=&quot;;> </li></ul><ul><li><head> </li></ul><ul><li><title>Venkat IT Consulting Service</title> </li></ul><ul><li><meta name=&quot;kwrd&quot; content=&quot;IT consulting, SCJP, java guru, SCWCD&quot; /> </li></ul><ul><li><meta name=&quot;desc&quot; content=&quot;Training organization with experise&quot; /> </li></ul><ul><li></head> </li></ul><ul><li></html> </li></ul>
  26. 26. <ul><li>Although keywords and page descriptions are optional, search engines commonly use them to collect information about your Web site. </li></ul><ul><li>Be sure to include detailed and concise information in your <meta /> tag if you want your Web site discovered by search engine robots. </li></ul>
  27. 27. Automatically redirecting users to another page <ul><li>You can use metadata in your header to send messages to Web browsers about how they should display or otherwise handle your Web page. Web builders commonly use the <Meta /> element this way to automatically redirect page visitors from one page to another. </li></ul><ul><li>For example, if you’ve ever come across a page that says this page has moved. Please wait 10 seconds to be automatically sent to the new location. (Or something similar), you’ve seen this trick at work. </li></ul>
  28. 28. <ul><li>To use the <meta /> element to send messages to the browser, here are the general steps you need to follow: </li></ul><ul><li>1. Use the http-equiv attribute in place of the name attribute. </li></ul><ul><li>2. Choose from a predefined list of values that represents instructions for the browser. </li></ul><ul><li>These values are based on instructions that you can also send to a browser in the HTTP header, but changing an HTTP header for a document is harder than embedding the instructions into the Web page itself. </li></ul>
  29. 29. <ul><li>To instruct a browser to redirect users from one page to another, here’s what you need to do in particular: </li></ul><ul><li>1. Use the <meta /> element with http-equiv=”refresh” . </li></ul><ul><li>2. Adjust the value of content to specify how many seconds before the refresh happens and what URL you want to jump to. </li></ul>
  30. 30. <ul><li>Older Web browsers may not know what to do with <meta /> elements that use the http-equiv element to create a redirector page. </li></ul><ul><li>Be sure to include some text and a link on your page to enable a visitor to link manually to your redirector page if your <meta /> element fails to do the job. </li></ul><ul><li>If a user’s browser doesn’t know what to do with your redirector information, the user simply clicks the link in the page body to go to the new page. </li></ul>
  31. 31. Attributes of Horizontal Line <ul><li>width: Specifies line width either in pixels or by percentage of display area width (which we call “the page” in discussion that follows) . For example, a rule can be 50 pixels wide or take 75 percent of the page. </li></ul><ul><li>size: Specifies the height of the line in pixels. The default is 1 pixel. </li></ul><ul><li>align: Specifies the horizontal alignment of the rule as either left (the default), center, or right. If you don’t define a width for your rule, it takes the entire width of the page. The alignment won’t make any difference. </li></ul><ul><li>noshade: Specifies a solid line with no shading. By default, most browsers display hard rules with a shade. </li></ul>
  32. 32. <ul><li>Text Formatting </li></ul><ul><li>Pre-Formatted Text </li></ul><ul><li>Text Direction </li></ul>
  33. 33. Paragraphs <ul><li>Paragraphs are used more often in Web pages than any other kind of text block. HTML browsers don’t recognize the hard returns that you enter when you create your page inside an editor. You must use a <p> element to tell the browser to separate the contained block of text as a paragraph. </li></ul><ul><li>To create a paragraph, follow these steps: </li></ul><ul><li>1. Add <p> in the body of the document. </li></ul><ul><li>2. Type the content of the paragraph. </li></ul><ul><li>3. Add </p> to close that paragraph. </li></ul>
  34. 34. Paragraph Alignment <ul><li>By default, the paragraph aligns to the left. You can use the align attribute with a value of center, right, or justify to override that default and control the alignment for any paragraph </li></ul>
  35. 35. Headings <ul><li>HTML includes six elements to help you define six different heading levels in your documents: </li></ul><ul><li><h1> is the most prominent heading (Heading 1) </li></ul><ul><li><h6> is the least prominent heading (Heading 6) </li></ul>
  36. 36. Quotation <ul><li>A block quote is a long quotation or excerpt from a printed source that you set apart on your page. Most Web browsers display block-quote content with a slight left indent. </li></ul>
  37. 37. Delete – Insert Text <ul><li>Most browsers will overstrike deleted text and underline inserted text. </li></ul><ul><li>Some older browsers will display deleted or inserted text as plain text. </li></ul>
  38. 38. Hyper Links <ul><li>Within a page on the same site </li></ul><ul><li>Link to a page on the internet </li></ul><ul><li>Images as a link </li></ul><ul><li>Opening Link in a New Window </li></ul><ul><li>Linking to a location in the same page </li></ul><ul><li>Mail to link </li></ul><ul><li>Complicated Mail to link </li></ul>
  39. 39. Framesets <ul><li>The <frameset> tag defines how to divide the window into frames </li></ul><ul><li>Each frameset defines a set of rows or columns </li></ul><ul><li>The values of the rows/columns indicate the amount of screen area each row/column will occupy </li></ul>
  40. 40. <ul><li>Important: You cannot use the <body></body> tags together with the <frameset></frameset> tags! </li></ul><ul><li>However, if you add a <noframes> tag containing some text for browsers that do not support frames, you will have to enclose the text in <body></body> tags! See how it is done. </li></ul>
  41. 41. <ul><li>Multiple Columns </li></ul><ul><li>Multiple Rows </li></ul><ul><li>NoFrame Tag </li></ul><ul><li>Mixing Frames </li></ul><ul><li>NoResize Attribute of Frame </li></ul><ul><li>Inline Frames </li></ul>
  42. 42. Tables <ul><li>Sample Examples of multiple rows and columns </li></ul><ul><li>Vertical Header </li></ul><ul><li>Cell Padding </li></ul><ul><li>Cell Spacing </li></ul><ul><li>Background Color / Image to a Table </li></ul><ul><li>Background Color / Image to a Cell in the Table </li></ul><ul><li>Table Align </li></ul><ul><li>Table Frame </li></ul>
  43. 43. Lists <ul><li>Un-Ordered Lists </li></ul><ul><li>Ordered Lists </li></ul><ul><li>Definition Lists </li></ul><ul><li>Numbered Lists </li></ul><ul><li>Nested Lists </li></ul>
  44. 44. HTML Forms <ul><li>Text Field </li></ul><ul><li>Password Field </li></ul><ul><li>Checkbox </li></ul><ul><li>Drop Down List </li></ul><ul><li>Text Area </li></ul><ul><li>Radio Button </li></ul>
  45. 45. Images <ul><li>Background Image </li></ul><ul><li>Aligning Images </li></ul><ul><li>Floating Images </li></ul><ul><li>Image Maps </li></ul>