Introduction to HTML Fundamentals

Slide Note
Embed
Share

Explore the basics of HTML, CSS, and JavaScript with lessons on their importance, definitions, tools for writing, and the structure of an HTML document. Learn why mastering these languages is essential for web development and discover tips for effective learning methods.


Uploaded on Jul 17, 2024 | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. Download presentation by click this link. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

E N D

Presentation Transcript


  1. Introduction to HTML

  2. Lesson Objectives Why Learn HTML, CSS and JavaScript? What is HTML? What is CSS? What is JavaScript? Tools to write HTML, CSS and JavaScript Structure of a HTML Document (2 Parts) Basic HTML Tags <html>, <head>, <title>, <body>

  3. TIP to learning HTML PRACTICE typing the code so your brain can learn and remember the syntax. **DO NOT** copy and paste.

  4. Why Learn HTML, CSS and JavaScript 1. HTML is to tell the browser what content is being displayed. HTML HyperText Markup Language 2. CSS is used to add color and style to the web page. CSS Cascading Style Sheet 3. JavaScript is one of the 3 languages all web developers must learn. JavaScript is to program the behavior of web pages to make it interactive.

  5. What is HTML? 1. HyperText Markup Language (HTML) is the standard markup language for creating web pages. Web browsers receive HTML documents from a web server and determines how to display the document. 2. HTML is to tell the browser what content is being displayed. 3. Cascading Style Sheet (CSS) is used to add color and style to the web page.. 4. JavaScript is to program the behavior of web pages to make it dynamic and interactive.

  6. Tools to write HTML, CSS and JavaScript 1. A simple Text Editor Windows Notepad or Notepad++ Mac - TextEdit 2. Browser

  7. Additional tools to write HTML, CSS and JavaScript 1. Integrated Development Environment (IDE) Windows Visual Studio or research any available. 2. Browser

  8. Structure of a HTML Document 2 Distinct Parts Head part Body part

  9. HTML Tag Syntax An HTML element consists of a <start> tag and a </end> tag with the content in between <p>This is a story of </p>

  10. Tag names Are NOT case sensitive <P> and <p> are the same. W3C recommends lowercase.

  11. What is W3C? (www.w3.org) World Wide Web Consortium An international consortium of companies involved with the Internet and the Web. The W3C was founded in 1994 by Tim Berners-Lee, the original architect of the World Wide Web. The organization's purpose is to develop openstandards so that the Web evolves in a single direction rather than being splintered among competing factions.

  12. Basic HTML Tag <html> <html> opening tag </html> </html> closing tag

  13. Structure of a HTML Document <!DOCTYPE html> <html> <head> <title>Title of Web Page</title> </head> <body> Everything to be displayed on your web page goes here! </body> </html>

  14. <html> <html> Every HTML document begins with a opening <html> tag and ends with a closing </html> tag. <!DOCTYPE <!DOCTYPE html> <html> <html> html> </html> </html>

  15. Head part - <head> </head> <head> </head> 1. Most of the elements that go in the <head> part are for search engines. 2. The <title> tag is an important tag that is nested inside the <head> tags. <head> <head> <title>Title of web page</title <title>Title of web page</title </head> </head>

  16. Nested Elements <html> <head> <title>The Title of the Web Page</title> </head> <body> </body> </html>

  17. <title> . </title> <title> . </title> The <title> tag is nested. Write a unique title for each page. Used when you bookmark Search Engines <head> <head> <title>This is my first web page </title> <title>This is my first web page </title> </head> </head>

  18. body part - <body> </body> <body> </body> The body section is the main part of your page. Everything between the opening <body> and closing </body> will be displayed on your web page. <body> <body> Hello World!! </body> </body>

  19. Structure of a HTML Document <!DOCTYPE html> <html> <head> <title>Title of Web Page</title> </head> <body> Everything to be displayed on your web page goes here! </body> </html>

  20. HTML Paragraphs <p> <p> <p> <p>This is a paragraph</p> </p> <p> <p>This is another paragraph</p> </p>

  21. HTML Headings <h1> to <h6> <h1> to <h6> tags <h1> <h1>Largest Heading</h1> </h1> <h6> <h6>Smallest Heading</h6> </h6>

  22. HTML Links <a> <a> <a <a href= https://www.google.com > >This link to go to Google</a> </a>

  23. HTML Images < <img img> > <img> - defines an image. src = image source file alt = alternative text width and height are attributes of the image. < <img img src= w3schools.jpg alt= W3Schools.com width= 104 height= 142 > >

  24. Sample HTML Document <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>My First Heading</h1> <p>My first paragraph</p> </body> </html>

  25. HTML Lists <ul> <ul> - unordered (bullet list) <ul> <ul> <li> <li>Coffee</li> <li> <li>Tea</li> </li> <li> <li>Milk</li> </ul> </ul> </li> </li>

  26. HTML Lists < <ol ol> > - ordered (numbered list) < <ol ol> > <li> <li>McDonalds - Hagatna</li> <li> <li>McDonalds - Maite</li> <li> <li>McDonalds - Tamuning</li> </ </ol ol> > </li> </li> </li>

  27. Displaying Preformatted Paragraphs <pre> <h1>The Twelve Days of Christmas</h1> <pre> <pre>On the first day of Christmas my true love sent to me: A Partridge in a Pear Tree On the second day of Christmas my true love sent to me: 2 Turtle Doves and a Partridge in a Pear Tree </pre> </pre>

  28. HTML Document Tag Explained <!DOCTYPE html> - declaration defines the document to be HTML5. <html> element declared to be HTML page. <head> element contains meta information about the document. <title> element specifies a title for the document. <body> element contains the visible page content <p> element defines a paragraph

  29. HTML Document Tag Explained <h1> element defines a large heading <br> element defines a line break **no end tag <a> element defines a hyperlink <img> element defines a image <hr> element used to define thematic break in your document content **no end tag

  30. HTML Document Tag Explained <ol> element defines a numbered list <ul> element defines a bullet list <li> element defines a list item <pre> element defines a preformatted text

  31. Empty Elements HTML elements with no content are empty elements. Empty elements do not have a end tag.

  32. Saving your HTML document 1. File name enter lowercase. 2. File name extension enter .html 3. File type Select All files.

  33. BEST ADVICE Use the many Internet resources to view examples of how to write HTML code.

More Related Content