intro to html objectives
play

Intro to HTML Objectives Write simple HTML documents Understand the - PowerPoint PPT Presentation

Intro to HTML Objectives Write simple HTML documents Understand the di ff erence between closing and self closing tags Write tags with attributes Use MDN as a reference Given an image, write the corresponding HTML History of HTML Created in


  1. Intro to HTML

  2. Objectives Write simple HTML documents Understand the di ff erence between closing and self closing tags Write tags with attributes Use MDN as a reference Given an image, write the corresponding HTML

  3. History of HTML Created in 1989/1990 Allowed publishing and exchanging of scienti fi c and technical documents Allowed electronic linking of documents via hyperlinks

  4. The General Rule < tagName > Some Content </ tagName >

  5. Every HTML document we create will start with this boilerplate: <!DOCTYPE html> < html > < head > <!-- Our metadata goes here --> < title ></ title > </ head > < body > <!-- Our content goes here --> </ body > </ html >

  6. Comments <!-- This is a comment. It doesn't do anything! -->

  7. Common Tags < h1 >I'm a header </ h1 > < h2 >I'm a slightly smaller header </ h2 > < h6 >I'm the smallest header </ h6 > < p >I'm a paragraph</ p > < button >I'm a button!</ button > < ul > < li >List Item 1</ li > < li >List Item 2</ li > </ ul > < ol > < li >List Item 1</ li > < li >List Item 2</ li > </ ol >

  8. MDN Element Reference

  9. Closing Tags < h1 >I need a closing tag </ h1 > < p >Me too!</ p > Self-Closing Tags <!-- No closing tag or inner text needed --> < img src="corgi.png"> < link href="style.css"> <!-- Don't worry about what these tags do yet -->

  10. Attributes Adding Additional Information To Tags < tag name="value"></ tag > < img src="corgi.png"> < p class="selected">woof woof</ p > < a href="www.google.com">Click me to go to Google</ a > < link rel="stylesheet" type="text/css" href="style.css">

  11. MDN Attribute Reference

  12. Images < img src="corgi.png">

  13. Links < a href="url">Link Text</ a > < a href="www.google.com">Click me to go to Google</ a > < a href="www.reddit.com">Click me to go to Reddit</ a >

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend