HTML5 & CSS
AN OVERVIEW
HTML5 // Cleaning redundancy


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
HTML5 // Cleaning redundancy




 AM !
B <!doctype html>
HTML5 // Cleaning redundancy


                  <meta http-equiv="Content-Type"
HTML 4.01         content="text/html; charset=utf-8">




                  <?xml version="1.0" encoding="UTF-8"?>
XHTML 1.0         <meta http-equiv="Content-Type"
                  content="text/html; charset=utf-8">
HTML5 // Cleaning redundancy




<meta charset=”utf-8”>
                       BA M!!
               D ouble
HTML5 // Cleaning redundancy



<link rel="stylesheet" href="styles.css" type="text/css" />



<script src=”jquery.js” type=”text/javascript”></script>
HTML5 // Cleaning redundancy



<link rel="stylesheet" href="styles.css" type=”text/css” />



<script src=”jquery.js” type=”text/javascript”></script>
HTML5 // Cleaning redundancy



<link rel="stylesheet" href="styles.css” />



<script src=”jquery.js”></script>




                              ...looks much prettier!
HTML5 // New elements

<header>                                                                    <video>

<nav>                                                                   <figure>

<section>                                                               <footer>

<article>                                                                    <time>

<aside>                                                          <datalist>


           To check all elements: http://joshduck.com/periodic-table.html
HTML5 // Common structure
<body>                           <div class=”article”>
   <div class=”header”>             <h1>Article head</h1>
      <h1>Company logo</h1>         <p>Article paragraph</p>
      <p>Tagline</p>                <div class=”aside”>
   </div>                              <p>pointer for article</p>
   <div class=”nav”>                </div>
      <ul>                       </div>
         <li>link1</li>          <div class=”figure”>
         <li>link2</li>             <img src=”...”>
      </ul>                         <div class=”figcaption”>text</div>
   </div>                        </div>
   <div class=”section”>         <footer>
      <div class=”article”>         &copy;
         <div class=”header”>       <time datetime=”2012-11-08”>
            <h1>...</h1>               2012</time>
         </div>                  </footer>
         <div class=”section”>   </body>
         ...
         </div>
      </div>
HTML5 // Common structure
<body>                           <article>
   <header>                         <h1>Article head</h1>
      <h1>Company logo</h1>         <p>Article paragraph</p>
      <p>Tagline</p>                <aside>
   </header>                           <p>pointer for article</p>
   <nav>                            </aside>
      <ul>                       </article>
         <li>link1</li>          <figure>
         <li>link2</li>             <img src=”...”>
      </ul>                         <figcaption>text</figcaption>
   </nav>                        </figure>
   <section>                     <footer>
      <article>                     &copy;
         <header>                   <time datetime=”2012-11-08”>
            <h1>...</h1>               2012</time>
         </header>               </footer>
         <section>               </body>
         ...
         </section>
      </article>
                              ...much better semantic!
HTML5 // Common structure

<section class=”item”>
   <header>
      <h1></h1>
   </header>
   <footer class=”meta”>...</footer>
   <div class=”content”>
      ...
   </div>
   <nav class=”links”>
   ...
   </nav>
</section>
HTML5 // Common structure



<a href=”#” target=“_blank”>
   <div class=”panel”>
      <h2>Banner title</h2>
      <p>Get your 50% discount now, mofo!</p>
   </div>
</a>
HTML5 // Forms

<input type=”text” required>

<input type=”email” value=”i@i.com”>

<input type=”date” min=”2010-08-14” max=”2016-08-14” value=”2010-08-10”>

<input type=”range” min=”0” max=”50” value=”11”>

<input type=”search” placeholder=”Type city or property”>

<input type=”tel” placeholder=”(353)657778888 patter=”[regexp]”>

<input type=”color” placeholder=”#ff00ff”>

<input type=”number” step=”1” min=”-5” max=”10” value=”0”>




                                             ...example available
HTML5 // Audio & Video




<audio id=”audio” scr=”song.mp3” controls></audio>

