SlideShare a Scribd company logo
1 of 104
Download to read offline
WEB 101
HTML & CSS
TOOLS OF
THE TRADE
CODA
TEXT WRANGLER
TExTMATE
EXPRESSION WEB
DREAMWEAVER
BROWSERS
 the big four
BUILDING
THE FOUNDATION
HTML
building blocks
<html>
 html tag
<html>
</html>
<head>
head definitions
<html>
  <head>
  </head>
</html>
<title>
 page title
<html>
  <head>
    <title>Our Page</title>
  </head>
</html>
<body>
document body
<html>
  <head>
    <title>Our Page</title>
  </head>
  <body>
  </body>
</html>
<!-- # -->
   comments
<html>
  <head>
    <title>Our Page</title>
  </head>
  <body>
    <!-- code body here -->
  </body>
</html>
<p>
paragraph tag
<p>My paragraph</p>
<br>
line break
<br />
 line break
<p>My<br /> paragraph</p>
<h1>
heading tag
<h2>
heading tag
<h3>
heading tag
<h4>
heading tag
<h5>
heading tag
<h1>
  Important heading
</h1>
<h3>
  Less important heading
</h3>
<small>
small font style tag
<p>
  Some text
  <small>
     some smaller text
  </small>
</p>
<div>
division/container tag
<div>
  <h3>My section</h3>
  <p>Lorem ipsum</p>
</div>
<span>
inline container
<p>
  Some<span>thing</span>
</p>
BUILD TIME
<ul>
unordered list
<li>
list item
<ul>
  <li>item 1</li>
  <li>item 2</li>
</ul>
<table>
table definition
<thead>
 table header
<th>
table header cell
<tbody>
 table body
<tr>
table row
<td>
table cell
<tfoot>
 table footer
<table>
  <thead>
    <th>Name</th>
    <th>Price</th>
  </thead>
  <tbody>
    <tr>
      <td>Latte</td>
      <td>$3.95</td>
    </tr>
  </tbody>
</table>
NAMING
CONVENTION
ids
singular
<div id = “intro”>
  Some text
</div>
classes
many
<div class = “product”>
  Some text
</div>
SEMANTIC
  WEB
less > MORE
SELF
documenting
BUILD TIME
ADDING STYLE
stylesheets
.css files
selectors
h2 { ... }
li { ... }
p { ... }

by element
.products      { ... }
li.products    { ... }
li .products   { ... }

      by class
#intro       { ... }
div#intro    { ... }
div #intro   { ... }

        by ID
#intro ul.products li
{ ... }



  mix and match
style options
structure
height
  50px;
width:
 100px;
margin:
5px 5px 5px 5px
WAIT!
introducing
 the box model
margin

     padding



          height



                   width
padding:
 5px 5px 5px 5px
div {
  height: 50px;
  width: 100px;
  padding: 5px 10px 5px 10px;
  margin: 5px 10px 5px 10px;
}
5px

                     5px




10px   10px   50px           10px   10px
                     100px


                     5px


                      5px
HEIGHT
Height + padding-top + padding-bottom +
       margin-top + margin-bottom
    50px + 5px + 5px + 5px + 5px =

              70px

              WIDTH
Width + padding-left + padding-right +
      margin-left + margin-right
50px + 10px + 10px + 10px + 10px =

              90px
div {
  margin: top right bottom left;
}

div {
  margin: 5px 10px 5px 10px;
}
Shorthand
div {
  margin: 5px 10px;
}

div {
  margin: 5px;
}
OK!
BUILD TIME
FLOATS
div {
  float: left;
}

div {
  float: right;
}
fonts
font-family:
 helvetica, arial,
    sans-serif;
font-size:
   12px;
font-size:
   12pt;
font-size:
    1em;
font-size:
    70%;
font-weight:
    bold;
font-weight:
    normal;
text-decoration:
    underline;
text-decoration:
      none;
color
color:
 black;
color:
#000000;
color:
 #000;
color:
rgb(0,0,0);
background-color:
      black;
BUILD TIME

More Related Content

Similar to Intro to HTML & CSS

Similar to Intro to HTML & CSS (20)

Xlrays online web tutorials
Xlrays online web tutorialsXlrays online web tutorials
Xlrays online web tutorials
 
UI 101
UI 101UI 101
UI 101
 
Implementing Awesome: An HTML5/CSS3 Workshop
Implementing Awesome: An HTML5/CSS3 WorkshopImplementing Awesome: An HTML5/CSS3 Workshop
Implementing Awesome: An HTML5/CSS3 Workshop
 
CSS and Layout
CSS and LayoutCSS and Layout
CSS and Layout
 
Intro to HTML + CSS
Intro to HTML + CSSIntro to HTML + CSS
Intro to HTML + CSS
 
Copy & Paste Design Hacks To Take Your Blog to the Next Level
Copy & Paste Design Hacks To Take Your Blog to the Next LevelCopy & Paste Design Hacks To Take Your Blog to the Next Level
Copy & Paste Design Hacks To Take Your Blog to the Next Level
 
HTML & CSS 2017
HTML & CSS 2017HTML & CSS 2017
HTML & CSS 2017
 
