SlideShare une entreprise Scribd logo
1  sur  31
Télécharger pour lire hors ligne
Welcome!
About Me

•
•
•

•
•

Founder SNTMNT!
Product guy!
Jack of all trades

vincentleeuwen[at]gmail.com!
@vincentleeuwen
About you

•
•

Who are you?!
What is your goal for today?
Client vs Server side
Client vs Server side
Text Editor

www.sublimetext.com/2
Basic Page Structure
•
•
•
•

HTML <html>!
Page Header <head>!
Page Title <title>!
Page Body <body>
Basic Page Elements
•
•
•

Headers <h1>!
Paragraphs <p>!
Lists <ul> / <ol> & <li>
<ul> !
! <li>…</li>!
! <li>…</li>!
</ul>
Don’t forget to close tags!

<html> </html>
Some More Basic Elements
•
•

Links <a href=“”>!
Images <img src=“” />
Basic Element Styling
•
•
•
•
•

Empty line <br/>!
Filled line <hr/>!
Bold <b>!
Italic <i>!
Underline <u>
Nested Elements
<a href=“www.google.com”>!
! <p>First paragraph</p>!
! <p>Second pagragraph</p>!
</a>!
!

=> Link your image to Google!
!
What went wrong?
<a href=“www.google.com”>!
<a href=“http://google.com”>!
!

Always use http:// in links!!
Advanced Element Styling
<p style=“…”>!
•
•
•
•

font-family: Helvetica; !
font-size: 38px;!
color: green;!
background: yellow;

You can assign styles to ANY
element! (h1-h6 / p / div / a / li) !
Exercise
=> Make your title blue and font
type helvetica!
=> Make all elements on the page
blue!
Advanced Styling: DIVs
<div style=“…”> </div>!
•
•
•
•

height: 200px; !
width: 200px;!
color: green;!
background: yellow;
Exercise
=> Make our national flag naming
colours using 3 DIVs (100 x 400)!
Element ID and Element Class
•
•
•

Don’t Repeat Yourself!
IDs #MyFirstID {}!
Class .MyFirstClass {}

You can assign classes and IDs to
ANY element! (h1-h6 / p / div / a / li) !
Exercise
=> Make a German flag using a
DIV class ( .flagpart {} ) that can
be scaled by changing the class.!
Some final DIVs styles
.[yourdivname] {A:B; C:D;}!
•
•
•
•
•

margin: 20px 0 0 0;!
padding-top: 30px;!
padding-left: -20px;!
border: 3px solid green;!
background: url(“…”) [repeat /
no-repeat];
Exercise
=> Push the flag colours a bit
from the border using padding!
=> Load your profile image in the
lowest div with a repeat.!
Cascading Style Sheets
<link href="style.css" rel="stylesheet">
•
•
•

.css files capture style tags like
classes and IDs!
Style across html files!
If there are several files, the lowest
one has priority in case of conflicts
Exercise
=> Move all styles currently in the
style tag to a new file called
style.css. !
Build your own profile page
CSS cheat sheet
•
•
•
•
•
•

Make a background div .bg {} that has a fixed height of
400px and set background-size: cover; !
Style .bg with background: url(“”) no-repeat; as the
image http://static.sntmnt.com/workshop/img1.jpg!
Make a container div that has a width: 960px; and
margin: 0 auto 0 auto;!
Give the profile image a class with negative top margin
and a white solid border of 5px.!
Get lorem ipsum content from http://www.lipsum.com/
or write it yourself :)!
Get the links horizontal by giving the li {} element !
display: inline; and ul {} a list-style-type:none;
Some useful links
•
•
•
•
•

Codedacemy (codecacemy.com)!
W3Schools (w3schools.com)!
Bootstrap (getbootstrap.com)!
SubtlePatterns (subtlepatterns.com)!
StackOverflow (stackoverflow.com)
Want more ???
•
•
•

Launch a Landing Page over coffee!
Next week Saturday, 14th December!
Hosted by Dwight Gunning (@dwightgunning)

