SlideShare una empresa de Scribd logo
1 de 82
Intro to Hacking
      Workshop
            HTML, CSS, & PHP Basics




            Miami Beach, FL 2012
                   #wpworkshop




                 Powered by Ptah Dunbar

              Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
?
What are you going
to learn today?

          Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Development
Environment




      Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
CSS




  Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Basics

    Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Are you
  Ready          ?
      Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Development
Environment




      Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Setting up a local development enviroment


You need:
✓ A Web Server (Apache) w/ PHP
✓ Text Editor     (for plain text docs)


✓ Web Browser(s)          (Latest Firefox, Chrome, Safari, Opera,

    IE)




                           Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Setting up a local development enviroment


For Windows:
✓ WAMP (http://wampserver.com)




✓ Notepad++       (http://notepad-plus-
    plus.org)




                        Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Setting up a local development enviroment


For Mac:
✓ MAMP (http://mamp.info)


✓ Text Wrangler
    (http://barebones.com/products/textwrangler/)



✓ TextMate
   (http://macromates.com/)


                                Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Download & Install                  ...

 now.
            Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Verify that everything works




http://
localhost/

                         Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Setting up your web directory


✓ Navigate to web directory.


✓ Create a new folder called
    “workshop”.


✓ Within “workshop”, create a
    subfolder called “css”.

                         Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Setting up your web directory




                         Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
You’re
now
 Ready for

      Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
What is HTML?




Hyper Text Markup Language




                Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
What is HTML?




        Elements & Tags

        <html></html>




                 Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
What is HTML?




        Elements & Tags

                <img />




                     Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
What is HTML?




            Attributes

<html lang="en"></html>




                   Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
What is HTML?




            Attributes

 <img src="image.png" />




                   Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
What is HTML?




            Attributes

<audio controls></audio>




                   Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
What is HTML?




            Comments

<!-- this is a comment -->




                 Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
What is HTML?




            Comments
                <!--
                this is a
                multi-line
                comment
                -->


                       Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Basic HTML document — Hello World!



<!DOCTYPE html>
<html>
<head>
	 <title>Sample HTML Document</title>
</head>
<body>
	 <p>Hello World</p>
</body>
</html>



                       Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Basic HTML document — Hello World!



<!DOCTYPE html>
<html>
<head>
	 <title>Sample HTML Document</title>
</head>
<body>
	 <p>Hello World</p>
</body>
</html>



                       Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Basic HTML document — Hello World!



<!DOCTYPE html>
<html>
<head>
	 <title>Sample HTML Document</title>
</head>
<body>
	 <p>Hello World</p>
</body>
</html>



                       Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Basic HTML document — Hello World!



<!DOCTYPE html>
<html>
<head>
	 <title>Sample HTML Document</title>
</head>
<body>
	 <p>Hello World</p>
</body>
</html>



                       Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Basic HTML document — Hello World!



<!DOCTYPE html>
<html>
<head>
	 <title>Sample HTML Document</title>
</head>
<body>
	 <p>Hello World</p>
</body>
</html>



                       Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Basic HTML document — Hello World!



<!DOCTYPE html>
<html>
<head>
	 <title>Sample HTML Document</title>
</head>
<body>
	 <p>Hello World</p>
</body>
</html>



                       Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Basic HTML document — Hello World!



<!DOCTYPE html>
<html>
<head>
	 <title>Sample HTML Document</title>
</head>
<body>
	 <p>Hello World</p>
</body>
</html>



                       Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Web Standards




World Wide Web              WHATWG
 Consortium


                 Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Workshop.
  Follow my lead...


        Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Save document as hello-world.html



<!DOCTYPE html>
<html>
<head>
	 <title>Sample HTML Document</title>
</head>
<body>
	 <!-- Hello World -->
</body>
</html>



                        Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Overview of (some) HTML tags


• Paragraphs (p)
• Headings (h1-h6)
• Text Formatting               (em, strong,

  blockquote)

• Lists (ul, ol, dl)
• Links (a)
• Images (img)
                       Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Structuring HTML Documents




                      Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Structuring HTML Documents




<article>                   <header>

<aside>                     <footer>

<nav>                       <div>

<section>


                      Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
CSS




  Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
What is CSS?




     Cascading Style Sheets




                 Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
What is CSS?




               A CSS Rule
 h1 { color: blue; font-size:
           12px; }




                      Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
What is CSS?




               Selector
 h1 { color: blue; font-size:
           12px; }




                     Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
What is CSS?




               Declaration
 h1 { color: blue; font-size:
           12px; }




                      Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
What is CSS?




         Property: value;
 h1 { color: blue; font-size:
           12px; }




                   Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
What is CSS?




           Declarations
 h1 { color: blue; font-size:
           12px; }




                   Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
What is CSS?




               Comments

   /* This is a comment. */




                    Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
What is CSS?




               Comments
               /*
               This is a multi-line
               comment.
               */


                       Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
What is CSS?




 Targeting page content
     using selectors



               Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
CSS Selectors - Targeting page content




            By element
 h1 { color: blue; font-size:
           12px; }




                         Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
CSS Selectors - Targeting page content




             By element
  h1 { color: blue; font-size:
            12px; }
<h1>I’m being targetted!</h1>



                          Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
CSS Selectors - Targeting page content




         By class attribute

.title { color: blue; font-size: 12px; }




                           Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
CSS Selectors - Targeting page content




         By class attribute

.title { color: blue; font-size: 12px; }
 <h2 class="title">I’m being targetted!</
                   h2>




                           Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
CSS Selectors - Targeting page content




         By ID attribute
#footer { color: blue; font-size:
             12px; }




                         Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
CSS Selectors - Targeting page content




         By ID attribute
 #footer { color: blue; font-size:
              12px; }
<div id="footer">I’m being targetted!</
                 div>




                         Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
CSS Selectors - Targeting page content




         Grouping Selectors
#header,
#footer { color: blue; font-size:
12px; }




                            Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
CSS Selectors - Targeting page content




       Descendant Selectors

#main p { color: blue; font-size: 12px; }




                            Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
CSS Selectors - Targeting page content




           CSS Gotchas

      ➡ No whitespace or special
         characters
      ➡ CSS is case-sensitive




                         Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
CSS - Cascading Style Sheets




 How do browsers read
      CSS rules?



                         Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
How Browsers read selectors




Browsers read from right to left

 #main .content p a { color: blue; }




                          Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
How Browsers read selectors




Browsers read from right to left

 #main .content p a { color: blue; }




                          Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
How Browsers read selectors




Browsers read from right to left

 #main .content p a { color: blue; }




                          Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
How Browsers read selectors




Browsers read from right to left

 #main .content p a { color: blue; }




                          Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
How Browsers read selectors




Browsers read from right to left

 #main .content p a { color: blue; }




                          Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
CSS - Cascading Style Sheets




            Inheritance




                         Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
CSS - Cascading Style Sheets



            Inheritance
h1 { font-family: Arial; color: #333; }
h2 { font-family: Arial; color: #333; }
h3 { font-family: Arial; color: #333; }
p { font-family: Arial; color: #333; }
address { font-family: Arial; color: #333; }




                         Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
CSS - Cascading Style Sheets



            Inheritance

body { font-family: Arial; color: #333; }




                         Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
CSS - Cascading Style Sheets



                Specificity
      How browsers deal with
         conflicting rules

           ID                        100
          Class                       10
         Element                       1

                         Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
CSS - Cascading Style Sheets


             Specificity
 Selector    ID   classes       elements                Total

  body       0      0                  1                   1

 #footer     1      0                  0                 100

  .intro     0      1                  0                  10

  div p      0      0                  2                   2

#content p   1      0                  1                 101

                            Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
CSS - Cascading Style Sheets


            Specificity
h1 { color: black; }
.title { color: blue; }
#header h1 { color: yellow; }
#header .title { color: green; }



<div id="header">
  <h1 class="title">Hello World</h1>
<div>



                         Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
?
How do we add CSS
to HTML documents?

         Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Different Ways to embed CSS into HTML




           Inline Styles




                        Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Different Ways to embed CSS into HTML




           Inline Styles

 <p style="">This is blue.</p>




                        Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Different Ways to embed CSS into HTML




             Inline Styles

<p style="color: blue;">This is blue.</
                  p>




                          Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Different Ways to embed CSS into HTML




       Embedded Styles

          <style></style>




                        Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Different Ways to embed CSS into HTML

                Embedded Styles

<!DOCTYPE html>
<html>
<head>
	 <title>Sample HTML Document</title>
	 <style>
      p { color: blue; }
	 </style>
</head>
<body>
	 <p>Hello World</p>
</body>
</html>




                              Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Different Ways to embed CSS into HTML




  External Stylesheet files




                        Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Different Ways to embed CSS into HTML

         External Stylesheet Files



p {
  color: blue;
  font-size: 12px;
}

                             Save file as css/style.css




                        Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Different Ways to embed CSS into HTML

             External Stylesheet Files


<!DOCTYPE html>
<html>
<head>
	   <title>Sample HTML Document</title>
	   <link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>
	   <p>Hello World</p>
</body>
</html>




                                    Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Basics

    Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
PHP Basics




<?php
?>

             Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Questions?

      Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
Thank you.

      Intro to Hacking — Tweet! @ptahdunbar #wpworkshop

Más contenido relacionado

La actualidad más candente

Improving the Responsive Web Design Process in 2016
Improving the Responsive Web Design Process in 2016Improving the Responsive Web Design Process in 2016
Improving the Responsive Web Design Process in 2016Cristina Chumillas
 
Rapid and Responsive - UX to Prototype with Bootstrap
Rapid and Responsive - UX to Prototype with BootstrapRapid and Responsive - UX to Prototype with Bootstrap
Rapid and Responsive - UX to Prototype with BootstrapJosh Jeffryes
 
jQuery For Beginners - jQuery Conference 2009
jQuery For Beginners - jQuery Conference 2009jQuery For Beginners - jQuery Conference 2009
jQuery For Beginners - jQuery Conference 2009Ralph Whitbeck
 
Reno-Tahoe WordCamp 2011 - WordPress End User Security - Dre Armeda
Reno-Tahoe WordCamp 2011 - WordPress End User Security - Dre ArmedaReno-Tahoe WordCamp 2011 - WordPress End User Security - Dre Armeda
Reno-Tahoe WordCamp 2011 - WordPress End User Security - Dre ArmedaDre Armeda
 
Theming in WordPress - Where do I Start?
Theming in WordPress - Where do I Start?Theming in WordPress - Where do I Start?
Theming in WordPress - Where do I Start?Edmund Turbin
 
NEPA BlogCon 2013 - WordPress Customization & Security
NEPA BlogCon 2013 - WordPress Customization & SecurityNEPA BlogCon 2013 - WordPress Customization & Security
NEPA BlogCon 2013 - WordPress Customization & SecurityMichelle Davies (Hryvnak)
 
Haml And Sass In 15 Minutes
Haml And Sass In 15 MinutesHaml And Sass In 15 Minutes
Haml And Sass In 15 MinutesPatrick Crowley
 
Front End Best Practices
Front End Best PracticesFront End Best Practices
Front End Best PracticesHolger Bartel
 
Child Theming: An Introduction to Wordpress Theme Development with Wordpres...
Child Theming: An Introduction to  Wordpress Theme Development  with Wordpres...Child Theming: An Introduction to  Wordpress Theme Development  with Wordpres...
Child Theming: An Introduction to Wordpress Theme Development with Wordpres...Aban Nesta
 
Theme development essentials columbus oh word camp 2012
Theme development essentials   columbus oh word camp 2012Theme development essentials   columbus oh word camp 2012
Theme development essentials columbus oh word camp 2012Joe Querin
 
Doing More with LESS for CSS
Doing More with LESS for CSSDoing More with LESS for CSS
Doing More with LESS for CSSTodd Anglin
 
光速テーマ開発のコツ
光速テーマ開発のコツ光速テーマ開発のコツ
光速テーマ開発のコツHishikawa Takuro
 
What Is WordPress and Why Is Everyone Talking About It?
What Is WordPress and Why Is Everyone Talking About It?What Is WordPress and Why Is Everyone Talking About It?
What Is WordPress and Why Is Everyone Talking About It?BobWP.com
 
Elastic: Why WYSIWYG is the future of WordPress themes — WordCamp NYC 2009
Elastic: Why WYSIWYG is the future of WordPress themes — WordCamp NYC 2009Elastic: Why WYSIWYG is the future of WordPress themes — WordCamp NYC 2009
Elastic: Why WYSIWYG is the future of WordPress themes — WordCamp NYC 2009Daryl Koopersmith
 
PHPをさわらず作る!デザイナーさんのためのWordPress【超!初級】
PHPをさわらず作る!デザイナーさんのためのWordPress【超!初級】PHPをさわらず作る!デザイナーさんのためのWordPress【超!初級】
PHPをさわらず作る!デザイナーさんのためのWordPress【超!初級】Mami Kuroki
 
Cache Rules Everything Around Me
Cache Rules Everything Around MeCache Rules Everything Around Me
Cache Rules Everything Around MeRussell Heimlich
 
Sass: The Future of Stylesheets
Sass: The Future of StylesheetsSass: The Future of Stylesheets
Sass: The Future of Stylesheetschriseppstein
 

La actualidad más candente (20)

Improving the Responsive Web Design Process in 2016
Improving the Responsive Web Design Process in 2016Improving the Responsive Web Design Process in 2016
Improving the Responsive Web Design Process in 2016
 
Rapid and Responsive - UX to Prototype with Bootstrap
Rapid and Responsive - UX to Prototype with BootstrapRapid and Responsive - UX to Prototype with Bootstrap
Rapid and Responsive - UX to Prototype with Bootstrap
 
jQuery For Beginners - jQuery Conference 2009
jQuery For Beginners - jQuery Conference 2009jQuery For Beginners - jQuery Conference 2009
jQuery For Beginners - jQuery Conference 2009
 
Reno-Tahoe WordCamp 2011 - WordPress End User Security - Dre Armeda
Reno-Tahoe WordCamp 2011 - WordPress End User Security - Dre ArmedaReno-Tahoe WordCamp 2011 - WordPress End User Security - Dre Armeda
Reno-Tahoe WordCamp 2011 - WordPress End User Security - Dre Armeda
 
Theming in WordPress - Where do I Start?
Theming in WordPress - Where do I Start?Theming in WordPress - Where do I Start?
Theming in WordPress - Where do I Start?
 
&lt;?php + WordPress
&lt;?php + WordPress&lt;?php + WordPress
&lt;?php + WordPress
 
Css3
Css3Css3
Css3
 
NEPA BlogCon 2013 - WordPress Customization & Security
NEPA BlogCon 2013 - WordPress Customization & SecurityNEPA BlogCon 2013 - WordPress Customization & Security
NEPA BlogCon 2013 - WordPress Customization & Security
 
Haml And Sass In 15 Minutes
Haml And Sass In 15 MinutesHaml And Sass In 15 Minutes
Haml And Sass In 15 Minutes
 
Front End Best Practices
Front End Best PracticesFront End Best Practices
Front End Best Practices
 
Child Theming: An Introduction to Wordpress Theme Development with Wordpres...
Child Theming: An Introduction to  Wordpress Theme Development  with Wordpres...Child Theming: An Introduction to  Wordpress Theme Development  with Wordpres...
Child Theming: An Introduction to Wordpress Theme Development with Wordpres...
 
Theme development essentials columbus oh word camp 2012
Theme development essentials   columbus oh word camp 2012Theme development essentials   columbus oh word camp 2012
Theme development essentials columbus oh word camp 2012
 
Doing More with LESS for CSS
Doing More with LESS for CSSDoing More with LESS for CSS
Doing More with LESS for CSS
 
光速テーマ開発のコツ
光速テーマ開発のコツ光速テーマ開発のコツ
光速テーマ開発のコツ
 
What Is WordPress and Why Is Everyone Talking About It?
What Is WordPress and Why Is Everyone Talking About It?What Is WordPress and Why Is Everyone Talking About It?
What Is WordPress and Why Is Everyone Talking About It?
 
SASS for WordPress Workshop
SASS for WordPress WorkshopSASS for WordPress Workshop
SASS for WordPress Workshop
 
Elastic: Why WYSIWYG is the future of WordPress themes — WordCamp NYC 2009
Elastic: Why WYSIWYG is the future of WordPress themes — WordCamp NYC 2009Elastic: Why WYSIWYG is the future of WordPress themes — WordCamp NYC 2009
Elastic: Why WYSIWYG is the future of WordPress themes — WordCamp NYC 2009
 
PHPをさわらず作る!デザイナーさんのためのWordPress【超!初級】
PHPをさわらず作る!デザイナーさんのためのWordPress【超!初級】PHPをさわらず作る!デザイナーさんのためのWordPress【超!初級】
PHPをさわらず作る!デザイナーさんのためのWordPress【超!初級】
 
Cache Rules Everything Around Me
Cache Rules Everything Around MeCache Rules Everything Around Me
Cache Rules Everything Around Me
 
Sass: The Future of Stylesheets
Sass: The Future of StylesheetsSass: The Future of Stylesheets
Sass: The Future of Stylesheets
 

Similar a Wcphx 2012-workshop

Modifying your themes design - Learning CSS - Atlanta WordPress users group
Modifying your themes design - Learning CSS - Atlanta WordPress users groupModifying your themes design - Learning CSS - Atlanta WordPress users group
Modifying your themes design - Learning CSS - Atlanta WordPress users groupEvan Mullins
 
Introduction to WordPress Security
Introduction to WordPress SecurityIntroduction to WordPress Security
Introduction to WordPress SecurityShawn Hooper
 
Club website demo
Club website demoClub website demo
Club website demoblstov
 
Deliverance talk at plone meetup
Deliverance talk at plone meetupDeliverance talk at plone meetup
Deliverance talk at plone meetupJazkarta, Inc.
 
Grok Drupal (7) Theming - 2011 Feb update
Grok Drupal (7) Theming - 2011 Feb updateGrok Drupal (7) Theming - 2011 Feb update
Grok Drupal (7) Theming - 2011 Feb updateLaura Scott
 
Web-02-HTML.pptx
Web-02-HTML.pptxWeb-02-HTML.pptx
Web-02-HTML.pptxjoeveller
 
An Intro to HTML & CSS
An Intro to HTML & CSSAn Intro to HTML & CSS
An Intro to HTML & CSSShay Howe
 
Club website demo
Club website demoClub website demo
Club website demoblstov
 
Building the basics (WordPress Ottawa 2014)
Building the basics (WordPress Ottawa 2014)Building the basics (WordPress Ottawa 2014)
Building the basics (WordPress Ottawa 2014)christopherfross
 
GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1Heather Rock
 
Theming websites effortlessly with Deliverance (CMSExpo 2010)
Theming websites effortlessly with Deliverance (CMSExpo 2010)Theming websites effortlessly with Deliverance (CMSExpo 2010)
Theming websites effortlessly with Deliverance (CMSExpo 2010)Jazkarta, Inc.
 
Class 2: CSS Selectors, Classes & Ids
Class 2: CSS Selectors, Classes & IdsClass 2: CSS Selectors, Classes & Ids
Class 2: CSS Selectors, Classes & IdsErika Tarte
 
WordPress Development Confoo 2010
WordPress Development Confoo 2010WordPress Development Confoo 2010
WordPress Development Confoo 2010Brendan Sera-Shriar
 
What you need to know bout html5
What you need to know bout html5What you need to know bout html5
What you need to know bout html5Kevin DeRudder
 
UI Design with HTML5 & CSS3
UI Design with HTML5 & CSS3UI Design with HTML5 & CSS3
UI Design with HTML5 & CSS3Shay Howe
 

Similar a Wcphx 2012-workshop (20)

Modifying your themes design - Learning CSS - Atlanta WordPress users group
Modifying your themes design - Learning CSS - Atlanta WordPress users groupModifying your themes design - Learning CSS - Atlanta WordPress users group
Modifying your themes design - Learning CSS - Atlanta WordPress users group
 
Introduction to WordPress Security
Introduction to WordPress SecurityIntroduction to WordPress Security
Introduction to WordPress Security
 
Club website demo
Club website demoClub website demo
Club website demo
 
Deliverance talk at plone meetup
Deliverance talk at plone meetupDeliverance talk at plone meetup
Deliverance talk at plone meetup
 
Grok Drupal (7) Theming - 2011 Feb update
Grok Drupal (7) Theming - 2011 Feb updateGrok Drupal (7) Theming - 2011 Feb update
Grok Drupal (7) Theming - 2011 Feb update
 
Html5 ux london
Html5 ux londonHtml5 ux london
Html5 ux london
 
Web-02-HTML.pptx
Web-02-HTML.pptxWeb-02-HTML.pptx
Web-02-HTML.pptx
 
Web development basics
Web development basicsWeb development basics
Web development basics
 
Day of code
Day of codeDay of code
Day of code
 
An Intro to HTML & CSS
An Intro to HTML & CSSAn Intro to HTML & CSS
An Intro to HTML & CSS
 
Intro to HTML 5 / CSS 3
Intro to HTML 5 / CSS 3Intro to HTML 5 / CSS 3
Intro to HTML 5 / CSS 3
 
Critical Rendering Path
Critical Rendering PathCritical Rendering Path
Critical Rendering Path
 
Club website demo
Club website demoClub website demo
Club website demo
 
Building the basics (WordPress Ottawa 2014)
Building the basics (WordPress Ottawa 2014)Building the basics (WordPress Ottawa 2014)
Building the basics (WordPress Ottawa 2014)
 
GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1
 
Theming websites effortlessly with Deliverance (CMSExpo 2010)
Theming websites effortlessly with Deliverance (CMSExpo 2010)Theming websites effortlessly with Deliverance (CMSExpo 2010)
Theming websites effortlessly with Deliverance (CMSExpo 2010)
 
Class 2: CSS Selectors, Classes & Ids
Class 2: CSS Selectors, Classes & IdsClass 2: CSS Selectors, Classes & Ids
Class 2: CSS Selectors, Classes & Ids
 
WordPress Development Confoo 2010
WordPress Development Confoo 2010WordPress Development Confoo 2010
WordPress Development Confoo 2010
 
What you need to know bout html5
What you need to know bout html5What you need to know bout html5
What you need to know bout html5
 
UI Design with HTML5 & CSS3
UI Design with HTML5 & CSS3UI Design with HTML5 & CSS3
UI Design with HTML5 & CSS3
 

Último

AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 

Último (20)

AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 

Wcphx 2012-workshop

  • 1. Intro to Hacking Workshop HTML, CSS, & PHP Basics Miami Beach, FL 2012 #wpworkshop Powered by Ptah Dunbar Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 2. ? What are you going to learn today? Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 3. Development Environment Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 4. Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 5. CSS Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 6. Basics Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 7. Are you Ready ? Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 8. Development Environment Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 9. Setting up a local development enviroment You need: ✓ A Web Server (Apache) w/ PHP ✓ Text Editor (for plain text docs) ✓ Web Browser(s) (Latest Firefox, Chrome, Safari, Opera, IE) Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 10. Setting up a local development enviroment For Windows: ✓ WAMP (http://wampserver.com) ✓ Notepad++ (http://notepad-plus- plus.org) Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 11. Setting up a local development enviroment For Mac: ✓ MAMP (http://mamp.info) ✓ Text Wrangler (http://barebones.com/products/textwrangler/) ✓ TextMate (http://macromates.com/) Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 12. Download & Install ... now. Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 13. Verify that everything works http:// localhost/ Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 14. Setting up your web directory ✓ Navigate to web directory. ✓ Create a new folder called “workshop”. ✓ Within “workshop”, create a subfolder called “css”. Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 15. Setting up your web directory Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 16. You’re now Ready for Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 17. Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 18. What is HTML? Hyper Text Markup Language Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 19. What is HTML? Elements & Tags <html></html> Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 20. What is HTML? Elements & Tags <img /> Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 21. What is HTML? Attributes <html lang="en"></html> Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 22. What is HTML? Attributes <img src="image.png" /> Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 23. What is HTML? Attributes <audio controls></audio> Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 24. What is HTML? Comments <!-- this is a comment --> Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 25. What is HTML? Comments <!-- this is a multi-line comment --> Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 26. Basic HTML document — Hello World! <!DOCTYPE html> <html> <head> <title>Sample HTML Document</title> </head> <body> <p>Hello World</p> </body> </html> Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 27. Basic HTML document — Hello World! <!DOCTYPE html> <html> <head> <title>Sample HTML Document</title> </head> <body> <p>Hello World</p> </body> </html> Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 28. Basic HTML document — Hello World! <!DOCTYPE html> <html> <head> <title>Sample HTML Document</title> </head> <body> <p>Hello World</p> </body> </html> Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 29. Basic HTML document — Hello World! <!DOCTYPE html> <html> <head> <title>Sample HTML Document</title> </head> <body> <p>Hello World</p> </body> </html> Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 30. Basic HTML document — Hello World! <!DOCTYPE html> <html> <head> <title>Sample HTML Document</title> </head> <body> <p>Hello World</p> </body> </html> Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 31. Basic HTML document — Hello World! <!DOCTYPE html> <html> <head> <title>Sample HTML Document</title> </head> <body> <p>Hello World</p> </body> </html> Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 32. Basic HTML document — Hello World! <!DOCTYPE html> <html> <head> <title>Sample HTML Document</title> </head> <body> <p>Hello World</p> </body> </html> Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 33. Web Standards World Wide Web WHATWG Consortium Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 34. Workshop. Follow my lead... Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 35. Save document as hello-world.html <!DOCTYPE html> <html> <head> <title>Sample HTML Document</title> </head> <body> <!-- Hello World --> </body> </html> Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 36. Overview of (some) HTML tags • Paragraphs (p) • Headings (h1-h6) • Text Formatting (em, strong, blockquote) • Lists (ul, ol, dl) • Links (a) • Images (img) Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 37. Structuring HTML Documents Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 38. Structuring HTML Documents <article> <header> <aside> <footer> <nav> <div> <section> Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 39. CSS Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 40. What is CSS? Cascading Style Sheets Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 41. What is CSS? A CSS Rule h1 { color: blue; font-size: 12px; } Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 42. What is CSS? Selector h1 { color: blue; font-size: 12px; } Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 43. What is CSS? Declaration h1 { color: blue; font-size: 12px; } Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 44. What is CSS? Property: value; h1 { color: blue; font-size: 12px; } Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 45. What is CSS? Declarations h1 { color: blue; font-size: 12px; } Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 46. What is CSS? Comments /* This is a comment. */ Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 47. What is CSS? Comments /* This is a multi-line comment. */ Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 48. What is CSS? Targeting page content using selectors Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 49. CSS Selectors - Targeting page content By element h1 { color: blue; font-size: 12px; } Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 50. CSS Selectors - Targeting page content By element h1 { color: blue; font-size: 12px; } <h1>I’m being targetted!</h1> Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 51. CSS Selectors - Targeting page content By class attribute .title { color: blue; font-size: 12px; } Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 52. CSS Selectors - Targeting page content By class attribute .title { color: blue; font-size: 12px; } <h2 class="title">I’m being targetted!</ h2> Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 53. CSS Selectors - Targeting page content By ID attribute #footer { color: blue; font-size: 12px; } Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 54. CSS Selectors - Targeting page content By ID attribute #footer { color: blue; font-size: 12px; } <div id="footer">I’m being targetted!</ div> Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 55. CSS Selectors - Targeting page content Grouping Selectors #header, #footer { color: blue; font-size: 12px; } Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 56. CSS Selectors - Targeting page content Descendant Selectors #main p { color: blue; font-size: 12px; } Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 57. CSS Selectors - Targeting page content CSS Gotchas ➡ No whitespace or special characters ➡ CSS is case-sensitive Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 58. CSS - Cascading Style Sheets How do browsers read CSS rules? Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 59. How Browsers read selectors Browsers read from right to left #main .content p a { color: blue; } Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 60. How Browsers read selectors Browsers read from right to left #main .content p a { color: blue; } Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 61. How Browsers read selectors Browsers read from right to left #main .content p a { color: blue; } Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 62. How Browsers read selectors Browsers read from right to left #main .content p a { color: blue; } Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 63. How Browsers read selectors Browsers read from right to left #main .content p a { color: blue; } Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 64. CSS - Cascading Style Sheets Inheritance Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 65. CSS - Cascading Style Sheets Inheritance h1 { font-family: Arial; color: #333; } h2 { font-family: Arial; color: #333; } h3 { font-family: Arial; color: #333; } p { font-family: Arial; color: #333; } address { font-family: Arial; color: #333; } Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 66. CSS - Cascading Style Sheets Inheritance body { font-family: Arial; color: #333; } Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 67. CSS - Cascading Style Sheets Specificity How browsers deal with conflicting rules ID 100 Class 10 Element 1 Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 68. CSS - Cascading Style Sheets Specificity Selector ID classes elements Total body 0 0 1 1 #footer 1 0 0 100 .intro 0 1 0 10 div p 0 0 2 2 #content p 1 0 1 101 Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 69. CSS - Cascading Style Sheets Specificity h1 { color: black; } .title { color: blue; } #header h1 { color: yellow; } #header .title { color: green; } <div id="header"> <h1 class="title">Hello World</h1> <div> Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 70. ? How do we add CSS to HTML documents? Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 71. Different Ways to embed CSS into HTML Inline Styles Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 72. Different Ways to embed CSS into HTML Inline Styles <p style="">This is blue.</p> Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 73. Different Ways to embed CSS into HTML Inline Styles <p style="color: blue;">This is blue.</ p> Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 74. Different Ways to embed CSS into HTML Embedded Styles <style></style> Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 75. Different Ways to embed CSS into HTML Embedded Styles <!DOCTYPE html> <html> <head> <title>Sample HTML Document</title> <style> p { color: blue; } </style> </head> <body> <p>Hello World</p> </body> </html> Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 76. Different Ways to embed CSS into HTML External Stylesheet files Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 77. Different Ways to embed CSS into HTML External Stylesheet Files p { color: blue; font-size: 12px; } Save file as css/style.css Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 78. Different Ways to embed CSS into HTML External Stylesheet Files <!DOCTYPE html> <html> <head> <title>Sample HTML Document</title> <link rel="stylesheet" type="text/css" href="css/style.css" /> </head> <body> <p>Hello World</p> </body> </html> Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 79. Basics Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 80. PHP Basics <?php ?> Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 81. Questions? Intro to Hacking — Tweet! @ptahdunbar #wpworkshop
  • 82. Thank you. Intro to Hacking — Tweet! @ptahdunbar #wpworkshop

Notas del editor

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. Setting up a local development enviroment, you need:\nA web server (apache)\nThe PHP interpreter\nA Text Editor that can edit plain text documents, not Word.\nAnd a web browser of your choice. I recommend Chrome, or Firefox.\nYou won&amp;#x2019;t be needing a database in this class, however it&amp;#x2019;s important to have when working with PHP applications like WordPress.\n
  10. \n
  11. \n
  12. \n
  13. Setting up a local development enviroment, you need:\nA web server (apache)\nThe PHP interpreter\nA Text Editor that can edit plain text documents, not Word.\nAnd a web browser of your choice. I recommend Chrome, or Firefox.\nYou won&amp;#x2019;t be needing a database in this class, however it&amp;#x2019;s important to have when working with PHP applications like WordPress.\n
  14. Setting up a local development enviroment, you need:\nA web server (apache)\nThe PHP interpreter\nA Text Editor that can edit plain text documents, not Word.\nAnd a web browser of your choice. I recommend Chrome, or Firefox.\nYou won&amp;#x2019;t be needing a database in this class, however it&amp;#x2019;s important to have when working with PHP applications like WordPress.\n
  15. Setting up a local development enviroment, you need:\nA web server (apache)\nThe PHP interpreter\nA Text Editor that can edit plain text documents, not Word.\nAnd a web browser of your choice. I recommend Chrome, or Firefox.\nYou won&amp;#x2019;t be needing a database in this class, however it&amp;#x2019;s important to have when working with PHP applications like WordPress.\n
  16. \n
  17. The language of the web.\nThe markup langauge for all web pages on the internet.\nEasy to learn.\n
  18. HTML stands for Hyper Text Markup Language\nHTML is not a programming language, it is a markup language\nA markup language is a set of markup tags\nHTML uses markup tags to describe web pages\nAdds meaning to content for browsers and search engines to parse and understand.\n
  19. HTML elements reserved HTML keywords used for the markup langauge\nHTML tags are a combination of elements and open and closing tags.\nHTML tags normally come in pairs like &lt;b&gt; and &lt;/b&gt;\nStart and end tags are also called opening tags and closing tags\n\n
  20. Here&amp;#x2019;s an example of a self-closing HTML tag.\n\n
  21. HTML elements can have attributes\nAttributes provide additional information about an element\nAttributes are always specified in the start tag\nAttributes come in name/value pairs like: name=&quot;value&quot;\nAttributes can also have blank values\n\n
  22. HTML elements can have attributes\nAttributes provide additional information about an element\nAttributes are always specified in the start tag\nAttributes come in name/value pairs like: name=&quot;value&quot;\nAttributes can also have blank values\n
  23. HTML elements can have attributes\nAttributes provide additional information about an element\nAttributes are always specified in the start tag\nAttributes come in name/value pairs like: name=&quot;value&quot;\nAttributes can also have blank values\n
  24. HTML contains comments, which are not interpreted by the browser.\nComments can span multiple lines\n
  25. HTML contains comments, which are not interpreted by the browser.\nComments can span multiple lines\n
  26. This is a basic HTML document.\nThis is all you need to create an HTML document\n
  27. The HTML tag represents the root of an HTML document.\nTells the browser that everything inside those tags are to be interpreted as HTML.\n
  28. The HEAD element contains meta data&amp;#x2014;information that describes the document itself.\nIt&amp;#x2019;s also where you can include resources, such as style sheets and javascript.\n\n
  29. The TITLE element represents the document&apos;s title or name.\nIn this case, the title of this page is called &amp;#x201C;Sample HTML Document&amp;#x201D;.\nThis is the text that shows up in search engine results pages.\n
  30. The body element represents the main content of the document.\nEverything that you can see in the browser window is contained inside this element.\n
  31. The p element represents a paragraph.\nA paragraph is typically a run of phrasing content that forms a block of text with one or more sentences.\nMost readable content on a page is contained within paragraph tags.\n
  32. A DOCTYPE is a required preamble.\nThere are two types of rendering modes for HTML documents. Quirks mode and Standards Mode.\nQuirks mode renders HTML documents accounting for legacy browsers and bugs. 9 out of 10 times, you don&amp;#x2019;t want this.\nStandards mode tries to render an HTML document using the latest web standards specifications.\nWhen omitted, browsers will often render the document in quirks mode, which you don&amp;#x2019;t want.\n
  33. The W3C is an international community that develops open standards for the web.\nBoth, w3c and WHATWG are made up of members from Apple, Google, Microsoft, and Opera, amongst others.\nTogether, they develop specifications like HTML and CSS (amongst others) so that we as authors of the web can create one HTML document that works across any device/browser.\nHTML has a busy history, ranging from abandoning the standard HTML spec itself, trying to move towards a more stricter language akin to XML. Given that moving towards a more stricter HTML dubbed XHTML, which would break millions of web pages already created in standard HTML, folks from Apple, Mozilla and Opera decided to do something about it and create a group that would advance the standard HTML specification with modern improvements and APIs, all while preserving backwards compatiblity.\nThis group is called The Web Hypertext Application Technology Working Group, also known as WHATWG.\nThey pushed HTML5 which the w3c later adopted and went along with.\nAll this means is that HTML is keeping up with the pace of what we demand from the web, which is increasingly becoming faster, better, and stronger! Examples: Instant load times, complex interfaces, online gaming.\n
  34. \n
  35. Create this document and save it as &amp;#x201C;hello-world.html&amp;#x201D;\nVisit the page in a browser. (localhost/hello-world.html)\n\n
  36. \n
  37. \n
  38. These are the tags used when structuring your layouts.\n\nA section is a thematic grouping of content, typically with a heading.\n\nThe article element represents a self-contained piece of content that can in principle, be distributable or reusable, e.g. feeds.\n\nExamples: forum post, a magazine or newspaper article, a blog entry, a user-submitted comment, an interactive widget or gadget, or any other independent item of content.\n\n\n\n
  39. \n
  40. CSS stands for Cascading Style Sheets\nStyles define how to display HTML elements\nStyles were added to HTML to solve a problem\nWhereas HTML defines the structure of a document, CSS defines the look &amp; feel of a document.\nCSS is not a programming language. Don&amp;#x2019;t be sacred\n
  41. A CSS rule has two main parts: a selector, and one or more declarations:\n
  42. A CSS rule has two main parts: a selector, and one or more declarations:\n
  43. A CSS rule has two main parts: a selector, and one or more declarations:\n
  44. A CSS rule has two main parts: a selector, and one or more declarations:\n
  45. Declarations consists of a property and a value.\nA CSS declaration always ends with a semicolon\nand declaration groups are surrounded by curly brackets\n
  46. A CSS comment begins with &quot;/*&quot;, and ends with &quot;*/&quot;\n
  47. A CSS comment begins with &quot;/*&quot;, and ends with &quot;*/&quot;\n
  48. CSS stands for Cascading Style Sheets\nStyles define how to display HTML elements\nStyles were added to HTML to solve a problem\nExternal Style Sheets can save a lot of work\nExternal Style Sheets are stored in CSS files\n\n
  49. Global Selectors based on HTML elements\n
  50. \n
  51. Attribute selectors based on class attributes applied on HTML elements\n
  52. \n
  53. Attribute selectors based on id attribute applied on HTML elements\n
  54. A selector can be\n
  55. You can group selectors by commas\n
  56. \n
  57. \n
  58. CSS stands for Cascading Style Sheets\nStyles define how to display HTML elements\nStyles were added to HTML to solve a problem\nExternal Style Sheets can save a lot of work\nExternal Style Sheets are stored in CSS files\n\n
  59. Global Selectors based on HTML elements\n
  60. Global Selectors based on HTML elements\n
  61. Global Selectors based on HTML elements\n
  62. Global Selectors based on HTML elements\n
  63. Global Selectors based on HTML elements\n
  64. \n
  65. CSS stands for Cascading Style Sheets\nStyles define how to display HTML elements\nStyles were added to HTML to solve a problem\nExternal Style Sheets can save a lot of work\nExternal Style Sheets are stored in CSS files\n\n
  66. CSS stands for Cascading Style Sheets\nStyles define how to display HTML elements\nStyles were added to HTML to solve a problem\nExternal Style Sheets can save a lot of work\nExternal Style Sheets are stored in CSS files\n\n
  67. ID = 100\nClass = 10\nElements = 1\nTotal is the sum\n\n
  68. \n
  69. CSS stands for Cascading Style Sheets\nStyles define how to display HTML elements\nStyles were added to HTML to solve a problem\nExternal Style Sheets can save a lot of work\nExternal Style Sheets are stored in CSS files\n\n
  70. \n
  71. Three ways to embedd CSS into HTML documents.\n
  72. Three ways to embedd CSS into HTML documents.&amp;#x201D;\n
  73. Three ways to embedd CSS into HTML documents.&amp;#x201D;\n
  74. \n
  75. Three ways to embedd CSS into HTML documents.\n
  76. \n
  77. Three ways to embedd CSS into HTML documents.\n
  78. Three ways to embedd CSS into HTML documents.\n
  79. \n
  80. These are the tags used when structuring your layouts.\n\nA section is a thematic grouping of content, typically with a heading.\n\nThe article element represents a self-contained piece of content that can in principle, be distributable or reusable, e.g. feeds.\n\nExamples: forum post, a magazine or newspaper article, a blog entry, a user-submitted comment, an interactive widget or gadget, or any other independent item of content.\n\n\n\n
  81. \n
  82. \n