SlideShare a Scribd company logo
1 of 17
Speaking in Code




HTML


Brian Lee

Carolynn Vu (TA)
Speaking in Code


Recap: The Internet

• We have not yet transcended the laws of nature

• Web is a library of documents and files

• Browsers are Readers of HTML

• Communicate via Protocols (rules)
Speaking in Code


Recap: HTML

• HyperText Markup Language

• Way to organize content for browsers to read
Speaking in Code


Recap: HTML Tags

• Don’t forget to close tags
   – <html></html>

   – <img src=‘blah.jpg’ />

• <!DOCTYPE html>
   – Instruction to browser that it page is html
Speaking in Code


<head> vs. <body>

• What goes in the <head>
  – Titles, scripts, style sheets

  – What makes this page work?

• What goes in the <body>
  – Content

  – ie) paragraphs, text, tables
Speaking in Code


What do the tags do?
• <html>    – Starts and ends HTML documents
• <head>    – Defines important aspects of page
• <title>   – Sets title of page (ie. top of tab)
• <body>    – Viewable portion of page
• <h1>      – Type of header
• <p>       – Paragraphs
• <img>     – Images (anything special about this?)
Speaking in Code


Recap: Format of Web Pages
<!DOCTYPE html>
<html>
    <head>
        <title>Best Page Ever</title>
    </head>
    <body>
        <h1>Largest Header</h1>
        <p>Paragraph</p>
        <strong>Bold Text</strong>
        <a href=‘http://www.google.com’>Link to Google</a>
    </body>
</html>
Speaking in Code


Common Mistakes

• Don’t forget to close tags
   <html><html/> (what’s wrong)

• Avoid Typos
   <title>What the.. Not Working</tile>

• When writing <a href=‘http://www.google.com'></a>
   – http:// crucial!
Speaking in Code


Best Practice - Indenting

• Indenting allows for cleaner code

• User-readability
   – Not only others but for yourself!

• Helps catch mistakes
   – Did you close the tag?
Speaking in Code


What happens if you don’t indent
<!DOCTYPE html>
<html>
<head>
<title>Best Page Ever</title>
</head>
<body>
<h1>Largest Header</h1>
<p>Paragraph</p>
<strong>Bold Text</strong>
<a href=‘http://www.google.com’>Link to Google</a>
</body>
</html>
Speaking in Code


Lists!

Ordered list <ol>   Unordered list <ul>
1. Wake up          • Make slides for class
2. Eat              • Go grocery shopping
3. Sleep            • Look for apartments
Speaking in Code


List Items
Speaking in Code


Comments

• Useful for leaving notes

• Does not show in the browser
<body>
    <!– This list means absolutely nothing -->
    <ol>
         <li>List Item 1</li>
         <li>List Item 2</li>
         <li>List Item 3</li>
    </ol>
</body>
Speaking in Code


Styling

• Webpages don’t have to be ugly

• Can style in line
<body>
    <ol>
         <!– Wow cool font bro 
         <li style='font-family:Garamond; font-size:16px'>List Item 1</li>
         <li>List Item 2</li>
         <li>List Item 3</li>
    </ol>
</body>
Speaking in Code


Ready to Try It Yourself?

http://bit.ly/htmlbasics2

Recommended for next week:

http://bit.ly/htmlbasics3
Speaking in Code


Sync-Up!

• We can make lists         <ul>
                                   <li>
                                          We can make lists
   – As deep                              <ul>
                                               <li>
      • As you want                                 As Deep
                                                    <ul>
• Styling                   want</li>
                                                         <li>As you

                                                       </ul>
   – Keep in mind we will                      </li>
                                          </ul>
     use CSS later               </li>
                            </ul>
Speaking in Code


Reiterating Indentation
<body>
<p>Sometimes I think that indentation might be unnecessary and takes an extra key stroke but then
things like this can happen where you have a million lines and have no idea which tags have to be closed
where well that sucks</p>
<ul>
<li>Imagine
<ul>
<li>This was
<ul>
<li>Over</li>
<li>300+ Lines of HTML</li>
</ul>
</li>
</ul>
</li>
</ul>
</body>

