Html

3,136 views

Published on

Published in: Technology, Design
1 Comment
0 Likes
Statistics
Notes
  • very nice and brief presentation
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

No Downloads
Views
Total views
3,136
On SlideShare
0
From Embeds
0
Number of Embeds
11
Actions
Shares
0
Downloads
99
Comments
1
Likes
0
Embeds 0
No embeds

No notes for slide

Html

  1. 1. HTML: 4:0 The Basics
  2. 2. What is the World Wide Web <ul><li>The World Wide Web (WWW) is most often called the Web . </li></ul><ul><li>The Web is a network of computers all over the world . </li></ul><ul><li>All the computers in the Web can communicate with each other . </li></ul><ul><li>All the computers use a communication standard called HTTP . </li></ul>
  3. 3. How does WWW work? <ul><li>Web information is stored in documents called Web pages . </li></ul><ul><li>Web pages are files stored on computers called Web servers . </li></ul><ul><li>Computers reading the Web pages are called Web clients . </li></ul><ul><li>Web clients view the pages with a program called a Web browser . </li></ul><ul><li>Popular browsers are Internet Explorer and Mozilla Firefox . </li></ul>
  4. 4. What programs can you use to write HTML Documents? <ul><li>Notepad-This come with every windows PC. It is a free word processing tool. Note: you must save an HTML document with the extension or notepad will save it as a *.txt file which is unusable on the internet. </li></ul><ul><li>Textpad: This is a free downloadable program you can use to create HTML documents. This program will color code the HTML tags and save the document in HTML format. </li></ul>
  5. 5. What programs can you use to write HTML Documents? <ul><li>HTML KIT- This is a free program that allows you to write html code and create CSS. </li></ul><ul><li>Word: you can write HTML code in this purchased program but be aware it adds extra code to you document and you have load the file in order to view the document. </li></ul><ul><li>Dreamweaver: this is a purchased program. This program is called and editor. It allows you to click on icons instead of actually typing in the code. </li></ul>
  6. 6. How does the browsers fetch pages? <ul><li>A browser fetches a Web page from a server by a request . </li></ul><ul><li>A request is a standard HTTP request containing a page address . </li></ul><ul><li>A page address looks like this: http://www.someone.com/page.htm. </li></ul>
  7. 7. How do Browsers display the pages? <ul><li>All Web pages contain instructions for display </li></ul><ul><li>The browser displays the page by reading these instructions . </li></ul><ul><li>The most common display instructions are called HTML tags . </li></ul><ul><li>HTML tags look like this <p>This is a Paragraph</p>. </li></ul>
  8. 8. Browsers <ul><li>Remember Not all browser are the same. What looks good in one may look terrible in others. </li></ul><ul><li>IE </li></ul><ul><li>Netscape </li></ul><ul><li>Firefox </li></ul><ul><li>Opera </li></ul>
  9. 9. Who is making Web Standards <ul><li>The Web standards are not made up by Netscape or Microsoft. </li></ul><ul><li>The rule-making body of the Web is the W3C . </li></ul><ul><li>W3C stands for the World Wide Web Consortium . </li></ul><ul><li>W3C puts together specifications for Web standards . </li></ul><ul><li>The most essential Web standards are HTML, CSS and XML . </li></ul><ul><li>The latest HTML standard is XHTML 1.0 . </li></ul>
  10. 10. What is an HTML File? <ul><li>HTML stands for H yper T ext M arkup L anguage </li></ul><ul><li>An HTML file is a text file containing small markup tags </li></ul><ul><li>The markup tags tell the Web browser how to display the page </li></ul><ul><li>An HTML file must have an htm or html file extension </li></ul><ul><li>An HTML file can be created using a simple text editor </li></ul>
  11. 11. How to name your document <ul><li>Make sure the folder which contains your site is named appropriately. Be specific and not ambiguous. DO NOT use capital letters or spaces. </li></ul><ul><li>Your home page (the very first page a viewer sees) is always called index. </li></ul><ul><li>All other page must have appropriate names which represent what content is on that page. They also must NOT have capital letters and spaces. </li></ul>
  12. 12. Format of an HTML Document <ul><li><HTML> </li></ul><ul><li><HEAD> </li></ul><ul><li><TITLE>My First Page</TITLE> </li></ul><ul><li></HEAD> </li></ul><ul><li><BODY> </li></ul><ul><li></BODY> </li></ul><ul><li></HTML> </li></ul>
  13. 13. EXPLAINATION OF TAGS <ul><li>The first tag in your HTML document is <html>. This tag tells your browser that this is the start of an HTML document. The last tag in your document is </html>. This tag tells your browser that this is the end of the HTML document. </li></ul><ul><li>The text between the <head> tag and the </head> tag is header information. Header information is not displayed in the browser window. </li></ul><ul><li>The text between the <title> tags is the title of your document. The title is displayed in your browser's caption. </li></ul><ul><li>The text between the <body> tags is the text that will be displayed in your browser. </li></ul>
  14. 14. HTML TAGS <ul><li>HTML tags are used to mark-up HTML elements </li></ul><ul><li>HTML tags are surrounded by the two characters < and > </li></ul><ul><li>The surrounding characters are called angle brackets </li></ul><ul><li>HTML tags normally come in pairs like <table> and </table> </li></ul><ul><li>The first tag in a pair is the start tag, the second tag is the end tag </li></ul><ul><li>The text between the start and end tags is the element content </li></ul><ul><li>HTML tags are not case sensitive, <table> means the same as <TABLE> </li></ul>
  15. 15. Tag Attributes <ul><li>Tags can have attributes . Attributes can provide additional information about the HTML elements on your page. </li></ul>
  16. 16. HTML ELEMENTS <ul><li>This is an HTML element: </li></ul><ul><ul><li><strong> This text is bold</strong> </li></ul></ul><ul><li>The HTML element starts with a start tag : <strong> The content of the HTML element is: This text is bold The HTML element ends with an end tag : </strong> </li></ul>
  17. 17. Tag Attributes <ul><li>Tags can have attributes . Attributes can provide additional information about the HTML elements on your page. </li></ul><ul><li>This tag defines the body element of your HTML page: <body>. With an added bgcolor attribute, you can tell the browser that the background color of your page should be red, like this: <body bgcolor=&quot;red&quot;>. </li></ul><ul><li>Attributes always come in name/value pairs like this: name=&quot;value&quot;. </li></ul><ul><li>Attributes are always added to the start tag of an HTML element. </li></ul>
  18. 18. Viewing Source Code <ul><li>To view any source code, all you have to do is in a browser go to edit---view source. Notepad will open to view the source. </li></ul>
  19. 19. Basic HTML Tags <ul><li>Headings </li></ul><ul><ul><li>Headings are defined with the <h1> to <h6> tags. <h1> defines the largest heading. <h6> defines the smallest heading. </li></ul></ul><ul><ul><li>HTML automatically adds an extra blank line before and after a heading. </li></ul></ul>
  20. 20. Basic HTML Tags <ul><li>Paragraphs </li></ul><ul><ul><li>Paragraphs are defined with the <p> </p>tag. </li></ul></ul><ul><ul><li>HTML automatically adds an extra blank line before and after a paragraph. </li></ul></ul>
  21. 21. Basic HTML Tags <ul><li>Line Breaks </li></ul><ul><ul><li>The <br> tag is used when you want to end a line, but don't want to start a new paragraph. The <br> tag forces a line break wherever you place it. </li></ul></ul><ul><ul><li>The <br> tag is an empty tag. It has no closing tag. </li></ul></ul>
  22. 22. Basic HTML Tags <ul><li>Comments in HTML </li></ul><ul><ul><li>The comment tag is used to insert a comment in the HTML source code. A comment will be ignored by the browser. You can use comments to explain your code, which can help you when you edit the source code at a later date. </li></ul></ul><ul><ul><li><!– this is a comment - -> </li></ul></ul><ul><ul><li>Note that you need an exclamation point after the opening bracket, but not before the closing bracket. </li></ul></ul>
  23. 23. The Anchor Tag and the href Attribute <ul><li>HTML uses the <a> that to link to other documents </li></ul><ul><li>An anchor can point to any resource on the Web: an HTML page, an image, a sound file, a movie, etc. </li></ul>
  24. 24. The syntax of creating an anchor: <ul><li><a href =“url”></a> </li></ul><ul><li>The <a> tag is used to create an anchor to link from, the href attribute is used to address the document to link to, and the words between the open and close of the anchor tag will be displayed as a hyperlink. </li></ul><ul><li>Example: </li></ul><ul><ul><li><a href =“http://www.yahoo.com”>Yahoo Search Engine</a> </li></ul></ul>
  25. 25. HTML Links <ul><li>HTML uses hyperlinks to link to another document on the web. </li></ul><ul><li>Example: </li></ul><ul><ul><li><html> </li></ul></ul><ul><ul><li><body> </li></ul></ul><ul><ul><li><p> </li></ul></ul><ul><ul><li><a href=&quot;lastpage.htm&quot;> </li></ul></ul><ul><ul><li>This text</a> is a link to a page on </li></ul></ul><ul><ul><li>this Web site. </li></ul></ul><ul><ul><li></p> </li></ul></ul><ul><ul><li><p> </li></ul></ul><ul><ul><li><a href=&quot;http://www.microsoft.com/&quot;> </li></ul></ul><ul><ul><li>This text</a> is a link to a page on </li></ul></ul><ul><ul><li>the World Wide Web. </li></ul></ul><ul><ul><li></p> </li></ul></ul><ul><ul><li></body> </li></ul></ul><ul><ul><li></html> </li></ul></ul>
  26. 26. Email link <ul><li>Example: </li></ul><ul><ul><li><a href=“mailto:ms_canderson@yahoo.com> </li></ul></ul><ul><ul><li>Email me here</a> </li></ul></ul>
  27. 27. HTML Backgrounds <ul><li>The <body> tag has two attributes where you can specify backgrounds. The background can be a color or an image. </li></ul><ul><li>The bgcolor attribute sets the background to a color. The value of this attribute can be a hexadecimal number, an RGB value, or a color name. </li></ul><ul><li>The background attribute sets the background to an image. The value of this attribute is the URL of the image you want to use. If the image is smaller than the browser window, the image will repeat itself until it fills the entire browser window. </li></ul>
  28. 28. Backgrounds <ul><li>Example: </li></ul><ul><li><body bgcolor=“red” background=“image.gif> </li></ul>
  29. 29. Backgrounds: Keep in mind <ul><li>If you want to use a background image, you should keep in mind: </li></ul><ul><ul><li>Will the background image increase the loading time too much? Tip: Image files should be maximum 10k </li></ul></ul><ul><ul><li>Will the background image look good with other images on the page? </li></ul></ul><ul><ul><li>Will the background image look good with the text colors on the page? </li></ul></ul><ul><ul><li>Will the background image look good when it is repeated on the page? </li></ul></ul><ul><ul><li>Will the background image take away the focus from the text? </li></ul></ul>
  30. 30. HTML and Images <ul><li>The img tag and the src attribute: </li></ul><ul><li>In HTML, images are defined with the <img> tag.  </li></ul><ul><li>The <img> tag is empty, which means that it contains attributes only and it has no closing tag. </li></ul><ul><li>To display an image on a page, you need to use the src attribute. Src stands for &quot;source&quot;. The value of the src attribute is the URL of the image you want to display on your page . </li></ul>
  31. 31. Syntax for the image tag <ul><li><img src=“filename.extention alt=“picture of a cat”> </li></ul>
  32. 32. Alt tag <ul><li>The alt attribute is used to define an &quot;alternate text&quot; for an image. The value of the alt attribute is an author-defined text: </li></ul><ul><li>The &quot;alt&quot; attribute tells the reader what he or she is missing on a page if the browser can't load images. The browser will then display the alternate text instead of the image. It is a good practice to include the &quot;alt&quot; attribute for each image on a page, to improve the display and usefulness of your document for people who have text-only browsers. </li></ul>
  33. 33. Align Attribute <ul><li>align =“top” : this will align text at the top of the image. </li></ul><ul><li>align =“middle” : this will align text in the middle of the image. </li></ul><ul><li>align =“ bottom” :this will aling text at the bottom of the image. </li></ul><ul><li>Don't use the top, middle, or bottom attribute unless you only want one line of text. </li></ul><ul><li>EX: http://www. htmlgoodies .com/primers/html/article. php /3478191 </li></ul>
  34. 34. Align Attribute <ul><li>align =“left” : this will align the image to the left of the webpage while wrapping the text around the image. </li></ul><ul><li>Align =“right” : this will align the image to the right of the webpage while wrapping the text around the image. </li></ul>
  35. 35. Image alignment <ul><li>To align text around and image you must use the attribute align. </li></ul><ul><li>EX: <img src =“picture.jpg” align =“left” </li></ul>
  36. 36. Citation <ul><li>All information in this presentation was taken from the HTML tutorial on </li></ul><ul><li>http://www.w3schools.com </li></ul>

×