passiontree.com/workshop/launch-a-landing-page/

Contenu connexe

Tendances

Tendances (20)

HTML CSS Basics
HTML CSS BasicsHTML CSS Basics
HTML CSS Basics
 
Hushang Gaikwad
Hushang GaikwadHushang Gaikwad
Hushang Gaikwad
 
HTML 5 Simple Tutorial Part 1
HTML 5 Simple Tutorial Part 1HTML 5 Simple Tutorial Part 1
HTML 5 Simple Tutorial Part 1
 
html-css
html-csshtml-css
html-css
 
HTML & CSS Masterclass
HTML & CSS MasterclassHTML & CSS Masterclass
HTML & CSS Masterclass
 
Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basics
 
HTML CSS JS in Nut shell
HTML  CSS JS in Nut shellHTML  CSS JS in Nut shell
HTML CSS JS in Nut shell
 
Html and css
Html and cssHtml and css
Html and css
 
Html & CSS
Html & CSSHtml & CSS
Html & CSS
 
Html, CSS & Web Designing
Html, CSS & Web DesigningHtml, CSS & Web Designing
Html, CSS & Web Designing
 
Cascading Style Sheets - Part 01
Cascading Style Sheets - Part 01Cascading Style Sheets - Part 01
Cascading Style Sheets - Part 01
 
Lesson 1: Introduction to HTML
Lesson 1: Introduction to HTMLLesson 1: Introduction to HTML
Lesson 1: Introduction to HTML
 
Basic html structure
Basic html structureBasic html structure
Basic html structure
 
Web Development 1 (HTML & CSS)
Web Development 1 (HTML & CSS)Web Development 1 (HTML & CSS)
Web Development 1 (HTML & CSS)
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Css notes
Css notesCss notes
Css notes
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
An Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java ScriptAn Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java Script
 
Css
CssCss
Css
 

En vedette

[Basic HTML/CSS] 5. css - selector, units
[Basic HTML/CSS] 5. css - selector, units[Basic HTML/CSS] 5. css - selector, units
[Basic HTML/CSS] 5. css - selector, units
Hyejin Oh
 
Share point workflow presentation
Share point workflow presentationShare point workflow presentation
Share point workflow presentation
Wyngate Solutions
 

En vedette (14)

SharePoint Saturday UK - Workflow Evolution
SharePoint Saturday UK - Workflow EvolutionSharePoint Saturday UK - Workflow Evolution
SharePoint Saturday UK - Workflow Evolution
 
Freelancing
FreelancingFreelancing
Freelancing
 
[Basic HTML/CSS] 5. css - selector, units
[Basic HTML/CSS] 5. css - selector, units[Basic HTML/CSS] 5. css - selector, units
[Basic HTML/CSS] 5. css - selector, units
 
The Evolution of SharePoint
The Evolution of SharePointThe Evolution of SharePoint
The Evolution of SharePoint
 
Share point workflow presentation
Share point workflow presentationShare point workflow presentation
Share point workflow presentation
 
Power bi introduction
Power bi introductionPower bi introduction
Power bi introduction
 
Power BI for Office 365: Using SharePoint to Deliver Self-Service
Power BI for Office 365: Using SharePoint to Deliver Self-ServicePower BI for Office 365: Using SharePoint to Deliver Self-Service
Power BI for Office 365: Using SharePoint to Deliver Self-Service
 
Freelance@toptal
Freelance@toptalFreelance@toptal
Freelance@toptal
 
Workflow in SharePoint 2013
Workflow in SharePoint 2013Workflow in SharePoint 2013
Workflow in SharePoint 2013
 
New CV
New CVNew CV
New CV
 
Freelancing Presentation
Freelancing PresentationFreelancing Presentation
Freelancing Presentation
 
What, When and How about Freelancing
What, When and How about FreelancingWhat, When and How about Freelancing
What, When and How about Freelancing
 
Microsoft Power BI Overview
Microsoft Power BI OverviewMicrosoft Power BI Overview
Microsoft Power BI Overview
 
