SlideShare a Scribd company logo
< html > + css
  how can I craft webpages
Who am I




             Dimitris Tsironis
                 Founder at Geembo
           Javascript Developer at Bugsense
                       Ingredients:
                  50% code / 50% design
First, a story
from good old days
What is HTML


                      Hyper
                      Text
                      Markup
                      Language
               It’s just text with superpowers!
          It’s what your browser is made for.
Basic elements



   HTML consists of elements

      Heading, paragraphs, articles, anchor links
      Images, video, audio

      Metadata, scripts and stylesheets
How it works



   HTML needs this to work

      a text-based file
      doctype, html, head & body tags

      some actual content
      and you’re good to go...
HTML elements


  Heading 1 - <h1>This is a title</h1>

  Paragraph - <p>This is a paragraph</p>

  Anchor link - <a href=”#”>This is a link</a>

  div - <div>This is a general element</div>

  img - <img src=”/path/to/logo.png” />

  input - <input type=”text” name=”name” />
Classes & IDs


  HTML has classes and IDs to make elements
  easier to distinguish

      Classes are more generic, like a box, button etc.

      IDs are very specific and must be used with caution
Basic example

 HTML is as simple as ABC
Basic example

 …which actually is
Box model


   HTML elements always behave like boxes

      the most important thing about HTML
      it will help you get to the next level

      required to make a solid structure
      required to debug HTML
Box model


  Here’s the previous example. See the boxes?
Box model


  Here’s the previous example. See the boxes?
disappointed.
this page looks bad.
What is CSS



                   Cascading
                   Style
                   Seets

          It’s what makes your HTML beautiful.
Basic CSS rules



   CSS consists of rules, like this one

    h1       {color: black; text-align:center;}
  selector     declaration #1    declaration #2
Basic CSS rules



   Some details about CSS rules

      selector defines what HTML element to target
      declaration have a property and a value
      declarations in a block, defined by brackets{...}
CSS selectors

  CSS selectors are used to target specific HTML
  elements with rules
   h1 {...}       <h1>This is a title</h1>

   p   {...}      <p>This is a paragraph</p>

   .active{...}   <div class=”active”></div>

   .active{...}   <img class=”active”></img>

   #signup{...}   <button id=”signup”></button>
IT’S A
TRAP!
Never, ever, ever, ever
 use IDs in your CSS!

Seriously, don’t do this. It’s messy.

You’ll end with super strong selectors that
you can’t override.
Tools you’ll need


   A crappy computer
      Nothing fancy, you probably already have one

   A competent text-editor
      Sublime Text 2 - highly recommended text-editor

   Developer’s tools
      Firebug is recommended, for Firefox & Chrome
Tools you’ll need


   Google search
      Remember, Google has the answer to your problem

   Wamp Server
      Very basic web server for your PC
Resources to read


   Mozilla Developer Network
      The best web library out there
      http://developer.mozilla.org/en-US/

   CSS Tricks
      Your CSS buddy - you can find anything here
      http://www.css-tricks.com/
Resources to read


   Github
      The biggest source code hosting site
      http://github.com/edu

   Codecademy
      You can learn code by doing
      http://www.codecademy.com
Thank you!
       @tsironakos
       @geembohq
tsironis.dimitris@gmail.com

More Related Content

PDF
Html for beginners
PPTX
HTML CSS and Web Development
PDF
Html css crash course may 11th, atlanta
PPT
Lesson 2: Getting To Know HTML
PPT
Web Design 101
PDF
Introduction to HTML5+CSS
PPTX
Web1O1 - Intro to HTML/CSS
Html for beginners
HTML CSS and Web Development
Html css crash course may 11th, atlanta
Lesson 2: Getting To Know HTML
Web Design 101
Introduction to HTML5+CSS
Web1O1 - Intro to HTML/CSS

What's hot (20)

