SlideShare uma empresa Scribd logo
1
Allyson
Wehrs
Who am I?
Web Engineer with LuminFire
Experience
Interests
Overview
• HTML
• CSS
• CSS and WordPress
• CSS Preprocessors
HTML
HTML Tags
<tag></tag>
<tag />
• html
• head
• title
• body
HTML Elements
<!DOCTYPE html>
<html>
<head>
<title>Title of my web page</title>
</head>
<body>
</body>
</html>
Paragraphs
Hello World
<!DOCTYPE html>
<html>
<head>
<title>Title of my web page</title>
</head>
<body>
<p>Hello World</p>
</body>
</html>
Headings
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
<!DOCTYPE html>
<html>
<head>
<title>Title of my web page</title>
</head>
<body>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
</body>
</html>
Div
Title
Hello World
<!DOCTYPE html>
<html>
<head>
<title>Title of my web page</title>
</head>
<body>
<div>
<h1>Title</h1>
<p>Hello World</p>
</div>
</body>
</html>
Unordered List
• Item 1
• Item 2
• Item 3
<!DOCTYPE html>
<html>
<head>
<title>Title of my web page</title>
</head>
<body>
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
</body>
</html>
Ordered List
1. Item 1
2. Item 2
3. Item 3
<!DOCTYPE html>
<html>
<head>
<title>Title of my web page</title>
</head>
<body>
<ol>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ol>
</body>
</html>
Links
Click Me
<!DOCTYPE html>
<html>
<head>
<title>Title of my web page</title>
</head>
<body>
<a href=” https://luminfire.com/”>Click Me</a>
</body>
</html>
Images
<!DOCTYPE html>
<html>
<head>
<title>Title of my web page</title>
</head>
<body>
<img src=”picture.jpg” width=”200” height=”200” alt=”orange sunset” />
</body>
</html>
Buttons
<!DOCTYPE html>
<html>
<head>
<title>Title of my web page</title>
</head>
<body>
<button type=”button”>Click Me!</button>
</body>
</html>
Click Me!
• header
• nav
• main
• aside
• footer
Semantic Elements
<!DOCTYPE html>
<html>
<head>
<title>Title of my web page</title>
</head>
<body>
<header>
<nav></nav>
</header>
<main>
<p>Page content</p>
<aside></aside>
</main>
<footer>
<p>&copy;</p>
</footer>
</body>
</html>
• Classes
• IDs
Uniquely Identify
Elements
<!DOCTYPE html>
<html>
<head>
<title>Title of my web page</title>
</head>
<body>
<h1 id=”page-title”>Title</h1>
<h2 class=”section-title”>Section Title</h2>
<p>content</p>
<p class=”secondary-content”>content</p>
<h2 class=”section-title”>Section Title</h2>
<p>content</p>
<p class=”secondary-content”>content</p>
<h2 class=”section-title”>Section Title</h2>
<p>content</p>
</body>
</html>
CSS
CSS Block
.content p {
font-family: ‘Open Sans’, sans-serif;
font-size: 16px;
color: blue;
}
#page-title {
margin-bottom: 20px;
}
h1 {color:pink; opacity:1;}
Selector
Declaration
Declaration
Property Property
Value Value
CSS Box Model
Margin
Border
Padding
Content
Block & Inline
Elements
<!DOCTYPE html>
<html>
<head>
<title>Title of my web page</title>
</head>
<body>
<p>Page <span>content</span></p>
<p>Page content</p>
</body>
</html>
Page content
Page content
Block & Inline
Elements
<body>
<p>Page <span>content</span></p>
<p>Page content</p>
</body>
Page
content
Page content
span {
display: block;
}
Floats
<body>
<img src=”picture.jpg” alt=”orange sunset”/>
<p>Lorem Ipsum dolor, lorem ipsum sor tempor consequat. Lorem
ipsum dolor lorem ipsum sor tempor consequat. Eoes
qui commondo autem.</p>
</body>
img {
float: left;
}
Lorem Ipsum dolor,
lorem ipsum sor
tempor consequat.
Lorem ipsum dolor
lorem ipsum sor
tempor consequat. Eoes qui commondo
autem.
Some Commonly Used Selectors
color
background-color
height
width
font-family
font-size
font-weight
text-align
• left
• right
• center
How to use CSS on you WordPress Site


• Child Theme

◦ Text Editor
◦ FTP
• Theme Editor

