SlideShare a Scribd company logo
hasen@microcis.net July 01, 2013Hassen poreya
Trainer, Cresco Solution
Afghanistan Workforce
Development Program
HTML / CSS
Divisions
 As defined in the HTML 4.01 and XHTML 1.0
standards, the <div> tag divides your document
into separate, distinct sections.
 In fact you can organize and position your objects
on the document with divisions (<div>).
 A div is nothing more but a container, Similar to
tables, but much more lighter and useful.
 Older websites were using tables to position and
organize the objects, that was complex as well as
much more slower than the divisions.
 Today’s websites are using division.
Divisions
 Inner divs comes inside another (outer) div to split
up the outer div.
 You define a size for each div and place it
somewhere in your document, and then put your
contents inside the div.
 The basic syntax is like:
<div>
…
<div>
</div>
…
</div>
CSS ( Cascading Style Sheet)
CSS
 Stands for Cascading Style Sheet.
 Added to HTML 4.0 to solve a problem.
 It separates structure from layout.
 Define how to display HTML elements.
 Reduces size of HTML file.
 Multiple style definitions will cascade into one.
CSS Syntax
 The CSS syntax is made up of three parts:
 Selector: The selector is normally the HTML
element/tag
 Property
 Value
selector {property: value}
h1 {color: blue;}
.p {font-size: 12px;}
Selector
 There are three kind of selectors
 Group selector
 Class selector
 Id selector
Group Selector
 You can set a style for a group of HTML elements.
 Separate selectors from each other by a comma.
h1,h2,h3,h4,h5,h6 {color: green;}
or
p, h4, title {text-align:right;}
Class Selector
 define different styles for the same type of HTML
element
 CSS Syntax
p.center {text-align: center}
 class attribute in HTML document:
<p class="center">
This paragraph will be center
</p>
Class Selector
 Apply more than one class per given element.
 CSS Syntax
.center {text-align: center}
 Class attribute in HTML document:
<p class="center">
This paragraph will be center
</p>
<h1 class="center">
This heading will be center
</h1>
Id Selector
 The id selector is defined as a #
 CSS Syntax
#center {text-align: center}
 Idattribute in HTML document:
<p id="center">Paragraph in center</p>
<h1 id="center">
This heading will be center
</h1>
Inserting CSS to HTML
 There are three ways of inserting a style sheet into
a HTML document.
 Inline Styles
 Internal Style Sheet
 External Style Sheet
Inline CSS
 Style is to be applied to a single occurrence of an
element.
 In fact, HTML style attribute comes inside a tag and
hold your CSS definitions.
<p style="color:sienna; margin-left:20px">
This is a paragraph
</p>
Internal CSS
 You can define internal styles in the head section