More Related Content

What's hot

Html basics 1
Html basics 1Html basics 1
Html basics 1H K
 
Introducing HTML
Introducing HTMLIntroducing HTML
Introducing HTMLritaester
 
Introduction to HTML5+CSS
Introduction to HTML5+CSSIntroduction to HTML5+CSS
Introduction to HTML5+CSSRamses Cabello
 
Basics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPointBasics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPointSahil Gandhi
 
HTML, CSS, JavaScript for beginners
HTML, CSS, JavaScript for beginnersHTML, CSS, JavaScript for beginners
HTML, CSS, JavaScript for beginnersPrakritiDhang
 
WEBD 162: What is a Web Page?
WEBD 162: What is a Web Page?WEBD 162: What is a Web Page?
WEBD 162: What is a Web Page?palomateach
 
What's a web page made of?
What's a web page made of?What's a web page made of?
What's a web page made of?Charlie Allen
 
HTML BASIC BY SHASHI KANT SINGH HAJIPUR
HTML BASIC BY SHASHI KANT SINGH HAJIPUR HTML BASIC BY SHASHI KANT SINGH HAJIPUR
HTML BASIC BY SHASHI KANT SINGH HAJIPUR Shashi Kant Singh
 
Hello world
Hello worldHello world
Hello worldhemi46h
 
Css presentation lecture 1
Css presentation lecture 1Css presentation lecture 1
Css presentation lecture 1Mudasir Syed
 
Html basics 4 anchor list
Html basics 4 anchor listHtml basics 4 anchor list
Html basics 4 anchor listH K
 
WEBD 162 Week 02 LWD4e
WEBD 162 Week 02 LWD4eWEBD 162 Week 02 LWD4e
WEBD 162 Week 02 LWD4epalomateach
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSSdanpaquette
 

What's hot (20)

Html
HtmlHtml
Html
 
Web design 101
Web design 101Web design 101
Web design 101
 
Web 102 INtro to CSS
Web 102  INtro to CSSWeb 102  INtro to CSS
Web 102 INtro to CSS
 
Html basics 1
Html basics 1Html basics 1
Html basics 1
 
Introducing HTML
Introducing HTMLIntroducing HTML
Introducing HTML
 
HTML5 semantics
HTML5 semanticsHTML5 semantics
HTML5 semantics
 
Introduction to HTML5+CSS
Introduction to HTML5+CSSIntroduction to HTML5+CSS
Introduction to HTML5+CSS
 
Basics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPointBasics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPoint
 
Demo lecture ppt
Demo lecture pptDemo lecture ppt
Demo lecture ppt
 
HTML, CSS, JavaScript for beginners
HTML, CSS, JavaScript for beginnersHTML, CSS, JavaScript for beginners
HTML, CSS, JavaScript for beginners
 
WEBD 162: What is a Web Page?
WEBD 162: What is a Web Page?WEBD 162: What is a Web Page?
WEBD 162: What is a Web Page?
 
What's a web page made of?
What's a web page made of?What's a web page made of?
What's a web page made of?
 
HTML BASIC BY SHASHI KANT SINGH HAJIPUR
HTML BASIC BY SHASHI KANT SINGH HAJIPUR HTML BASIC BY SHASHI KANT SINGH HAJIPUR
HTML BASIC BY SHASHI KANT SINGH HAJIPUR
 
Artistic Web Applications - Week3 - Part 3
Artistic Web Applications - Week3 - Part 3Artistic Web Applications - Week3 - Part 3
Artistic Web Applications - Week3 - Part 3
 
Hello world
Hello worldHello world
Hello world
 
Lecture 2 - HTML Basics
Lecture 2 - HTML BasicsLecture 2 - HTML Basics
Lecture 2 - HTML Basics
 
Css presentation lecture 1
Css presentation lecture 1Css presentation lecture 1
Css presentation lecture 1
 
Html basics 4 anchor list
Html basics 4 anchor listHtml basics 4 anchor list
Html basics 4 anchor list
 
WEBD 162 Week 02 LWD4e
WEBD 162 Week 02 LWD4eWEBD 162 Week 02 LWD4e
WEBD 162 Week 02 LWD4e
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
 

