html css basics forrest huang cs160 summer 2019 week 1 he
play

HTML/CSS Basics Forrest Huang CS160 Summer 2019 Week 1 // - PowerPoint PPT Presentation

HTML/CSS Basics Forrest Huang CS160 Summer 2019 Week 1 // He/His/Him // 2nd Year Ph.D. HCI + ML Teach Computers to Draw // Office Hours: 0900-1100 Tu 310 Jacobs ( ) // Sections and Logistics // Web Programming/Languages // HTML 101 for


  1. HTML/CSS Basics Forrest Huang CS160 Summer 2019 Week 1

  2. // He/His/Him // 2nd Year Ph.D. HCI + ML Teach Computers to Draw // Office Hours: 0900-1100 Tu 310 Jacobs ( )

  3. // Sections and Logistics // Web Programming/Languages // HTML 101 for today // CSS 101 // Chrome Dev Tools // Survey

  4. It is a place to learn and experience practical tools which will help you in your projects, and help you reinforce and build upon ideas covered in classes. First 2 weeks: Fundamentals

  5. Summer classes require a lot of work Many assignment in this class don’t have “right” answers

  6. feel free to stay, but please

  7. If you finish an exercise early, feel free to help others

  8. Focused on formatting and presenting front-end UI-elements Turing-Complete! https://tinyurl.com/rule110

  9. Try and get as close to a static version of https://www.youtube.com

  10. <!DOCTYPE html> <html> <head> <title>Page Title</title> <!-- Imports, like CSS --> </head> <body> <!-- Visible Content --> <p>My first paragraph.</p> </body> </html>

  11. <!DOCTYPE html> <html> <head> <title>Page Title</title> <!-- Imports, like CSS --> </head> <body> <!-- Visible Content --> <p>My first paragraph.</p> </body> </html>

  12. <!DOCTYPE html> <html> <head> <title>Page Title</title> <!-- Imports, like CSS --> </head> <body> <!-- Visible Content --> <p>My first paragraph.</p> </body> </html>

  13. <!DOCTYPE html> <html> <head> <title>Page Title</title> <!-- Imports, like CSS --> </head> <body> <!-- Visible Content --> <p>My first paragraph.</p> </body> </html>

  14. <!DOCTYPE html> <html> <head> <title>Page Title</title> <!-- Imports, like CSS --> </head> <body> <!-- Visible Content --> <p>My first paragraph.</p> </body> </html>

  15. https://tinyurl.com/cs160-sum-html

  16. // HTML tags start with <> and end with < /> // HTML tags specify the type (p, h1) and optionally attributes (href = “ ”) // divs and spans are the two main types of containers // Whitespace is (mostly) ignored

  17. // Whitespace <br> - Linebreak &nbsp; - Non-breaking whitespace

  18. // Open https://tinyurl.com/cs160-sum-html, Create a fork // Build the following start to a fun-fact page, for your neighbors! (in pairs)

  19. <li id=”rutabaga” style=”color: green;”>I love rutabagas.</li>

  20. ID: Value is unique to that specific element on that page (also used for relative linking) Class: Value can be shared with elements <li id=”rutabaga” class=”fun-fact”>I love rutabagas.</li> <li id=”roger” class=”fun-fact”>My favourite tennis player is Roger Federer.</li>

  21. ID: Value is unique to that specific element on that page (also used for relative linking) Class: Value can be shared with elements <li id=”rutabaga” class=”fun-fact”>I love rutabagas.</li> <li id=”roger” class=”fun-fact”>My favourite tennis player is Roger Federer.</li>

  22. ID: Value is unique to that specific element on that page (also used for relative linking) Class: Value can be shared with elements <li id=”rutabaga” class=”fun-fact”>I love rutabagas.</li> <li id=”roger” class=”fun-fact”>My favourite tennis player is Roger Federer.</li>

  23. HTML: <head> <link rel="stylesheet" type="text/css" href="mystyle.css"/> </head> mystyle.css: .fun-fact { color: green; }

  24. <!DOCTYPE html> <html> <head> <title>Page Title</title> <!-- Imports, like CSS --> </head> <body> <!-- Visible Content --> <p>My first paragraph.</p> </body> </html>

  25. <!DOCTYPE html> <html> <head> <title>Page Title</title> <link rel="stylesheet" type="text/css" href="mystyle.css"/> </head> <body> <!-- Visible Content --> <p>My first paragraph.</p> </body> </html>

  26. .class: .fun-fact .fun-fact { color: green; #id: #rutabaga } Element : span First Nested Second : ul li

  27. https://tinyurl.com/cs160-sum-css

  28. https://tinyurl.com/chromedt-demo

  29. For more detailed instructions on how you could make a personal website: https://tinyurl.com/personalw-medium

  30. // Sections and Logistics // Web Programming/Languages // HTML 101 for today // CSS 101 // Chrome Dev Tools // Survey

  31. https://tinyurl.com/cs160-su19-sec1

  32. rutabaga

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