by using the <style> tag.
<head>
<style type="text/css">
p {margin-left: 20px}
body{backgroun image:url(“me.jpg")
</style>
</head>
External CSS
 You can write all CSS code in one file and save it as “style.css”
and then you can link this to your HTML document.
 By doing this, you can bring changes in CSS file and then
everything automatically will be change in your HTML
document.
 CSS File – style.css
p {margin-left: 20px}
 HTML File
<head>
<link rel="stylesheet” type="text/css” href=“style.css"/>
</head>
Basic style properties
Background-color: value;
Background-image: value;
Font-family: value;
Font-size: value;
Float: value;
Text-align: value;
Color: value;
Width: value;
Height: value;
CSS Backgrounds
 CSS properties used for background effects:
 background-color (Color)
 background-image (Image URL)
 background-repeat (Repeat to X and Y)
 background-attachment (Fixed or Scroll)
 background-position (top, right, left, bottom)
CSS Backgrounds
 body {background-color:#b0c4de;}
 p {background-color:#e0ffff;}
 body {background-image:url(‘microcis.png');}
 Body{ background-image:url('gradient.png');
background-repeat:repeat-x;}
 Body{ background-image:url(‘logo.png');
background-repeat:no-repeat;
background-psition:right top;}
Shorthand style:
body {background:#fff url('img_tree.png') no-repeat right top;}
Order:
background-color, background-image, background-repeat, background-attachment
background-position
CSS Text Style
 Some CSS properties used to style the texts.
 Color (Text color)
 Direction (left to right, right to left)
 Text-align (left, center, right)
 Text-decoration (Underline, overline, …)
 Text-transform (uppercase, lowercase)
 Text-indent (pixels)
 Letter-spacing (pixels)
 Word-spacing (pixels)
CSS Text Style
h1 {color:#00ff00;}
h2 {color:rgb(255,0,0);}
p.date {text-align:right;}
a {text-decoration:none;}
h1 {text-decoration:overline;}
h2 {text-decoration:line-through;}
h3 {text-decoration:underline;}
h4 {text-decoration:blink;}
p.uppercase {text-transform:uppercase;}
p.capitalize {text-transform:capitalize;}
p {text-indent:50px;}
CSS Link Style
 Almost any CSS property can be attached to links.
 color, font-family, background, dir, margin, text-
decoration, …
a:link – a normal, unvisited link
a:visited – a visited link
a:hover – react on mouse over
a:active – a link the moment it is clicked
CSS Link Style
a:link {color:#FF0000;}
a:visited {color:#00FF00;}
a:hover {color:#FF00FF;}
a:active {color:#0000FF;}
-------------------------------------
a:link {text-decoration:none;}
a:visited {text-decoration:none;}
a:hover {text-decoration:underline;}
a:active {text-decoration:underline;}
CSS List Style
 The CSS list properties allow you to:
 Set different list item markers for ordered lists.
 Set different list item markers for unordered lists.
 Set an image as the list item marker.
ul.a {list-style-type: circle;}
ul.b {list-style-type: square;}
ol.c {list-style-type: upper-roman;}
ol.d {list-style-type: lower-alpha;}
--
Ul{ list-style-image: url('sqpurple.gif');}
Let’s codesomething
hasen@microcis.net July 01, 2013Hassen poreya
Trainer, Cresco Solution
Any Questions!

More Related Content

What's hot

Complete Lecture on Css presentation
Complete Lecture on Css presentation Complete Lecture on Css presentation
Complete Lecture on Css presentation
Salman Memon
 
Introduction to css
Introduction to cssIntroduction to css
Introduction to css
Evolution Network
 
Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)
Chris Poteet
 
Beginners css tutorial for web designers
Beginners css tutorial for web designersBeginners css tutorial for web designers
Beginners css tutorial for web designers
Singsys Pte Ltd
 
Cascading Style Sheets (CSS)
Cascading Style Sheets (CSS)Cascading Style Sheets (CSS)
Cascading Style Sheets (CSS)
Harshil Darji
 
Introduction to css & its attributes with syntax
Introduction to css & its attributes with syntaxIntroduction to css & its attributes with syntax
Introduction to css & its attributes with syntax
priyadharshini murugan
 
Cascading Style Sheet | CSS
Cascading Style Sheet | CSSCascading Style Sheet | CSS
Cascading Style Sheet | CSS
MSA Technosoft
 
CSS Basics part One
CSS Basics part OneCSS Basics part One
CSS Basics part One
M Ashraful Islam Jewel
 
Css
CssCss
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
Amit Tyagi
 
Cascading style sheets (CSS)
Cascading style sheets (CSS)Cascading style sheets (CSS)
Cascading style sheets (CSS)
Harshita Yadav
 
Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)
AakankshaR
 
CSS
CSSCSS
Week 12 CSS - Review from last week
Week 12 CSS - Review from last weekWeek 12 CSS - Review from last week
Week 12 CSS - Review from last week
Katherine McCurdy-Lapierre, R.G.D.
 
CSS
CSS CSS
CSS
Sunil OS
 
Css lecture notes
Css lecture notesCss lecture notes
Css lecture notes
Santhiya Grace
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
Prarthan P
 
Css
CssCss
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
Ameer Khan
 

What's hot (20)

Complete Lecture on Css presentation
Complete Lecture on Css presentation Complete Lecture on Css presentation
Complete Lecture on Css presentation
 
Introduction to css
Introduction to cssIntroduction to css
Introduction to css
 
Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)
 
Beginners css tutorial for web designers
Beginners css tutorial for web designersBeginners css tutorial for web designers
Beginners css tutorial for web designers
 
Cascading Style Sheets (CSS)
Cascading Style Sheets (CSS)Cascading Style Sheets (CSS)
Cascading Style Sheets (CSS)
 
Introduction to css & its attributes with syntax
Introduction to css & its attributes with syntaxIntroduction to css & its attributes with syntax
Introduction to css & its attributes with syntax
 
Cascading Style Sheet | CSS
Cascading Style Sheet | CSSCascading Style Sheet | CSS
Cascading Style Sheet | CSS
 
CSS Basics part One
CSS Basics part OneCSS Basics part One
CSS Basics part One
 
Css
CssCss
Css
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
Cascading style sheets (CSS)
Cascading style sheets (CSS)Cascading style sheets (CSS)
Cascading style sheets (CSS)
 
Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)
 
CSS
CSSCSS
CSS
 
Week 12 CSS - Review from last week
Week 12 CSS - Review from last weekWeek 12 CSS - Review from last week
Week 12 CSS - Review from last week
 
CSS
CSS CSS
CSS
 
Css lecture notes
Css lecture notesCss lecture notes
Css lecture notes
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
Css
CssCss
Css
 
Css
CssCss
Css
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 

Viewers also liked

Learn to Code with JavaScript - Choose Your Own Adventures
Learn to Code with JavaScript - Choose Your Own AdventuresLearn to Code with JavaScript - Choose Your Own Adventures
Learn to Code with JavaScript - Choose Your Own Adventures
Tessa Mero
 
Web app development_php_04
Web app development_php_04Web app development_php_04
Web app development_php_04
Hassen Poreya
 
Web app development_database_design_11
Web app development_database_design_11Web app development_database_design_11
Web app development_database_design_11
Hassen Poreya
 
Web app development_my_sql_09
Web app development_my_sql_09Web app development_my_sql_09
Web app development_my_sql_09
Hassen Poreya
 
CodeIgniter Practice
CodeIgniter PracticeCodeIgniter Practice
CodeIgniter Practice
Jamshid Hashimi
 
Web app development_crud_13
Web app development_crud_13Web app development_crud_13
Web app development_crud_13
Hassen Poreya
 
Web app development_database_design_er-mapping_12
Web app development_database_design_er-mapping_12Web app development_database_design_er-mapping_12
Web app development_database_design_er-mapping_12
Hassen Poreya
 
Web app development_my_sql_08
Web app development_my_sql_08Web app development_my_sql_08
Web app development_my_sql_08
Hassen Poreya
 
Web app development_php_07
Web app development_php_07Web app development_php_07
Web app development_php_07
Hassen Poreya
 
Web app development_php_06
Web app development_php_06Web app development_php_06
Web app development_php_06
Hassen Poreya
 
Web app development_database_design_10
Web app development_database_design_10Web app development_database_design_10
Web app development_database_design_10
Hassen Poreya
 
Web app development_php_05
Web app development_php_05Web app development_php_05
Web app development_php_05
Hassen Poreya
 
Web app development_html_01
Web app development_html_01Web app development_html_01
Web app development_html_01
Hassen Poreya
 
Web app development_cookies_sessions_14
Web app development_cookies_sessions_14Web app development_cookies_sessions_14
Web app development_cookies_sessions_14
Hassen Poreya
 
Web app development_html_02
Web app development_html_02Web app development_html_02
Web app development_html_02
Hassen Poreya
 

Viewers also liked (15)

Learn to Code with JavaScript - Choose Your Own Adventures
Learn to Code with JavaScript - Choose Your Own AdventuresLearn to Code with JavaScript - Choose Your Own Adventures
Learn to Code with JavaScript - Choose Your Own Adventures
 
Web app development_php_04
Web app development_php_04Web app development_php_04
Web app development_php_04
 
Web app development_database_design_11
Web app development_database_design_11Web app development_database_design_11
Web app development_database_design_11
 
Web app development_my_sql_09
Web app development_my_sql_09Web app development_my_sql_09
Web app development_my_sql_09
 
CodeIgniter Practice
CodeIgniter PracticeCodeIgniter Practice
CodeIgniter Practice
 
Web app development_crud_13
Web app development_crud_13Web app development_crud_13
Web app development_crud_13
 
Web app development_database_design_er-mapping_12
Web app development_database_design_er-mapping_12Web app development_database_design_er-mapping_12
Web app development_database_design_er-mapping_12
 
Web app development_my_sql_08
Web app development_my_sql_08Web app development_my_sql_08
Web app development_my_sql_08
 
Web app development_php_07
Web app development_php_07Web app development_php_07
Web app development_php_07
 
Web app development_php_06
Web app development_php_06Web app development_php_06
Web app development_php_06
 
Web app development_database_design_10
Web app development_database_design_10Web app development_database_design_10
Web app development_database_design_10
 
Web app development_php_05
Web app development_php_05Web app development_php_05
Web app development_php_05
 
Web app development_html_01
Web app development_html_01Web app development_html_01
Web app development_html_01
 
Web app development_cookies_sessions_14
Web app development_cookies_sessions_14Web app development_cookies_sessions_14
Web app development_cookies_sessions_14
 
Web app development_html_02
Web app development_html_02Web app development_html_02
Web app development_html_02
 

Similar to Web app development_html_css_03

Web topic 15 1 basic css layout
Web topic 15 1  basic css layoutWeb topic 15 1  basic css layout
Web topic 15 1 basic css layout
CK Yang
 
Unit 2-CSS & Bootstrap.ppt
Unit 2-CSS & Bootstrap.pptUnit 2-CSS & Bootstrap.ppt
Unit 2-CSS & Bootstrap.ppt
TusharTikia
 
Css introduction
Css  introductionCss  introduction
Css introduction
vishnu murthy
 
CSS.pdf
CSS.pdfCSS.pdf
CSS.pdf
SoniaJoshi25
 
Css
CssCss
TUTORIAL DE CSS 2.0
TUTORIAL DE CSS 2.0TUTORIAL DE CSS 2.0
TUTORIAL DE CSS 2.0
Vladimir Valencia
 
Css
CssCss
Css starting
Css startingCss starting
Css starting
Rahul Dihora
 
Introduction to CSS.pptx
Introduction to CSS.pptxIntroduction to CSS.pptx
Introduction to CSS.pptx
DHANUSHTEJVUNNAM
 
CSS_Day_ONE (W3schools)
CSS_Day_ONE (W3schools)CSS_Day_ONE (W3schools)
CSS_Day_ONE (W3schools)
Rafi Haidari
 
Css tutorial
Css tutorialCss tutorial
Css tutorial
vedaste
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
Folasade Adedeji
 
Webpage style with CSS
Webpage style with CSSWebpage style with CSS
Webpage style with CSS
Hemant Patidar
 
Lecture2
Lecture2Lecture2
Lecture2
Lee Lundrigan
 
Css
CssCss
Css
CssCss
Css1
Css1Css1
Css introduction
Css introductionCss introduction
Css introduction
Sridhar P
 
html-css
html-csshtml-css
2_css.pptx
2_css.pptx2_css.pptx
2_css.pptx
VarunMM2
 

Similar to Web app development_html_css_03 (20)

Web topic 15 1 basic css layout
Web topic 15 1  basic css layoutWeb topic 15 1  basic css layout
Web topic 15 1 basic css layout
 
Unit 2-CSS & Bootstrap.ppt
Unit 2-CSS & Bootstrap.pptUnit 2-CSS & Bootstrap.ppt
Unit 2-CSS & Bootstrap.ppt
 
Css introduction
Css  introductionCss  introduction
Css introduction
 
CSS.pdf
CSS.pdfCSS.pdf
CSS.pdf
 
Css
CssCss
Css
 
TUTORIAL DE CSS 2.0
TUTORIAL DE CSS 2.0TUTORIAL DE CSS 2.0
TUTORIAL DE CSS 2.0
 
Css
CssCss
Css
 
Css starting
Css startingCss starting
Css starting
 
Introduction to CSS.pptx
Introduction to CSS.pptxIntroduction to CSS.pptx
Introduction to CSS.pptx
 
CSS_Day_ONE (W3schools)
CSS_Day_ONE (W3schools)CSS_Day_ONE (W3schools)
CSS_Day_ONE (W3schools)
 
Css tutorial
Css tutorialCss tutorial
Css tutorial
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
Webpage style with CSS
Webpage style with CSSWebpage style with CSS
Webpage style with CSS
 
Lecture2
Lecture2Lecture2
Lecture2
 
Css
CssCss
Css
 
Css
CssCss
Css
 
Css1
Css1Css1
Css1
 
Css introduction
Css introductionCss introduction
Css introduction
 
html-css
html-csshtml-css
html-css
 
2_css.pptx
2_css.pptx2_css.pptx
2_css.pptx
 

Recently uploaded

Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
saastr
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
Hiroshi SHIBATA
 
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
 
Public CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptxPublic CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptx
marufrahmanstratejm
 
dbms calicut university B. sc Cs 4th sem.pdf
dbms  calicut university B. sc Cs 4th sem.pdfdbms  calicut university B. sc Cs 4th sem.pdf
dbms calicut university B. sc Cs 4th sem.pdf
Shinana2
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
Zilliz
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
akankshawande
 
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
 
A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024
Intelisync
 
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - HiikeSystem Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
Hiike
 
Dandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity serverDandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity server
Antonios Katsarakis
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
Brandon Minnick, MBA
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
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
 
Trusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process MiningTrusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process Mining
LucaBarbaro3
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
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
 
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Jeffrey Haguewood
 

Recently uploaded (20)

Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
 
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
 
Public CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptxPublic CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptx
 
dbms calicut university B. sc Cs 4th sem.pdf
dbms  calicut university B. sc Cs 4th sem.pdfdbms  calicut university B. sc Cs 4th sem.pdf
dbms calicut university B. sc Cs 4th sem.pdf
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
 
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
 
A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024
 
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - HiikeSystem Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
 
Dandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity serverDandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity server
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
Trusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process MiningTrusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process Mining
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
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
 
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
 

Web app development_html_css_03

  • 1. hasen@microcis.net July 01, 2013Hassen poreya Trainer, Cresco Solution Afghanistan Workforce Development Program HTML / CSS
  • 2. Divisions  As defined in the HTML 4.01 and XHTML 1.0 standards, the <div> tag divides your document into separate, distinct sections.  In fact you can organize and position your objects on the document with divisions (<div>).  A div is nothing more but a container, Similar to tables, but much more lighter and useful.  Older websites were using tables to position and organize the objects, that was complex as well as much more slower than the divisions.  Today’s websites are using division.
  • 3. Divisions  Inner divs comes inside another (outer) div to split up the outer div.  You define a size for each div and place it somewhere in your document, and then put your contents inside the div.  The basic syntax is like: <div> … <div> </div> … </div>
  • 4. CSS ( Cascading Style Sheet)
  • 5. CSS  Stands for Cascading Style Sheet.  Added to HTML 4.0 to solve a problem.  It separates structure from layout.  Define how to display HTML elements.  Reduces size of HTML file.  Multiple style definitions will cascade into one.
  • 6. CSS Syntax  The CSS syntax is made up of three parts:  Selector: The selector is normally the HTML element/tag  Property  Value selector {property: value} h1 {color: blue;} .p {font-size: 12px;}
  • 7. Selector  There are three kind of selectors  Group selector  Class selector  Id selector
  • 8. Group Selector  You can set a style for a group of HTML elements.  Separate selectors from each other by a comma. h1,h2,h3,h4,h5,h6 {color: green;} or p, h4, title {text-align:right;}
  • 9. Class Selector  define different styles for the same type of HTML element  CSS Syntax p.center {text-align: center}  class attribute in HTML document: <p class="center"> This paragraph will be center </p>
  • 10. Class Selector  Apply more than one class per given element.  CSS Syntax .center {text-align: center}  Class attribute in HTML document: <p class="center"> This paragraph will be center </p> <h1 class="center"> This heading will be center </h1>
  • 11. Id Selector  The id selector is defined as a #  CSS Syntax #center {text-align: center}  Idattribute in HTML document: <p id="center">Paragraph in center</p> <h1 id="center"> This heading will be center </h1>
  • 12. Inserting CSS to HTML  There are three ways of inserting a style sheet into a HTML document.  Inline Styles  Internal Style Sheet  External Style Sheet
  • 13. Inline CSS  Style is to be applied to a single occurrence of an element.  In fact, HTML style attribute comes inside a tag and hold your CSS definitions. <p style="color:sienna; margin-left:20px"> This is a paragraph </p>
  • 14. Internal CSS  You can define internal styles in the head section by using the <style> tag. <head> <style type="text/css"> p {margin-left: 20px} body{backgroun image:url(“me.jpg") </style> </head>
  • 15. External CSS  You can write all CSS code in one file and save it as “style.css” and then you can link this to your HTML document.  By doing this, you can bring changes in CSS file and then everything automatically will be change in your HTML document.  CSS File – style.css p {margin-left: 20px}  HTML File <head> <link rel="stylesheet” type="text/css” href=“style.css"/> </head>
  • 16. Basic style properties Background-color: value; Background-image: value; Font-family: value; Font-size: value; Float: value; Text-align: value; Color: value; Width: value; Height: value;
  • 17. CSS Backgrounds  CSS properties used for background effects:  background-color (Color)  background-image (Image URL)  background-repeat (Repeat to X and Y)  background-attachment (Fixed or Scroll)  background-position (top, right, left, bottom)
  • 18. CSS Backgrounds  body {background-color:#b0c4de;}  p {background-color:#e0ffff;}  body {background-image:url(‘microcis.png');}  Body{ background-image:url('gradient.png'); background-repeat:repeat-x;}  Body{ background-image:url(‘logo.png'); background-repeat:no-repeat; background-psition:right top;} Shorthand style: body {background:#fff url('img_tree.png') no-repeat right top;} Order: background-color, background-image, background-repeat, background-attachment background-position
  • 19. CSS Text Style  Some CSS properties used to style the texts.  Color (Text color)  Direction (left to right, right to left)  Text-align (left, center, right)  Text-decoration (Underline, overline, …)  Text-transform (uppercase, lowercase)  Text-indent (pixels)  Letter-spacing (pixels)  Word-spacing (pixels)
  • 20. CSS Text Style h1 {color:#00ff00;} h2 {color:rgb(255,0,0);} p.date {text-align:right;} a {text-decoration:none;} h1 {text-decoration:overline;} h2 {text-decoration:line-through;} h3 {text-decoration:underline;} h4 {text-decoration:blink;} p.uppercase {text-transform:uppercase;} p.capitalize {text-transform:capitalize;} p {text-indent:50px;}
  • 21. CSS Link Style  Almost any CSS property can be attached to links.  color, font-family, background, dir, margin, text- decoration, … a:link – a normal, unvisited link a:visited – a visited link a:hover – react on mouse over a:active – a link the moment it is clicked
  • 22. CSS Link Style a:link {color:#FF0000;} a:visited {color:#00FF00;} a:hover {color:#FF00FF;} a:active {color:#0000FF;} ------------------------------------- a:link {text-decoration:none;} a:visited {text-decoration:none;} a:hover {text-decoration:underline;} a:active {text-decoration:underline;}
  • 23. CSS List Style  The CSS list properties allow you to:  Set different list item markers for ordered lists.  Set different list item markers for unordered lists.  Set an image as the list item marker. ul.a {list-style-type: circle;} ul.b {list-style-type: square;} ol.c {list-style-type: upper-roman;} ol.d {list-style-type: lower-alpha;} -- Ul{ list-style-image: url('sqpurple.gif');}
  • 25. hasen@microcis.net July 01, 2013Hassen poreya Trainer, Cresco Solution Any Questions!