PPTX
HTML Lesson 5
PPTX
HTML Lesson 1
PDF
TMW Code Club Session 1
PPTX
Web development basics
ODP
The ABCs of HTML
PPS
Introduction to Bootstrap: Design for Developers
PDF
Web Design Fundamentals
PPTX
Web 101 intro to html
PDF
Html:css crash course (4:5)
PDF
Intro to HTML & CSS
PDF
Thinkful - Frontend Crash Course - Intro to HTML/CSS
PPTX
Web designing (1) - Html Basic Codding
PDF
Introduction to the Web and HTML
PPTX
Htmlcss1
PDF
Inline, Block and Positioning in CSS
PPTX
Lecture7 web design and development
PDF
PPTX
Html introduction by ikram niaz
PDF
HTML(5) and CSS(3) for beginners - I
HTML Lesson 5
HTML Lesson 1
TMW Code Club Session 1
Web development basics
The ABCs of HTML
Introduction to Bootstrap: Design for Developers
Web Design Fundamentals
Web 101 intro to html
Html:css crash course (4:5)
Intro to HTML & CSS
Thinkful - Frontend Crash Course - Intro to HTML/CSS
Web designing (1) - Html Basic Codding
Introduction to the Web and HTML
Htmlcss1
Inline, Block and Positioning in CSS
Lecture7 web design and development
Html introduction by ikram niaz
HTML(5) and CSS(3) for beginners - I
Ad

Viewers also liked (20)

DOC
تقسیم بندی مخازن و سیالات نفتی
PPT
Barley residences site
PPT
Which tech girl superhero are you
PDF
Digicon2016 Keynote Swinburne University of Technology Melbourne
PDF
Ada lovelaceday141014techgirlsmovementbeekhuyzen
ODP
طراحی، پیاده‌سازی و ارزیابی رایانش توری تحت وب
PPT
Nipah photos and floor plan
PPTX
BAB 2 Sistem Gerak Manusia
PPT
Bungalow @ goodman photos and floor plan
PPT
뉴스페이퍼
PDF
Trabajo final crm af
PDF
Red Ribbon Days Corporate Profile
PPT
PDF
Hertford Location Map and Floor Plans
PPTX
Gebeurtenis
DOCX
software nmap
PPTX
Grabadora de voz
PPT
Skies miltonia location map
PDF
4 bedrooms
PPT
2 1 progettazione ciclo vita vezzoli_polimi_12.13
تقسیم بندی مخازن و سیالات نفتی
Barley residences site
Which tech girl superhero are you
Digicon2016 Keynote Swinburne University of Technology Melbourne
Ada lovelaceday141014techgirlsmovementbeekhuyzen
طراحی، پیاده‌سازی و ارزیابی رایانش توری تحت وب
Nipah photos and floor plan
BAB 2 Sistem Gerak Manusia
Bungalow @ goodman photos and floor plan
뉴스페이퍼
Trabajo final crm af
Red Ribbon Days Corporate Profile
Hertford Location Map and Floor Plans
Gebeurtenis
software nmap
Grabadora de voz
Skies miltonia location map
4 bedrooms
2 1 progettazione ciclo vita vezzoli_polimi_12.13
Ad

Similar to HTML+CSS: how to get started (20)

PDF
Code &amp; design your first website (3:16)
PPTX
HTMLforbeginerslearntocodeforbeginersinfh
PDF
Code & Design Your First Website (Downtown Los Angeles)
PDF
Code & Design your first website 4/18
DOCX
Basic CSS concepts by naveen kumar veligeti
PPTX
WEBSITE DESIGN AND DEVELOPMENT WITH CASCADING STYLE SHEETS(CSS)
DOC
Intermediate Web Design.doc
DOC
Intermediate Web Design.doc
PPTX
Module 5-Positioning and Navigation(Chapters 5 & 6).pptx
PDF
Intro to CSS
PPT
Website designing company in delhi
PPTX
workshopsisnotreallyrrwardingitsinot.pptx
PDF
Everything is Relative: Frameworks, Plugins & SEO
PPTX
Day 2 - Web_Development [basic HTML tags and their functionalities].pptx
PPTX
Web Development PPT from Chd University.
PPT
Please dont touch-3.6-jsday
PDF
Thinkful - HTML/CSS Crash Course (May 4 2017)
PDF
Going native with html5 web components
PDF
web development.pdf
Code &amp; design your first website (3:16)
HTMLforbeginerslearntocodeforbeginersinfh
Code & Design Your First Website (Downtown Los Angeles)
Code & Design your first website 4/18
Basic CSS concepts by naveen kumar veligeti
WEBSITE DESIGN AND DEVELOPMENT WITH CASCADING STYLE SHEETS(CSS)
Intermediate Web Design.doc
Intermediate Web Design.doc
Module 5-Positioning and Navigation(Chapters 5 & 6).pptx
Intro to CSS
Website designing company in delhi
workshopsisnotreallyrrwardingitsinot.pptx
Everything is Relative: Frameworks, Plugins & SEO
Day 2 - Web_Development [basic HTML tags and their functionalities].pptx
Web Development PPT from Chd University.
Please dont touch-3.6-jsday
Thinkful - HTML/CSS Crash Course (May 4 2017)
Going native with html5 web components
web development.pdf