<video id=”video” src=”video.mov” autoplay controls></video>
HTML5 // Audio & Video
                          d egrad e grac efully.
                       ...

<video id=”video” src=”video.mov” autoplay controls>
   <object data=”video.mov”>
   <!-- fallback content -->
   </object>
</video>
CSS // Pseudo classes

Relational         Links      Input       Text

:not               :link      :focus      :first-letter
:empty             :visited   :target     :first-line
                   :hover     :enabled    :lang
                   :active    :disabled   ::selection
Position                      :checked


:first-child
:last-child
:nth-child(n)
:nth-of-type(n)
:first-of-type
:last-of-type
:nth-last-of-type(n)
:nth-last-child(n)
:only-of-type
CSS // Pseudo classes

Relational         Links        Input       Text

:not               :link        :focus      :first-letter
:empty             :visited     :target     :first-line
                   :hover       :enabled    :lang
                   :active      :disabled   ::selection
Position                        :checked


:first-child
:last-child
:nth-child(n)
:nth-of-type(n)
                              BAD NEWs...
:first-of-type
:last-of-type
                              Most of these don’t
:nth-last-of-type(n)
:nth-last-child(n)
:only-of-type
                              work on old popular
                              browsers! :(
CSS // Pseudo classes

Relational         Links         Input          Text

:not               :link         :focus         :first-letter
:empty             :visited      :target        :first-line
                   :hover        :enabled       :lang
                   :active       :disabled      ::selection
Position                         :checked


:first-child
:last-child
:nth-child(n)
:nth-of-type(n)
                              SOLUTION?
:first-of-type
:last-of-type
                              Use more markup or
:nth-last-of-type(n)
:nth-last-child(n)            try Selectivizr.com
:only-of-type
CSS // Pseudo classes

Relational         Links        Input        Text

:not               :link        :focus       :first-letter
:empty             :visited     :target      :first-line
                   :hover       :enabled     :lang
                   :active      :disabled    ::selection
Position                        :checked


:first-child
:last-child
:nth-child(n)
:nth-of-type(n)
                              GOOD NEWS...
:first-of-type
:last-of-type
                              They all work great on
:nth-last-of-type(n)
:nth-last-child(n)
:only-of-type
                              IE9, webkit browsers,
                              Firefox and Opera...
CSS // Pseudo classes

Relational         Links         Input         Text

:not               :link         :focus        :first-letter
:empty             :visited      :target       :first-line
                   :hover        :enabled      :lang
                   :active       :disabled     ::selection
Position                         :checked


:first-child
:last-child
:nth-child(n)
:nth-of-type(n)
                              GOOD NEWS...
:first-of-type
:last-of-type
                              ... meaning, very suitable
:nth-last-of-type(n)
:nth-last-child(n)
:only-of-type
                              to work on mobile
                              browsers :)
CSS // Some examples


elem:nth-child(5) { color:orange; }




elem:nth-child(n+6) { color:orange; }




elem:nth-child(-n+5) { color:orange; }




elem:nth-child(4n-7) { color:orange; }
CSS // Some examples


elem:nth-child(odd) { color:orange; }




elem:nth-child(even) { color:orange; }




elem:last-child { color:orange; }




elem:last-child(2) { color:orange; }
CSS // Some examples

 “What goes around comes around”

       <blockquote>
HTML      <p>What goes around comes around</p>
       </blockquote>



       p:before {                 p:after {

CSS       content:’”’;
          color:light-green;
                                     content:’”’;
                                     color:light-green;
       }                          }
CSS // Some examples

                i   WARNING!

HTML   <p class=”warning”>Warning!</p>




       p:before {
CSS       content:””;
          background:url(warning-icon.png) 0 0 no-repeat;
          display:inline-block;
          margin-right:10px;
       }
CSS // Some examples

               i   SIGN UP HERE