Power BI Made Simple
Power BI Made SimplePower BI Made Simple
Power BI Made Simple
 

Similaire à HTML(5) and CSS(3) for beginners - I

Html:css crash course (4:5)
Html:css crash course (4:5)Html:css crash course (4:5)
Html:css crash course (4:5)
Thinkful
 
Code &amp; design your first website (3:16)
Code &amp; design your first website (3:16)Code &amp; design your first website (3:16)
Code &amp; design your first website (3:16)
Thinkful
 
Basics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPointBasics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPoint
Sahil Gandhi
 
Html css crash course may 11th, atlanta
Html css crash course may 11th, atlantaHtml css crash course may 11th, atlanta
Html css crash course may 11th, atlanta
Thinkful
 
HTML Bootstrap Workshop
HTML Bootstrap WorkshopHTML Bootstrap Workshop
HTML Bootstrap Workshop
vincentleeuwen
 
Web design-workflow
Web design-workflowWeb design-workflow
Web design-workflow
Peter Kaizer
 

Similaire à HTML(5) and CSS(3) for beginners - I (20)

HTML News Packages Lesson
HTML News Packages LessonHTML News Packages Lesson
HTML News Packages Lesson
 
Web
WebWeb
Web
 
ARTDM 171, Week 5: CSS
ARTDM 171, Week 5: CSSARTDM 171, Week 5: CSS
ARTDM 171, Week 5: CSS
 
Html:css crash course (4:5)
Html:css crash course (4:5)Html:css crash course (4:5)
Html:css crash course (4:5)
 
Artdm171 Week5 Css
Artdm171 Week5 CssArtdm171 Week5 Css
Artdm171 Week5 Css
 
Code &amp; design your first website (3:16)
Code &amp; design your first website (3:16)Code &amp; design your first website (3:16)
Code &amp; design your first website (3:16)
 
BITM3730 9-27.pptx
BITM3730 9-27.pptxBITM3730 9-27.pptx
BITM3730 9-27.pptx
 
Code & Design your first website 4/18
Code & Design your first website 4/18Code & Design your first website 4/18
Code & Design your first website 4/18
 
Web development basics (Part-1)
Web development basics (Part-1)Web development basics (Part-1)
Web development basics (Part-1)
 
Basics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPointBasics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPoint
 
Html css crash course may 11th, atlanta
Html css crash course may 11th, atlantaHtml css crash course may 11th, atlanta
Html css crash course may 11th, atlanta
 
HTML Bootstrap Workshop
HTML Bootstrap WorkshopHTML Bootstrap Workshop
HTML Bootstrap Workshop
 
Thinkful - Frontend Crash Course - Intro to HTML/CSS
Thinkful - Frontend Crash Course - Intro to HTML/CSSThinkful - Frontend Crash Course - Intro to HTML/CSS
Thinkful - Frontend Crash Course - Intro to HTML/CSS
 
HTML5 & CSS3 Flag
HTML5 & CSS3 FlagHTML5 & CSS3 Flag
HTML5 & CSS3 Flag
 
BITM3730 9-26.pptx
BITM3730 9-26.pptxBITM3730 9-26.pptx
BITM3730 9-26.pptx
 
HTML/CSS Web Blog Example
HTML/CSS Web Blog ExampleHTML/CSS Web Blog Example
HTML/CSS Web Blog Example
 
Blog HTML example for IML 295
Blog HTML example for IML 295Blog HTML example for IML 295
Blog HTML example for IML 295
 
Artdm171 Week4 Tags
Artdm171 Week4 TagsArtdm171 Week4 Tags
Artdm171 Week4 Tags
 
Web design-workflow
Web design-workflowWeb design-workflow
Web design-workflow
 
Layout & css lecture
Layout & css lectureLayout & css lecture
Layout & css lecture
 

Dernier

Dernier (20)

Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
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
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
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
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
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 Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
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
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
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...
 
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
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 

HTML(5) and CSS(3) for beginners - I