More from Dimitris Tsironis (7)

PDF
Automating Front-End Workflow
PDF
Modern Webapps
PDF
PDF
PDF
Capistrano for non-rubyist
PDF
Coffeescript unfancy javascript
PDF
Coffeescript - take a sip of code
Automating Front-End Workflow
Modern Webapps
Capistrano for non-rubyist
Coffeescript unfancy javascript
Coffeescript - take a sip of code

Recently uploaded (20)

PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
MYSQL Presentation for SQL database connectivity
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Cloud computing and distributed systems.
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Approach and Philosophy of On baking technology
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
sap open course for s4hana steps from ECC to s4
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Unlocking AI with Model Context Protocol (MCP)
MYSQL Presentation for SQL database connectivity
“AI and Expert System Decision Support & Business Intelligence Systems”
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Reach Out and Touch Someone: Haptics and Empathic Computing
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Cloud computing and distributed systems.
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Review of recent advances in non-invasive hemoglobin estimation
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
Network Security Unit 5.pdf for BCA BBA.
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Spectral efficient network and resource selection model in 5G networks
Approach and Philosophy of On baking technology
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Chapter 3 Spatial Domain Image Processing.pdf
sap open course for s4hana steps from ECC to s4

HTML+CSS: how to get started

  • 1. < html > + css how can I craft webpages
  • 2. Who am I Dimitris Tsironis Founder at Geembo Javascript Developer at Bugsense Ingredients: 50% code / 50% design
  • 3. First, a story from good old days
  • 4. What is HTML Hyper Text Markup Language It’s just text with superpowers! It’s what your browser is made for.
  • 5. Basic elements HTML consists of elements Heading, paragraphs, articles, anchor links Images, video, audio Metadata, scripts and stylesheets
  • 6. How it works HTML needs this to work a text-based file doctype, html, head & body tags some actual content and you’re good to go...
  • 7. HTML elements Heading 1 - <h1>This is a title</h1> Paragraph - <p>This is a paragraph</p> Anchor link - <a href=”#”>This is a link</a> div - <div>This is a general element</div> img - <img src=”/path/to/logo.png” /> input - <input type=”text” name=”name” />
  • 8. Classes & IDs HTML has classes and IDs to make elements easier to distinguish Classes are more generic, like a box, button etc. IDs are very specific and must be used with caution
  • 9. Basic example HTML is as simple as ABC
  • 10. Basic example …which actually is
  • 11. Box model HTML elements always behave like boxes the most important thing about HTML it will help you get to the next level required to make a solid structure required to debug HTML
  • 12. Box model Here’s the previous example. See the boxes?
  • 13. Box model Here’s the previous example. See the boxes?
  • 15. What is CSS Cascading Style Seets It’s what makes your HTML beautiful.
  • 16. Basic CSS rules CSS consists of rules, like this one h1 {color: black; text-align:center;} selector declaration #1 declaration #2
  • 17. Basic CSS rules Some details about CSS rules selector defines what HTML element to target declaration have a property and a value declarations in a block, defined by brackets{...}
  • 18. CSS selectors CSS selectors are used to target specific HTML elements with rules h1 {...} <h1>This is a title</h1> p {...} <p>This is a paragraph</p> .active{...} <div class=”active”></div> .active{...} <img class=”active”></img> #signup{...} <button id=”signup”></button>
  • 20. Never, ever, ever, ever use IDs in your CSS! Seriously, don’t do this. It’s messy. You’ll end with super strong selectors that you can’t override.
  • 21. Tools you’ll need A crappy computer Nothing fancy, you probably already have one A competent text-editor Sublime Text 2 - highly recommended text-editor Developer’s tools Firebug is recommended, for Firefox & Chrome
  • 22. Tools you’ll need Google search Remember, Google has the answer to your problem Wamp Server Very basic web server for your PC
  • 23. Resources to read Mozilla Developer Network The best web library out there http://developer.mozilla.org/en-US/ CSS Tricks Your CSS buddy - you can find anything here http://www.css-tricks.com/
  • 24. Resources to read Github The biggest source code hosting site http://github.com/edu Codecademy You can learn code by doing http://www.codecademy.com
  • 25. Thank you! @tsironakos @geembohq tsironis.dimitris@gmail.com