HTML   <p class=”sign-up”>sign up here</p>


 CSS   .sign-up:before {
          content:””;
          background:url(warning-icon.png) 0 0 no-repeat;
          display:inline-block;
          margin-right:10px;
       }

       .sign-up:after {
          content:””;
          background:url(arrow.png) 0 0 no-repeat;
          position:absolute;
          bottom:-15px; left:50%;
       }
CSS // Some examples

               i   SIGN UP HERE

HTML   <p class=”sign-up”>sign up here</p>


 CSS   .sign-up:before {
          /* same code as previous slide */
       }

       .sign-up:after {
          content:””;
          position:absolute; bottom:0; left:50%;
          width: 0;
          height: 0;
          border-left: 15px solid transparent;

                                                   ro w im g!
       }
          border-right: 15px solid transparent;
          border-top: 30px solid orange;
                                              no ar
RESOURCES
http://html5doctor.com/css3-pseudo-classes-and-html5-forms
http://www.developer.nokia.com/document/Mobile_Web_Templates_for_Smartphones_Examples/content.html
http://mobilehtml5.org/
http://css-tricks.com/pseudo-class-selectors/
http://css-tricks.com/pseudo-element-roundup/
http://www.sitepoint.com/css3-tabs-using-target-selector/
http://slides.html5rocks.com/#landing-slide
http://selectivizr.com
Thanks!

More Related Content

PDF
Introduccion a HTML5
TXT
PDF
Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)
PDF
Netvibes UWA workshop at ParisWeb 2007
PDF
High-Quality JavaScript
PDF
HTML 5 - Overview
PDF
Opening up the Social Web - Standards that are bridging the Islands
PDF
HTML5 and the web of tomorrow!
Introduccion a HTML5
Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)
Netvibes UWA workshop at ParisWeb 2007
High-Quality JavaScript
HTML 5 - Overview
Opening up the Social Web - Standards that are bridging the Islands
HTML5 and the web of tomorrow!

What's hot (20)

PPTX
PDF
Progressive Prototyping w/HTML5, CSS3 and jQuery
PDF
Html5 ux london
PDF
Prototyping w/HTML5 and CSS3
DOCX
Doctype html public
KEY
Beyond HTML - Scriptsprachen, Frameworks, Templatesprachen und vieles mehr
PDF
Keypoints html5
PPSX
Introduction to Html5
PDF
Mobile themes, QR codes, and shortURLs
PPTX
JavaScript Advanced - Useful methods to power up your code
PDF
JavaScript
TXT
Espacios en-tu-vida
TXT
Guia de-estudio-2
PDF
What you need to know bout html5
PDF
Introduction to web components
PPTX
Rapid and Responsive - UX to Prototype with Bootstrap
PDF
HTML5: Smart Markup for Smarter Websites [Future of Web Apps, Las Vegas 2011]
PDF
HTML5 JS APIs
ODP
Drupal Theme Development - DrupalCon Chicago 2011
PPTX
Progressive downloads and rendering (Stoyan Stefanov)
Progressive Prototyping w/HTML5, CSS3 and jQuery
Html5 ux london
Prototyping w/HTML5 and CSS3
Doctype html public
Beyond HTML - Scriptsprachen, Frameworks, Templatesprachen und vieles mehr
Keypoints html5
Introduction to Html5
Mobile themes, QR codes, and shortURLs
JavaScript Advanced - Useful methods to power up your code
JavaScript
Espacios en-tu-vida
Guia de-estudio-2
What you need to know bout html5
Introduction to web components
Rapid and Responsive - UX to Prototype with Bootstrap
HTML5: Smart Markup for Smarter Websites [Future of Web Apps, Las Vegas 2011]
HTML5 JS APIs
Drupal Theme Development - DrupalCon Chicago 2011
Progressive downloads and rendering (Stoyan Stefanov)
Ad

Viewers also liked (13)