Viewers also liked

A 54 year analysis of articles from Mpilo Central Hospital, Bulawayo, Zimbabw...
A 54 year analysis of articles from Mpilo Central Hospital, Bulawayo, Zimbabw...A 54 year analysis of articles from Mpilo Central Hospital, Bulawayo, Zimbabw...
A 54 year analysis of articles from Mpilo Central Hospital, Bulawayo, Zimbabw...Gwinyai Masukume
 
Islamhudaa fatwa2
Islamhudaa fatwa2Islamhudaa fatwa2
Islamhudaa fatwa2davv321
 
Week 4 css recap and js
Week 4   css recap and jsWeek 4   css recap and js
Week 4 css recap and jsbrianjihoonlee
 
A Petite Woman's Guide To Weight Loss
A Petite Woman's Guide To Weight LossA Petite Woman's Guide To Weight Loss
A Petite Woman's Guide To Weight LossJeetly
 
Week 1 - Intro to the Internet
Week 1 - Intro to the InternetWeek 1 - Intro to the Internet
Week 1 - Intro to the Internetbrianjihoonlee
 
Week 3 html recap and css
Week 3   html recap and cssWeek 3   html recap and css
Week 3 html recap and cssbrianjihoonlee
 
Age of mitoloyi
Age of mitoloyiAge of mitoloyi
Age of mitoloyicurban5
 

Viewers also liked (8)

Manual
ManualManual
Manual
 
A 54 year analysis of articles from Mpilo Central Hospital, Bulawayo, Zimbabw...
A 54 year analysis of articles from Mpilo Central Hospital, Bulawayo, Zimbabw...A 54 year analysis of articles from Mpilo Central Hospital, Bulawayo, Zimbabw...
A 54 year analysis of articles from Mpilo Central Hospital, Bulawayo, Zimbabw...
 
Islamhudaa fatwa2
Islamhudaa fatwa2Islamhudaa fatwa2
Islamhudaa fatwa2
 
Week 4 css recap and js
Week 4   css recap and jsWeek 4   css recap and js
Week 4 css recap and js
 
A Petite Woman's Guide To Weight Loss
A Petite Woman's Guide To Weight LossA Petite Woman's Guide To Weight Loss
A Petite Woman's Guide To Weight Loss
 
Week 1 - Intro to the Internet
Week 1 - Intro to the InternetWeek 1 - Intro to the Internet
Week 1 - Intro to the Internet
 
Week 3 html recap and css
Week 3   html recap and cssWeek 3   html recap and css
Week 3 html recap and css
 
Age of mitoloyi
Age of mitoloyiAge of mitoloyi
Age of mitoloyi
 

Similar to Week 2 html (20)

LIS3353 SP12 Week 4
LIS3353 SP12 Week 4LIS3353 SP12 Week 4
LIS3353 SP12 Week 4
 
HTML
HTMLHTML
HTML
 
Html and-css
Html and-cssHtml and-css
Html and-css
 
Html and-css
Html and-cssHtml and-css
Html and-css
 
Khoa dang (kay)
Khoa dang (kay)Khoa dang (kay)
Khoa dang (kay)
 
Web development basics2
Web development basics2Web development basics2
Web development basics2
 
Web Design-III IT.ppt
Web Design-III IT.pptWeb Design-III IT.ppt
Web Design-III IT.ppt
 
Web development basics
Web development basicsWeb development basics
Web development basics
 
Html.ppt
Html.pptHtml.ppt
Html.ppt
 
Web Design.ppt
Web Design.pptWeb Design.ppt
Web Design.ppt
 
Slides 2 - HTML
Slides 2 - HTMLSlides 2 - HTML
Slides 2 - HTML
 
Rd.Html
Rd.HtmlRd.Html
Rd.Html
 
Xhtml and html5 basics
Xhtml and html5 basicsXhtml and html5 basics
Xhtml and html5 basics
 
Class1slides
Class1slidesClass1slides
Class1slides
 
HTML & CSS.ppt
HTML & CSS.pptHTML & CSS.ppt
HTML & CSS.ppt
 