Floats
<body>
<img id=”post-image” src=”picture.jpg” alt=”orange sunset” />
<p>Lorem Ipsum dolor, lorem ipsum sor tempor consequat. Lorem
ipsum dolor lorem ipsum sor tempor consequat. Eoes
qui commondo autem.</p>
</body>
img {
float: left;
}
Lorem Ipsum dolor, lorem ipsum sor
tempor consequat. Lorem ipsum dolor
lorem ipsum sor tempor consequat. Eoes
qui commondo autem.
?!
Floats
#post-image {
float: none;
}
img {
float: left;
}
Lorem Ipsum dolor, lorem ipsum sor
tempor consequat. Lorem ipsum dolor
lorem ipsum sor tempor consequat. Eoes
qui commondo autem.
<main.css>
<plugin.css>
Specificity Wars!
Specificity
Lorem Ipsum dolor, lorem ipsum sor
tempor consequat. Lorem ipsum dolor
lorem ipsum sor tempor consequat. Eoes
qui commondo autem.
<main.css>
p {
color: blue;
}
p {
color: red;
}
Specificity
Lorem Ipsum dolor, lorem ipsum sor
tempor consequat. Lorem ipsum dolor
lorem ipsum sor tempor consequat. Eoes
qui commondo autem.
<main.css>
#post-paragraph {
color: blue;
}
p {
color: red;
}
Specificity
#post-paragraph {
color: blue;
}
p {
color: red;
}
Lorem Ipsum dolor, lorem ipsum sor
tempor consequat. Lorem ipsum dolor
lorem ipsum sor tempor consequat. Eoes
qui commondo autem.
<main.css>
<body>
<img id=”post-image” src=”picture.jpg” alt=”orange sunset”/>
<p id=”post-paragraph” style=”color:purple”>Lorem Ipsum dolor,
lorem ipsum sor tempor consequat. Lorem ipsum dolor lorem ipsum
sor tempor consequat. Eoes qui commondo autem.</p>
</body>
Specificity
#post-paragraph {
color: blue !important;
}
p {
color: red;
}
Lorem Ipsum dolor, lorem ipsum sor
tempor consequat. Lorem ipsum dolor
lorem ipsum sor tempor consequat. Eoes
qui commondo autem.
<main.css>
<body>
<img id=”post-image” src=”picture.jpg” alt=”orange sunset”/>
<p id=”post-paragraph” style=”color:purple”>Lorem Ipsum dolor,
lorem ipsum sor tempor consequat. Lorem ipsum dolor lorem ipsum
sor tempor consequat. Eoes qui commondo autem.</p>
</body>
Specificity
Lorem Ipsum dolor,
lorem ipsum sor
tempor consequat.
Lorem ipsum dolor
lorem ipsum sor
tempor consequat. Eoes qui commondo
autem.
<plugin.css>
<main.css>
.post-image {
float: none;
}
body .post-image {
float: left;
}
Flexbox
Flexbox
<body>
<div class=”flexbox-parent”>
<div class=”flexbox-child”><p>Box 1</p></div>
<div class=”flexbox-child”><p>Box 2</p></div>
<div class=”flexbox-child”><p>Box 3</p></div>
</div>
</body>
.flexbox-parent {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.flexbox-child {
width: 33%;
}
Box 1 Box 2 Box 3
Sass
Sass
.product-page {
color: #333;
}
.product-page .product-description {
margin: 0 auto;
}
.product-page .product-description p {
padding: 20px;
font-weight: normal;
}
.product-page .product-footer {
margin-top: 30px;
color: white;
}
CSS
.product-page {
color: #333;
.product-description {
margin: 0 auto;
p {
padding: 20px;
font-weight: normal;
}
}
.product-footer {
margin-top: 30px;
color: white;
}
}
Sass CSS
$font-stack: Helvetica, sans-serif;
$primary-color: #333;
body {
font: 100% $font-stack;
color: $primary-color;
}
body {
font: 100% Helvetica, sans-serif;
color: #333;
}
Sass CSS
@mixin border-radius($radius: 5px) {
-webkit-border-radius: $radius;
-moz-border-radius: $radius;
-ms-border-radius: $radius;
border-radius: $radius;
}
.box { @include border-radius(10px); }
.box	{	
	 -webkit-border-radius: 10px;	
-moz-border-radius: 10px;
-ms-border-radius: 10px;
border-radius: 10px;
}
Sass CSS
%equal-heights {
display: flex;
flex-wrap: wrap;
}
.columns {
@extend %equal-heights;
justify-content: space-between;
}
.columns {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
Sass CSS
.content {
float: left;
width: 600px / 960px * 100%;
}
.content {
float: left;
width: 62.5%;
}
Learning Resources - HTML/CSS Basics
• freeCodeCamp (www.freecodecamp.org)
• Codecademy (www.codecademy.com)
• W3schools - CSS Tutorial (www.w3schools.com/css/default.asp)
• Mozilla Developer Network - Intro to CSS
(https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS)
• The 30 CSS Selectors you must memorize
(https://code.tutsplus.com/tutorials/the-30-css-selectors-you-must-memorize--net-16048)
Learning Resources - Advanced CSS
• Scalable and Modular Architecture for CSS (smacss.com)

• CSS Preprocessors

◦Sass (sass-lang.com)

◦Less (lesscss.org)

◦Stylus (stylus-lang.com)

• A Complete Guide to Flexbox (https://css-tricks.com/snippets/css/a-guide-to-flexbox/)
• Specifics on CSS Specificity (https://css-tricks.com/specifics-on-css-specificity/)
Questions

Mais conteúdo relacionado

Mais procurados

Php
PhpPhp
Introduction to Javascript By Satyen
Introduction to Javascript By  SatyenIntroduction to Javascript By  Satyen
Introduction to Javascript By Satyen
Satyen Pandya
 
Introduction to web programming with JavaScript
Introduction to web programming with JavaScriptIntroduction to web programming with JavaScript
Introduction to web programming with JavaScript
T11 Sessions
 
Python GUI Programming
Python GUI ProgrammingPython GUI Programming
Python GUI Programming
RTS Tech
 
Php.ppt
Php.pptPhp.ppt
Php.ppt
Nidhi mishra
 
Python basic
Python basicPython basic
Python basic
Saifuddin Kaijar
 
JQuery introduction
JQuery introductionJQuery introduction
JQuery introduction
NexThoughts Technologies
 
Java script basics
Java script basicsJava script basics
Java script basics
Shrivardhan Limbkar
 
Python Tutorial Part 1
Python Tutorial Part 1Python Tutorial Part 1
Python Tutorial Part 1
Haitham El-Ghareeb
 
Advanced JavaScript
Advanced JavaScriptAdvanced JavaScript
Advanced JavaScript
Nascenia IT
 
Introduction to Javascript
Introduction to JavascriptIntroduction to Javascript
Introduction to Javascript
Amit Tyagi
 
Html list
Html listHtml list
Html list
sayed fathey
 
Bootstrap 5 ppt
Bootstrap 5 pptBootstrap 5 ppt
Bootstrap 5 ppt
Mallikarjuna G D
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
Yi-Fan Chu
 
JavaScript - Chapter 9 - TypeConversion and Regular Expressions
 JavaScript - Chapter 9 - TypeConversion and Regular Expressions  JavaScript - Chapter 9 - TypeConversion and Regular Expressions
JavaScript - Chapter 9 - TypeConversion and Regular Expressions
WebStackAcademy
 
Javascript 101
Javascript 101Javascript 101
Javascript 101
Shlomi Komemi
 
Introduction to Python
Introduction to Python Introduction to Python
Introduction to Python
amiable_indian
 
JavaScript - Chapter 8 - Objects
 JavaScript - Chapter 8 - Objects JavaScript - Chapter 8 - Objects
JavaScript - Chapter 8 - Objects
WebStackAcademy
 
Javascript
JavascriptJavascript
Javascript
Nagarajan
 
Flexbox
FlexboxFlexbox
Flexbox
Netcetera
 

Mais procurados (20)

Php
PhpPhp
Php
 
Introduction to Javascript By Satyen
Introduction to Javascript By  SatyenIntroduction to Javascript By  Satyen
Introduction to Javascript By Satyen
 
Introduction to web programming with JavaScript
Introduction to web programming with JavaScriptIntroduction to web programming with JavaScript
Introduction to web programming with JavaScript
 
Python GUI Programming
Python GUI ProgrammingPython GUI Programming
Python GUI Programming
 
Php.ppt
Php.pptPhp.ppt
Php.ppt
 
Python basic
Python basicPython basic
Python basic
 
JQuery introduction
JQuery introductionJQuery introduction
JQuery introduction
 
Java script basics
Java script basicsJava script basics
Java script basics
 
Python Tutorial Part 1
Python Tutorial Part 1Python Tutorial Part 1
Python Tutorial Part 1
 
Advanced JavaScript
Advanced JavaScriptAdvanced JavaScript
Advanced JavaScript
 
Introduction to Javascript
Introduction to JavascriptIntroduction to Javascript
Introduction to Javascript
 
Html list
Html listHtml list
Html list
 
Bootstrap 5 ppt
Bootstrap 5 pptBootstrap 5 ppt
Bootstrap 5 ppt
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
JavaScript - Chapter 9 - TypeConversion and Regular Expressions
 JavaScript - Chapter 9 - TypeConversion and Regular Expressions  JavaScript - Chapter 9 - TypeConversion and Regular Expressions
JavaScript - Chapter 9 - TypeConversion and Regular Expressions
 
Javascript 101
Javascript 101Javascript 101
Javascript 101
 
Introduction to Python
Introduction to Python Introduction to Python
Introduction to Python
 
JavaScript - Chapter 8 - Objects
 JavaScript - Chapter 8 - Objects JavaScript - Chapter 8 - Objects
JavaScript - Chapter 8 - Objects
 
Javascript
JavascriptJavascript
Javascript
 
Flexbox
FlexboxFlexbox
Flexbox
 

Semelhante a Basic HTML CSS Slides

TOSSUG HTML5 讀書會 新標籤與表單
TOSSUG HTML5 讀書會 新標籤與表單TOSSUG HTML5 讀書會 新標籤與表單
TOSSUG HTML5 讀書會 新標籤與表單
偉格 高
 
Artdm171 Week4 Tags
Artdm171 Week4 TagsArtdm171 Week4 Tags
Artdm171 Week4 Tags
Gilbert Guerrero
 
Html Hands On
Html Hands OnHtml Hands On
Html Hands On
corneliuskoo
 
LIS3353 SP12 Week 4
LIS3353 SP12 Week 4LIS3353 SP12 Week 4
LIS3353 SP12 Week 4
Amanda Case
 
Webware - from Document to Operating System
Webware - from Document to Operating System Webware - from Document to Operating System
Webware - from Document to Operating System
Channy Yun
 
HTML5 & CSS3 Flag
HTML5 & CSS3 FlagHTML5 & CSS3 Flag
HTML5 & CSS3 Flag
Christopher Schmitt
 
Progressive Downloads and Rendering
Progressive Downloads and RenderingProgressive Downloads and Rendering
Progressive Downloads and Rendering
Stoyan Stefanov
 
Js placement
Js placementJs placement
Js placement
Sireesh K
 
Progressive Downloads and Rendering - take #2
Progressive Downloads and Rendering - take #2Progressive Downloads and Rendering - take #2
Progressive Downloads and Rendering - take #2
Stoyan Stefanov
 
Seven deadly theming sins
Seven deadly theming sinsSeven deadly theming sins
Seven deadly theming sins
George Stephanis
 
Happy Browser, Happy User! - PerfMatters Conference 2019
Happy Browser, Happy User! - PerfMatters Conference 2019Happy Browser, Happy User! - PerfMatters Conference 2019
Happy Browser, Happy User! - PerfMatters Conference 2019
Katie Sylor-Miller
 
Taking your Web App for a walk
Taking your Web App for a walkTaking your Web App for a walk
Taking your Web App for a walk
Jens-Christian Fischer
 
Hardcore HTML
Hardcore HTMLHardcore HTML
Hardcore HTML
PDX Web & Design
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
danpaquette
 
Critical Rendering Path
Critical Rendering PathCritical Rendering Path
Critical Rendering Path
BarbaraFellner1
 
Html coding
Html codingHtml coding
Html coding
Briana VanBuskirk
 
Happy Browser, Happy User! NY Web Performance Meetup 9/20/19
Happy Browser, Happy User! NY Web Performance Meetup 9/20/19Happy Browser, Happy User! NY Web Performance Meetup 9/20/19
Happy Browser, Happy User! NY Web Performance Meetup 9/20/19
Katie Sylor-Miller
 
#3 HTML & CSS [know-how]
#3 HTML & CSS [know-how]#3 HTML & CSS [know-how]
#3 HTML & CSS [know-how]
Dalibor Gogic
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
Terry Ryan
 
Building the basics (WordPress Ottawa 2014)
Building the basics (WordPress Ottawa 2014)Building the basics (WordPress Ottawa 2014)
Building the basics (WordPress Ottawa 2014)
Christopher Ross
 

Semelhante a Basic HTML CSS Slides (20)

TOSSUG HTML5 讀書會 新標籤與表單
TOSSUG HTML5 讀書會 新標籤與表單TOSSUG HTML5 讀書會 新標籤與表單
TOSSUG HTML5 讀書會 新標籤與表單
 
Artdm171 Week4 Tags
Artdm171 Week4 TagsArtdm171 Week4 Tags
Artdm171 Week4 Tags
 
Html Hands On
Html Hands OnHtml Hands On
Html Hands On
 
LIS3353 SP12 Week 4
LIS3353 SP12 Week 4LIS3353 SP12 Week 4
LIS3353 SP12 Week 4
 
Webware - from Document to Operating System
Webware - from Document to Operating System Webware - from Document to Operating System
Webware - from Document to Operating System
 
HTML5 & CSS3 Flag
HTML5 & CSS3 FlagHTML5 & CSS3 Flag
HTML5 & CSS3 Flag
 
Progressive Downloads and Rendering
Progressive Downloads and RenderingProgressive Downloads and Rendering
Progressive Downloads and Rendering
 
Js placement
Js placementJs placement
Js placement
 
Progressive Downloads and Rendering - take #2
Progressive Downloads and Rendering - take #2Progressive Downloads and Rendering - take #2
Progressive Downloads and Rendering - take #2
 
Seven deadly theming sins
Seven deadly theming sinsSeven deadly theming sins
Seven deadly theming sins
 
Happy Browser, Happy User! - PerfMatters Conference 2019
Happy Browser, Happy User! - PerfMatters Conference 2019Happy Browser, Happy User! - PerfMatters Conference 2019
Happy Browser, Happy User! - PerfMatters Conference 2019
 
Taking your Web App for a walk
Taking your Web App for a walkTaking your Web App for a walk
Taking your Web App for a walk
 
Hardcore HTML
Hardcore HTMLHardcore HTML
Hardcore HTML
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
 
Critical Rendering Path
Critical Rendering PathCritical Rendering Path
Critical Rendering Path
 
Html coding
Html codingHtml coding
Html coding
 
Happy Browser, Happy User! NY Web Performance Meetup 9/20/19
Happy Browser, Happy User! NY Web Performance Meetup 9/20/19Happy Browser, Happy User! NY Web Performance Meetup 9/20/19
Happy Browser, Happy User! NY Web Performance Meetup 9/20/19
 
#3 HTML & CSS [know-how]
#3 HTML & CSS [know-how]#3 HTML & CSS [know-how]
#3 HTML & CSS [know-how]
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
 
Building the basics (WordPress Ottawa 2014)
Building the basics (WordPress Ottawa 2014)Building the basics (WordPress Ottawa 2014)
Building the basics (WordPress Ottawa 2014)
 

Último

Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Speck&Tech
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Wask
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
MichaelKnudsen27
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Alpen-Adria-Universität
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
Daiki Mogmet Ito
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
ssuserfac0301
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
tolgahangng
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
Edge AI and Vision Alliance
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
Tatiana Kojar
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
Jason Packer
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
Pixlogix Infotech
 

Último (20)

Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
 

Basic HTML CSS Slides

  • 1. 1
  • 2.
  • 3. Allyson Wehrs Who am I? Web Engineer with LuminFire Experience Interests
  • 4. Overview • HTML • CSS • CSS and WordPress • CSS Preprocessors
  • 7. • html • head • title • body HTML Elements <!DOCTYPE html> <html> <head> <title>Title of my web page</title> </head> <body> </body> </html>
  • 8. Paragraphs Hello World <!DOCTYPE html> <html> <head> <title>Title of my web page</title> </head> <body> <p>Hello World</p> </body> </html>
  • 9. Headings Heading 1 Heading 2 Heading 3 Heading 4 Heading 5 Heading 6 <!DOCTYPE html> <html> <head> <title>Title of my web page</title> </head> <body> <h1>Heading 1</h1> <h2>Heading 2</h2> <h3>Heading 3</h3> <h4>Heading 4</h4> <h5>Heading 5</h5> <h6>Heading 6</h6> </body> </html>
  • 10. Div Title Hello World <!DOCTYPE html> <html> <head> <title>Title of my web page</title> </head> <body> <div> <h1>Title</h1> <p>Hello World</p> </div> </body> </html>
  • 11. Unordered List • Item 1 • Item 2 • Item 3 <!DOCTYPE html> <html> <head> <title>Title of my web page</title> </head> <body> <ul> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> </ul> </body> </html>
  • 12. Ordered List 1. Item 1 2. Item 2 3. Item 3 <!DOCTYPE html> <html> <head> <title>Title of my web page</title> </head> <body> <ol> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> </ol> </body> </html>
  • 13. Links Click Me <!DOCTYPE html> <html> <head> <title>Title of my web page</title> </head> <body> <a href=” https://luminfire.com/”>Click Me</a> </body> </html>
  • 14. Images <!DOCTYPE html> <html> <head> <title>Title of my web page</title> </head> <body> <img src=”picture.jpg” width=”200” height=”200” alt=”orange sunset” /> </body> </html>
  • 15. Buttons <!DOCTYPE html> <html> <head> <title>Title of my web page</title> </head> <body> <button type=”button”>Click Me!</button> </body> </html> Click Me!
  • 16. • header • nav • main • aside • footer Semantic Elements <!DOCTYPE html> <html> <head> <title>Title of my web page</title> </head> <body> <header> <nav></nav> </header> <main> <p>Page content</p> <aside></aside> </main> <footer> <p>&copy;</p> </footer> </body> </html>
  • 17. • Classes • IDs Uniquely Identify Elements <!DOCTYPE html> <html> <head> <title>Title of my web page</title> </head> <body> <h1 id=”page-title”>Title</h1> <h2 class=”section-title”>Section Title</h2> <p>content</p> <p class=”secondary-content”>content</p> <h2 class=”section-title”>Section Title</h2> <p>content</p> <p class=”secondary-content”>content</p> <h2 class=”section-title”>Section Title</h2> <p>content</p> </body> </html>
  • 18. CSS
  • 19. CSS Block .content p { font-family: ‘Open Sans’, sans-serif; font-size: 16px; color: blue; } #page-title { margin-bottom: 20px; } h1 {color:pink; opacity:1;} Selector Declaration Declaration Property Property Value Value
  • 21. Block & Inline Elements <!DOCTYPE html> <html> <head> <title>Title of my web page</title> </head> <body> <p>Page <span>content</span></p> <p>Page content</p> </body> </html> Page content Page content
  • 22. Block & Inline Elements <body> <p>Page <span>content</span></p> <p>Page content</p> </body> Page content Page content span { display: block; }
  • 23. Floats <body> <img src=”picture.jpg” alt=”orange sunset”/> <p>Lorem Ipsum dolor, lorem ipsum sor tempor consequat. Lorem ipsum dolor lorem ipsum sor tempor consequat. Eoes qui commondo autem.</p> </body> img { float: left; } Lorem Ipsum dolor, lorem ipsum sor tempor consequat. Lorem ipsum dolor lorem ipsum sor tempor consequat. Eoes qui commondo autem.
  • 24. Some Commonly Used Selectors color background-color height width font-family font-size font-weight text-align • left • right • center
  • 25. How to use CSS on you WordPress Site 
 • Child Theme
 ◦ Text Editor ◦ FTP • Theme Editor

  • 26. Floats <body> <img id=”post-image” src=”picture.jpg” alt=”orange sunset” /> <p>Lorem Ipsum dolor, lorem ipsum sor tempor consequat. Lorem ipsum dolor lorem ipsum sor tempor consequat. Eoes qui commondo autem.</p> </body> img { float: left; } Lorem Ipsum dolor, lorem ipsum sor tempor consequat. Lorem ipsum dolor lorem ipsum sor tempor consequat. Eoes qui commondo autem. ?!
  • 27. Floats #post-image { float: none; } img { float: left; } Lorem Ipsum dolor, lorem ipsum sor tempor consequat. Lorem ipsum dolor lorem ipsum sor tempor consequat. Eoes qui commondo autem. <main.css> <plugin.css>
  • 29. Specificity Lorem Ipsum dolor, lorem ipsum sor tempor consequat. Lorem ipsum dolor lorem ipsum sor tempor consequat. Eoes qui commondo autem. <main.css> p { color: blue; } p { color: red; }
  • 30. Specificity Lorem Ipsum dolor, lorem ipsum sor tempor consequat. Lorem ipsum dolor lorem ipsum sor tempor consequat. Eoes qui commondo autem. <main.css> #post-paragraph { color: blue; } p { color: red; }
  • 31. Specificity #post-paragraph { color: blue; } p { color: red; } Lorem Ipsum dolor, lorem ipsum sor tempor consequat. Lorem ipsum dolor lorem ipsum sor tempor consequat. Eoes qui commondo autem. <main.css> <body> <img id=”post-image” src=”picture.jpg” alt=”orange sunset”/> <p id=”post-paragraph” style=”color:purple”>Lorem Ipsum dolor, lorem ipsum sor tempor consequat. Lorem ipsum dolor lorem ipsum sor tempor consequat. Eoes qui commondo autem.</p> </body>
  • 32. Specificity #post-paragraph { color: blue !important; } p { color: red; } Lorem Ipsum dolor, lorem ipsum sor tempor consequat. Lorem ipsum dolor lorem ipsum sor tempor consequat. Eoes qui commondo autem. <main.css> <body> <img id=”post-image” src=”picture.jpg” alt=”orange sunset”/> <p id=”post-paragraph” style=”color:purple”>Lorem Ipsum dolor, lorem ipsum sor tempor consequat. Lorem ipsum dolor lorem ipsum sor tempor consequat. Eoes qui commondo autem.</p> </body>
  • 33. Specificity Lorem Ipsum dolor, lorem ipsum sor tempor consequat. Lorem ipsum dolor lorem ipsum sor tempor consequat. Eoes qui commondo autem. <plugin.css> <main.css> .post-image { float: none; } body .post-image { float: left; }
  • 35. Flexbox <body> <div class=”flexbox-parent”> <div class=”flexbox-child”><p>Box 1</p></div> <div class=”flexbox-child”><p>Box 2</p></div> <div class=”flexbox-child”><p>Box 3</p></div> </div> </body> .flexbox-parent { display: flex; flex-wrap: wrap; justify-content: space-between; } .flexbox-child { width: 33%; } Box 1 Box 2 Box 3
  • 36. Sass
  • 37. Sass .product-page { color: #333; } .product-page .product-description { margin: 0 auto; } .product-page .product-description p { padding: 20px; font-weight: normal; } .product-page .product-footer { margin-top: 30px; color: white; } CSS .product-page { color: #333; .product-description { margin: 0 auto; p { padding: 20px; font-weight: normal; } } .product-footer { margin-top: 30px; color: white; } }
  • 38. Sass CSS $font-stack: Helvetica, sans-serif; $primary-color: #333; body { font: 100% $font-stack; color: $primary-color; } body { font: 100% Helvetica, sans-serif; color: #333; }
  • 39. Sass CSS @mixin border-radius($radius: 5px) { -webkit-border-radius: $radius; -moz-border-radius: $radius; -ms-border-radius: $radius; border-radius: $radius; } .box { @include border-radius(10px); } .box { -webkit-border-radius: 10px; -moz-border-radius: 10px; -ms-border-radius: 10px; border-radius: 10px; }
  • 40. Sass CSS %equal-heights { display: flex; flex-wrap: wrap; } .columns { @extend %equal-heights; justify-content: space-between; } .columns { display: flex; flex-wrap: wrap; justify-content: space-between; }
  • 41. Sass CSS .content { float: left; width: 600px / 960px * 100%; } .content { float: left; width: 62.5%; }
  • 42. Learning Resources - HTML/CSS Basics • freeCodeCamp (www.freecodecamp.org) • Codecademy (www.codecademy.com) • W3schools - CSS Tutorial (www.w3schools.com/css/default.asp) • Mozilla Developer Network - Intro to CSS (https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS) • The 30 CSS Selectors you must memorize (https://code.tutsplus.com/tutorials/the-30-css-selectors-you-must-memorize--net-16048)
  • 43. Learning Resources - Advanced CSS • Scalable and Modular Architecture for CSS (smacss.com)
 • CSS Preprocessors
 ◦Sass (sass-lang.com)
 ◦Less (lesscss.org)
 ◦Stylus (stylus-lang.com)
 • A Complete Guide to Flexbox (https://css-tricks.com/snippets/css/a-guide-to-flexbox/) • Specifics on CSS Specificity (https://css-tricks.com/specifics-on-css-specificity/)