PPT
1. Introducción a las Hojas de estilo (CSS)
PPTX
Hojas de estilo (css)
PDF
HTML5 & CSS 3
PDF
Html5 aria-css-ibm-csun-2016
ODP
Hojas de estilo CSS (Cascade Style Sheets)
PDF
Qué es CSS y con qué se come?
PPTX
Que es CSS? Presentacion Basica para CSS
PPTX
Hojas de estilo CSS
PPT
CSS - ¿Cómo agregar estilos a mi página?
PDF
HTML y CSS
PDF
Introducción a HTML y CSS
PDF
Maquetado con HTML y CSS
PDF
Curso HTML y CSS, parte 1
1. Introducción a las Hojas de estilo (CSS)
Hojas de estilo (css)
HTML5 & CSS 3
Html5 aria-css-ibm-csun-2016
Hojas de estilo CSS (Cascade Style Sheets)
Qué es CSS y con qué se come?
Que es CSS? Presentacion Basica para CSS
Hojas de estilo CSS
CSS - ¿Cómo agregar estilos a mi página?
HTML y CSS
Introducción a HTML y CSS
Maquetado con HTML y CSS
Curso HTML y CSS, parte 1
Ad

Similar to Html5 & CSS overview (20)

PDF
Intro to HTML 5 / CSS 3
PDF
Html5 quick learning guide
PDF
Html5 quick-learning-quide
PDF
Html5 quick-learning-quide
PDF
Html5 quick-learning-quide
KEY
2022 HTML5: The future is now
PPTX
Unit 1wt
PDF
Html5 training
KEY
Html5, a gentle introduction
PPTX
Unit 1wt
PPTX
Basics of Front End Web Dev PowerPoint
PDF
A practical guide to building websites with HTML5 & CSS3
PDF
HTML5+CSS3 (入門編)
KEY
KEY
Html 5, a gentle introduction
ODP
Light introduction to HTML
DOC
web technologiesUnit 1
PDF
Beginner & Intermediate Guide to HTML5/CSS3 In Drupal
PPTX
Html n CSS
PDF
Pamela - Brining back the pleasure of hand-written HTML - Montréal Python 8
Intro to HTML 5 / CSS 3
Html5 quick learning guide
Html5 quick-learning-quide
Html5 quick-learning-quide
Html5 quick-learning-quide
2022 HTML5: The future is now
Unit 1wt
Html5 training
Html5, a gentle introduction
Unit 1wt
Basics of Front End Web Dev PowerPoint
A practical guide to building websites with HTML5 & CSS3
HTML5+CSS3 (入門編)
Html 5, a gentle introduction
Light introduction to HTML
web technologiesUnit 1
Beginner & Intermediate Guide to HTML5/CSS3 In Drupal
Html n CSS
Pamela - Brining back the pleasure of hand-written HTML - Montréal Python 8

Recently uploaded (20)

PDF
sbt 2.0: go big (Scala Days 2025 edition)
PPT
Geologic Time for studying geology for geologist
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PPTX
2018-HIPAA-Renewal-Training for executives
PDF
Zenith AI: Advanced Artificial Intelligence
PPTX
Chapter 5: Probability Theory and Statistics
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
OpenACC and Open Hackathons Monthly Highlights July 2025
PPT
What is a Computer? Input Devices /output devices
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
Abstractive summarization using multilingual text-to-text transfer transforme...
PPTX
Custom Battery Pack Design Considerations for Performance and Safety
PPTX
Microsoft Excel 365/2024 Beginner's training
PDF
Developing a website for English-speaking practice to English as a foreign la...
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PDF
Enhancing emotion recognition model for a student engagement use case through...
PPTX
Benefits of Physical activity for teenagers.pptx
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PDF
Convolutional neural network based encoder-decoder for efficient real-time ob...
sbt 2.0: go big (Scala Days 2025 edition)
Geologic Time for studying geology for geologist
Taming the Chaos: How to Turn Unstructured Data into Decisions
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
2018-HIPAA-Renewal-Training for executives
Zenith AI: Advanced Artificial Intelligence
Chapter 5: Probability Theory and Statistics
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
OpenACC and Open Hackathons Monthly Highlights July 2025
What is a Computer? Input Devices /output devices
1 - Historical Antecedents, Social Consideration.pdf
Abstractive summarization using multilingual text-to-text transfer transforme...
Custom Battery Pack Design Considerations for Performance and Safety
Microsoft Excel 365/2024 Beginner's training
Developing a website for English-speaking practice to English as a foreign la...
Final SEM Unit 1 for mit wpu at pune .pptx
Enhancing emotion recognition model for a student engagement use case through...
Benefits of Physical activity for teenagers.pptx
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
Convolutional neural network based encoder-decoder for efficient real-time ob...