Css tips & tricks
Css tips & tricksCss tips & tricks
Css tips & tricks
 
Blog HTML example for IML 295
Blog HTML example for IML 295Blog HTML example for IML 295
Blog HTML example for IML 295
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008
 
Harendra Singh,BCA Third Year
Harendra Singh,BCA Third YearHarendra Singh,BCA Third Year
Harendra Singh,BCA Third Year
 
HTML/CSS Web Blog Example
HTML/CSS Web Blog ExampleHTML/CSS Web Blog Example
HTML/CSS Web Blog Example
 
Design To Deployment
Design To DeploymentDesign To Deployment
Design To Deployment
 
Html5 ux london
Html5 ux londonHtml5 ux london
Html5 ux london
 
01 Introduction To CSS
01 Introduction To CSS01 Introduction To CSS
01 Introduction To CSS
 
Theme02
Theme02Theme02
Theme02
 
HTML News Packages Lesson
HTML News Packages LessonHTML News Packages Lesson
HTML News Packages Lesson
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
Dfdf
DfdfDfdf
Dfdf
 

More from Colin Loretz

Controlling Robots with Javascript, Ruby and Go
Controlling Robots with Javascript, Ruby and GoControlling Robots with Javascript, Ruby and Go
Controlling Robots with Javascript, Ruby and GoColin Loretz
 
Making Things Happen
Making Things HappenMaking Things Happen
Making Things HappenColin Loretz
 
Building App Themes for WordPress
Building App Themes for WordPressBuilding App Themes for WordPress
Building App Themes for WordPressColin Loretz
 
Steps to Open the Reno Makerspace
Steps to Open the Reno Makerspace Steps to Open the Reno Makerspace
Steps to Open the Reno Makerspace Colin Loretz
 
Reno Collective Coworking
Reno Collective CoworkingReno Collective Coworking
Reno Collective CoworkingColin Loretz
 
WordCamp Las Vegas: Your App is in my WordPress
WordCamp Las Vegas: Your App is in my WordPressWordCamp Las Vegas: Your App is in my WordPress
WordCamp Las Vegas: Your App is in my WordPressColin Loretz
 
WordPress as a CMS
WordPress as a CMSWordPress as a CMS
WordPress as a CMSColin Loretz
 
50 Apps to Fuel Your Online Business
50 Apps to Fuel Your Online Business50 Apps to Fuel Your Online Business
50 Apps to Fuel Your Online BusinessColin Loretz
 
Ignite Reno: Diagnosing Technology as a Mental Disorder
Ignite Reno: Diagnosing Technology as a Mental DisorderIgnite Reno: Diagnosing Technology as a Mental Disorder
Ignite Reno: Diagnosing Technology as a Mental DisorderColin Loretz
 
Creating Your First WordPress Plugin
Creating Your First WordPress PluginCreating Your First WordPress Plugin
Creating Your First WordPress PluginColin Loretz
 
Share an internet connection through WiFi [Mac OS X[
Share an internet connection through WiFi [Mac OS X[Share an internet connection through WiFi [Mac OS X[
Share an internet connection through WiFi [Mac OS X[Colin Loretz
 

More from Colin Loretz (11)

Controlling Robots with Javascript, Ruby and Go
Controlling Robots with Javascript, Ruby and GoControlling Robots with Javascript, Ruby and Go
Controlling Robots with Javascript, Ruby and Go
 
Making Things Happen
Making Things HappenMaking Things Happen
Making Things Happen
 
Building App Themes for WordPress
Building App Themes for WordPressBuilding App Themes for WordPress
Building App Themes for WordPress
 
Steps to Open the Reno Makerspace
Steps to Open the Reno Makerspace Steps to Open the Reno Makerspace
Steps to Open the Reno Makerspace
 
Reno Collective Coworking
Reno Collective CoworkingReno Collective Coworking
Reno Collective Coworking
 
WordCamp Las Vegas: Your App is in my WordPress
WordCamp Las Vegas: Your App is in my WordPressWordCamp Las Vegas: Your App is in my WordPress
WordCamp Las Vegas: Your App is in my WordPress
 
WordPress as a CMS
WordPress as a CMSWordPress as a CMS
WordPress as a CMS
 
50 Apps to Fuel Your Online Business
50 Apps to Fuel Your Online Business50 Apps to Fuel Your Online Business
50 Apps to Fuel Your Online Business
 
Ignite Reno: Diagnosing Technology as a Mental Disorder
Ignite Reno: Diagnosing Technology as a Mental DisorderIgnite Reno: Diagnosing Technology as a Mental Disorder
Ignite Reno: Diagnosing Technology as a Mental Disorder
 
Creating Your First WordPress Plugin
Creating Your First WordPress PluginCreating Your First WordPress Plugin
Creating Your First WordPress Plugin
 
Share an internet connection through WiFi [Mac OS X[
Share an internet connection through WiFi [Mac OS X[Share an internet connection through WiFi [Mac OS X[
Share an internet connection through WiFi [Mac OS X[
 

Recently uploaded

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 

Recently uploaded (20)

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 

Intro to HTML & CSS