Html intro
Html introHtml intro
Html intro
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Semantic HTML5
Semantic HTML5Semantic HTML5
Semantic HTML5
 
HTML Lesson 1
HTML Lesson 1HTML Lesson 1
HTML Lesson 1
 

Week 2 html

  • 1. Speaking in Code HTML Brian Lee Carolynn Vu (TA)
  • 2. Speaking in Code Recap: The Internet • We have not yet transcended the laws of nature • Web is a library of documents and files • Browsers are Readers of HTML • Communicate via Protocols (rules)
  • 3. Speaking in Code Recap: HTML • HyperText Markup Language • Way to organize content for browsers to read
  • 4. Speaking in Code Recap: HTML Tags • Don’t forget to close tags – <html></html> – <img src=‘blah.jpg’ /> • <!DOCTYPE html> – Instruction to browser that it page is html
  • 5. Speaking in Code <head> vs. <body> • What goes in the <head> – Titles, scripts, style sheets – What makes this page work? • What goes in the <body> – Content – ie) paragraphs, text, tables
  • 6. Speaking in Code What do the tags do? • <html> – Starts and ends HTML documents • <head> – Defines important aspects of page • <title> – Sets title of page (ie. top of tab) • <body> – Viewable portion of page • <h1> – Type of header • <p> – Paragraphs • <img> – Images (anything special about this?)
  • 7. Speaking in Code Recap: Format of Web Pages <!DOCTYPE html> <html> <head> <title>Best Page Ever</title> </head> <body> <h1>Largest Header</h1> <p>Paragraph</p> <strong>Bold Text</strong> <a href=‘http://www.google.com’>Link to Google</a> </body> </html>
  • 8. Speaking in Code Common Mistakes • Don’t forget to close tags <html><html/> (what’s wrong) • Avoid Typos <title>What the.. Not Working</tile> • When writing <a href=‘http://www.google.com'></a> – http:// crucial!
  • 9. Speaking in Code Best Practice - Indenting • Indenting allows for cleaner code • User-readability – Not only others but for yourself! • Helps catch mistakes – Did you close the tag?
  • 10. Speaking in Code What happens if you don’t indent <!DOCTYPE html> <html> <head> <title>Best Page Ever</title> </head> <body> <h1>Largest Header</h1> <p>Paragraph</p> <strong>Bold Text</strong> <a href=‘http://www.google.com’>Link to Google</a> </body> </html>
  • 11. Speaking in Code Lists! Ordered list <ol> Unordered list <ul> 1. Wake up • Make slides for class 2. Eat • Go grocery shopping 3. Sleep • Look for apartments
  • 13. Speaking in Code Comments • Useful for leaving notes • Does not show in the browser <body> <!– This list means absolutely nothing --> <ol> <li>List Item 1</li> <li>List Item 2</li> <li>List Item 3</li> </ol> </body>
  • 14. Speaking in Code Styling • Webpages don’t have to be ugly • Can style in line <body> <ol> <!– Wow cool font bro  <li style='font-family:Garamond; font-size:16px'>List Item 1</li> <li>List Item 2</li> <li>List Item 3</li> </ol> </body>
  • 15. Speaking in Code Ready to Try It Yourself? http://bit.ly/htmlbasics2 Recommended for next week: http://bit.ly/htmlbasics3
  • 16. Speaking in Code Sync-Up! • We can make lists <ul> <li> We can make lists – As deep <ul> <li> • As you want As Deep <ul> • Styling want</li> <li>As you </ul> – Keep in mind we will </li> </ul> use CSS later </li> </ul>
  • 17. Speaking in Code Reiterating Indentation <body> <p>Sometimes I think that indentation might be unnecessary and takes an extra key stroke but then things like this can happen where you have a million lines and have no idea which tags have to be closed where well that sucks</p> <ul> <li>Imagine <ul> <li>This was <ul> <li>Over</li> <li>300+ Lines of HTML</li> </ul> </li> </ul> </li> </ul> </body>

Editor's Notes

  1. Make alternating slides to quiz individually
  2. Who can tell which type of list this is
  3. Show example in sublime