Html5 & CSS overview

  • 1. HTML5 & CSS AN OVERVIEW
  • 2. HTML5 // Cleaning redundancy <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  • 3. HTML5 // Cleaning redundancy AM ! B <!doctype html>
  • 4. HTML5 // Cleaning redundancy <meta http-equiv="Content-Type" HTML 4.01 content="text/html; charset=utf-8"> <?xml version="1.0" encoding="UTF-8"?> XHTML 1.0 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  • 5. HTML5 // Cleaning redundancy <meta charset=”utf-8”> BA M!! D ouble
  • 6. HTML5 // Cleaning redundancy <link rel="stylesheet" href="styles.css" type="text/css" /> <script src=”jquery.js” type=”text/javascript”></script>
  • 7. HTML5 // Cleaning redundancy <link rel="stylesheet" href="styles.css" type=”text/css” /> <script src=”jquery.js” type=”text/javascript”></script>
  • 8. HTML5 // Cleaning redundancy <link rel="stylesheet" href="styles.css” /> <script src=”jquery.js”></script> ...looks much prettier!
  • 9. HTML5 // New elements <header> <video> <nav> <figure> <section> <footer> <article> <time> <aside> <datalist> To check all elements: http://joshduck.com/periodic-table.html
  • 10. HTML5 // Common structure <body> <div class=”article”> <div class=”header”> <h1>Article head</h1> <h1>Company logo</h1> <p>Article paragraph</p> <p>Tagline</p> <div class=”aside”> </div> <p>pointer for article</p> <div class=”nav”> </div> <ul> </div> <li>link1</li> <div class=”figure”> <li>link2</li> <img src=”...”> </ul> <div class=”figcaption”>text</div> </div> </div> <div class=”section”> <footer> <div class=”article”> &copy; <div class=”header”> <time datetime=”2012-11-08”> <h1>...</h1> 2012</time> </div> </footer> <div class=”section”> </body> ... </div> </div>
  • 11. HTML5 // Common structure <body> <article> <header> <h1>Article head</h1> <h1>Company logo</h1> <p>Article paragraph</p> <p>Tagline</p> <aside> </header> <p>pointer for article</p> <nav> </aside> <ul> </article> <li>link1</li> <figure> <li>link2</li> <img src=”...”> </ul> <figcaption>text</figcaption> </nav> </figure> <section> <footer> <article> &copy; <header> <time datetime=”2012-11-08”> <h1>...</h1> 2012</time> </header> </footer> <section> </body> ... </section> </article> ...much better semantic!
  • 12. HTML5 // Common structure <section class=”item”> <header> <h1></h1> </header> <footer class=”meta”>...</footer> <div class=”content”> ... </div> <nav class=”links”> ... </nav> </section>
  • 13. HTML5 // Common structure <a href=”#” target=“_blank”> <div class=”panel”> <h2>Banner title</h2> <p>Get your 50% discount now, mofo!</p> </div> </a>
  • 14. HTML5 // Forms <input type=”text” required> <input type=”email” value=”[email protected]”> <input type=”date” min=”2010-08-14” max=”2016-08-14” value=”2010-08-10”> <input type=”range” min=”0” max=”50” value=”11”> <input type=”search” placeholder=”Type city or property”> <input type=”tel” placeholder=”(353)657778888 patter=”[regexp]”> <input type=”color” placeholder=”#ff00ff”> <input type=”number” step=”1” min=”-5” max=”10” value=”0”> ...example available
  • 15. HTML5 // Audio & Video <audio id=”audio” scr=”song.mp3” controls></audio> <video id=”video” src=”video.mov” autoplay controls></video>
  • 16. HTML5 // Audio & Video d egrad e grac efully. ... <video id=”video” src=”video.mov” autoplay controls> <object data=”video.mov”> <!-- fallback content --> </object> </video>
  • 17. CSS // Pseudo classes Relational Links Input Text :not :link :focus :first-letter :empty :visited :target :first-line :hover :enabled :lang :active :disabled ::selection Position :checked :first-child :last-child :nth-child(n) :nth-of-type(n) :first-of-type :last-of-type :nth-last-of-type(n) :nth-last-child(n) :only-of-type
  • 18. CSS // Pseudo classes Relational Links Input Text :not :link :focus :first-letter :empty :visited :target :first-line :hover :enabled :lang :active :disabled ::selection Position :checked :first-child :last-child :nth-child(n) :nth-of-type(n) BAD NEWs... :first-of-type :last-of-type Most of these don’t :nth-last-of-type(n) :nth-last-child(n) :only-of-type work on old popular browsers! :(
  • 19. CSS // Pseudo classes Relational Links Input Text :not :link :focus :first-letter :empty :visited :target :first-line :hover :enabled :lang :active :disabled ::selection Position :checked :first-child :last-child :nth-child(n) :nth-of-type(n) SOLUTION? :first-of-type :last-of-type Use more markup or :nth-last-of-type(n) :nth-last-child(n) try Selectivizr.com :only-of-type
  • 20. CSS // Pseudo classes Relational Links Input Text :not :link :focus :first-letter :empty :visited :target :first-line :hover :enabled :lang :active :disabled ::selection Position :checked :first-child :last-child :nth-child(n) :nth-of-type(n) GOOD NEWS... :first-of-type :last-of-type They all work great on :nth-last-of-type(n) :nth-last-child(n) :only-of-type IE9, webkit browsers, Firefox and Opera...
  • 21. CSS // Pseudo classes Relational Links Input Text :not :link :focus :first-letter :empty :visited :target :first-line :hover :enabled :lang :active :disabled ::selection Position :checked :first-child :last-child :nth-child(n) :nth-of-type(n) GOOD NEWS... :first-of-type :last-of-type ... meaning, very suitable :nth-last-of-type(n) :nth-last-child(n) :only-of-type to work on mobile browsers :)
  • 22. CSS // Some examples elem:nth-child(5) { color:orange; } elem:nth-child(n+6) { color:orange; } elem:nth-child(-n+5) { color:orange; } elem:nth-child(4n-7) { color:orange; }
  • 23. CSS // Some examples elem:nth-child(odd) { color:orange; } elem:nth-child(even) { color:orange; } elem:last-child { color:orange; } elem:last-child(2) { color:orange; }
  • 24. CSS // Some examples “What goes around comes around” <blockquote> HTML <p>What goes around comes around</p> </blockquote> p:before { p:after { CSS content:’”’; color:light-green; content:’”’; color:light-green; } }
  • 25. CSS // Some examples i WARNING! HTML <p class=”warning”>Warning!</p> p:before { CSS content:””; background:url(warning-icon.png) 0 0 no-repeat; display:inline-block; margin-right:10px; }
  • 26. CSS // Some examples i SIGN UP HERE HTML <p class=”sign-up”>sign up here</p> CSS .sign-up:before { content:””; background:url(warning-icon.png) 0 0 no-repeat; display:inline-block; margin-right:10px; } .sign-up:after { content:””; background:url(arrow.png) 0 0 no-repeat; position:absolute; bottom:-15px; left:50%; }
  • 27. CSS // Some examples i SIGN UP HERE HTML <p class=”sign-up”>sign up here</p> CSS .sign-up:before { /* same code as previous slide */ } .sign-up:after { content:””; position:absolute; bottom:0; left:50%; width: 0; height: 0; border-left: 15px solid transparent; ro w im g! } border-right: 15px solid transparent; border-top: 30px solid orange; no ar