SlideShare a Scribd company logo
COMPUTER SCIENCE
TOPIC : CSS
BY: PRIYANKA PRADHAN
MJPRU
Priyanka Pradhan
What is CSS?
 CSS stands for Cascading Style Sheets
 CSS describes how HTML elements are to be
displayed on screen, paper, or in other media
 CSS saves a lot of work. It can control the layout
of multiple web pages all at once
 External stylesheets are stored in CSS files
Priyanka Pradhan
Why Use CSS?
 CSS is used to define styles for your web
pages, including the design, layout and
variations in display for different devices and
screen sizes.
Priyanka Pradhan
CSS Syntax
 A CSS rule-set consists of a selector and a declaration block:
 The selector points to the HTML element you want to style.
 The declaration block contains one or more declarations
separated by semicolons.
 Each declaration includes a CSS property name and a value,
separated by a colon.
 A CSS declaration always ends with a semicolon, and
declaration blocks are surrounded by curly braces.
 In the following example all <p> elements will be center-aligned,
with a red text color:
Priyanka Pradhan
 Example
 p {
color: red;
text-align: center;
}
 When a browser reads a style sheet, it will format
the HTML document according to the information
in the style sheet.
Priyanka Pradhan
 body {
background-color: black;
}
h1 {
color: white;
text-align: center;
}
p {
font-family: verdana;
font-size: 20px;
}
Priyanka Pradhan
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: lightblue;
}
h1 {
color: white;
text-align: center;
}
p {
font-family: verdana;
font-size: 20px;
}
</style>
</head>
<body>
<h1>My First CSS Example</h1>
<p>This is a paragraph.</p>
</body>
</html>
Priyanka Pradhan
My First CSS Example
This is a paragraph.
Priyanka Pradhan
Three Ways to Insert CSS
There are three ways of inserting a style sheet:
 External style sheet
 Internal style sheet
 Inline style
Priyanka Pradhan
External Style Sheet
 Each page must include a reference to the
external style sheet file inside the <link>
element.
 The <link> element goes inside the <head>
section.
Priyanka Pradhan
 Example
 <head>
<link rel="stylesheet" type="text/css" href="my
style.css">
</head>
Priyanka Pradhan
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Priyanka Pradhan
 Here is how the "mystyle.css" looks:
body {
background-color: lightblue;
}
h1 {
color: navy;
margin-left: 20px;
}
Priyanka Pradhan
Internal Style Sheet
 An internal style sheet may be used if one
single page has a unique style.
 Internal styles are defined within the <style>
element, inside the <head> section of an
HTML page.
Priyanka Pradhan
 Example
<head>
<style>
body {
background-color: linen;
}
h1 {
color: maroon;
margin-left: 40px;
}
</style>
</head>
Priyanka Pradhan
This is a heading
This is a paragraph
Priyanka Pradhan
Inline Styles
 An inline style may be used to apply a unique
style for a single element.
 To use inline styles, add the style attribute to
the relevant element. The style attribute can
contain any CSS property.
Priyanka Pradhan
 <h1 style="color:blue;margin-left:30px;">This
is a heading</h1>
Priyanka Pradhan
<!DOCTYPE html>
<html>
<body>
<h1 style="color:blue;margin-left:30px;">This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Priyanka Pradhan
Multiple Style Sheets
 If some properties have been defined for the
same selector (element) in different style
sheets, the value from the last read style
sheet will be used.
Priyanka Pradhan
 Assume that an external style sheet has the
following style for the <h1> element:
 h1 {
color: navy;
}
Priyanka Pradhan
 then, assume that an internal style sheet also
has the following style for the <h1> element:
 h1 {
color: orange;
}
Priyanka Pradhan
 If the internal style is defined after the link to
the external style sheet, the <h1> elements
will be "orange"
Priyanka Pradhan
 Example
<head>
<link rel="stylesheet" type="text/css" href="mystyle.css">
<style>
h1 {
color: orange;
}
</style>
</head>
Priyanka Pradhan
 However, if the internal style is defined before
the link to the external style sheet, the <h1>
elements will be "navy“.
Priyanka Pradhan
 Example
<head>
<style>
h1 {
color: orange;
}
</style>
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>
Priyanka Pradhan
CSS Colors
 Colors are specified using predefined color
names, or RGB, HEX, HSL, RGBA, HSLA
values.
Priyanka Pradhan
Background Color
 You can set the background color for HTML
elements:
 <h1 style="background-
color:DodgerBlue;">Hello World</h1>
<p style="background-
color:Tomato;">Para1</p>
Priyanka Pradhan
Text Color
 You can set the color of text:
<h1 style="color:Tomato;">Hello</h1>
<p style="color:DodgerBlue;"> World </p>
<p style="color:MediumSeaGreen;">Para1</p>
Priyanka Pradhan
Border Color
 You can set the color of borders:
 <h1 style="border:2px solid Tomato;">Hello
World</h1>
<h1 style="border:2px solid Violet;">Hello
World</h1>
Priyanka Pradhan
CSS Margins
 The CSS margin properties are used to create
space around elements, outside of any
defined borders.
Priyanka Pradhan
CSS has properties for specifying the margin for
each side of an element:
 margin-top
 margin-right
 margin-bottom
 margin-left
Priyanka Pradhan
 Example
p {
margin-top: 100px;
margin-bottom: 100px;
margin-right: 150px;
margin-left: 80px;
}
Priyanka Pradhan
 If the margin property has four values:
 margin: 25px 50px 75px 100px;
 top margin is 25px
 right margin is 50px
 bottom margin is 75px
 left margin is 100px
Priyanka Pradhan
Margin - Shorthand Property
 p {
margin: 25px 50px 75px 100px;
}
Priyanka Pradhan
Styling Links
 Links can be styled with any CSS property
(e.g. color, font-family, background, etc.).
Example
a {
color: hotpink;
}
Priyanka Pradhan
In addition, links can be styled differently depending
on what state they are in.
The four links states are:
 a:link - a normal, unvisited link
 a:visited - a link the user has visited
 a:hover - a link when the user mouses over it
 a:active - a link the moment it is clicked
Priyanka Pradhan
/* unvisited link */
a:link {
color: red;
}
/* visited link */
a:visited {
color: green;
}
/* mouse over link */
a:hover {
color: hotpink;
}
/* selected link */
a:active {
color: blue;
}
Priyanka Pradhan
When setting the style for several link states,
there are some order rules:
 a:hover MUST come after a:link and a:visited
 a:active MUST come after a:hover
Priyanka Pradhan
Text Decoration The text-decoration property is mostly used to remove underlines from
links:
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a:active {
text-decoration: underline;
}
Priyanka Pradhan
CSS Text
The color property is used to set the color of the
text. The color is specified by:
 a color name - like "red"
 a HEX value - like "#ff0000"
 an RGB value - like "rgb(255,0,0)"
Priyanka Pradhan
 The default text color for a page is defined in the
body selector.
Example
body {
color: blue;
}
h1 {
color: green;
}
Priyanka Pradhan
Text Alignment
 h1 {
text-align: center;
}
h2 {
text-align: left;
}
h3 {
text-align: right;
}
Priyanka Pradhan
Example
div {
text-align: justify;
}
Priyanka Pradhan
Text Transformation
 The text-transform property is used to specify
uppercase and lowercase letters in a text.
Priyanka Pradhan
Example
p.uppercase {
text-transform: uppercase;
}
p.lowercase {
text-transform: lowercase;
}
p.capitalize {
text-transform: capitalize;
}
Priyanka Pradhan
Text Indentation
 The text-indent property is used to specify the
indentation of the first line of a text.
Priyanka Pradhan
 p {
text-indent: 50px;
}
Priyanka Pradhan
Letter Spacing
 The letter-spacing property is used to specify
the space between the characters in a text.
Priyanka Pradhan
Example
 h1 {
letter-spacing: 3px;
}
h2 {
letter-spacing: -3px;
}
Priyanka Pradhan
Line Height
 The line-height property is used to specify the
space between lines.
Priyanka Pradhan
Example
 p.small {
line-height: 0.8;
}
p.big {
line-height: 1.8;
}
Priyanka Pradhan
Text Direction
 The direction property is used to change the
text direction of an element:
Example
 p {
direction: rtl;
}
Priyanka Pradhan
Word Spacing
 The word-spacing property is used to specify
the space between the words in a text.
Priyanka Pradhan
Example
 h1 {
word-spacing: 10px;
}
h2 {
word-spacing: -5px;
}
Priyanka Pradhan
Text Shadow
 The text-shadow property adds shadow to
text.
Example
 h1 {
text-shadow: 3px 2px red;
}
Priyanka Pradhan
CSS Fonts
 The CSS font properties define the font family,
boldness, size, and the style of a text.
Priyanka Pradhan
Example
 p {
font-family: "Times New Roman", Times,
serif;
}
Priyanka Pradhan
Example
 p.normal {
font-style: normal;
}
p.italic {
font-style: italic;
}
p.oblique {
font-style: oblique;
}
Priyanka Pradhan
Example
 h1 {
font-size: 40px;
}
h2 {
font-size: 30px;
}
p {
font-size: 14px;
}
Priyanka Pradhan
 p.normal {
font-weight: normal;
}
p.thick {
font-weight: bold;
}
Priyanka Pradhan
CSS Lists
 The list-style-type property specifies the type
of list item marker.
Priyanka Pradhan
Example
 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;
}
Priyanka Pradhan
An Image as The List Item
Marker
 The list-style-image property specifies an
image as the list item marker:
Example
 ul {
list-style-image: url('sqpurple.gif');
}
Priyanka Pradhan
Remove Default Settings
 The list-style-type:none property can also be
used to remove the markers/bullets. Note that
the list also has default margin and padding.
 To remove this, add margin:0 and
 padding:0 to <ul> or <ol>:
Priyanka Pradhan
Example
 ul {
list-style-type: none;
margin: 0;
padding: 0;
}
Priyanka Pradhan
Table Borders
 To specify table borders in CSS, use
the border property.
 The example below specifies a black border
for <table>, <th>, and <td> elements:
Priyanka Pradhan
Example
 table, th, td {
border: 1px solid black;
}
Priyanka Pradhan
Example
 table {
width: 100%;
}
th {
height: 50px;
}
Priyanka Pradhan
Horizontal Alignment
 The text-align property sets the horizontal
alignment (like left, right, or center) of the
content in <th> or <td>.
 By default, the content of <th> elements are
center-aligned and the content of <td>
elements are left-aligned.
Priyanka Pradhan
Example
 th {
text-align: left;
}
Priyanka Pradhan
Vertical Alignment
 The vertical-align property sets the vertical
alignment (like top, bottom, or middle) of the
content in <th> or <td>.
 By default, the vertical alignment of the
content in a table is middle (for both <th> and
<td> elements).
Priyanka Pradhan
Example
 td {
height: 50px;
vertical-align: bottom;
}
Priyanka Pradhan
Table Padding
 To control the space between the border and
the content in a table, use
the padding property on <td> and <th>
elements.
Priyanka Pradhan
Example
 th, td {
padding: 15px;
text-align: left;
}
Priyanka Pradhan

More Related Content

What's hot

FYBSC IT Web Programming Unit III Document Object
FYBSC IT Web Programming Unit III  Document ObjectFYBSC IT Web Programming Unit III  Document Object
FYBSC IT Web Programming Unit III Document Object
Arti Parab Academics
 
Html basic
Html basicHtml basic
Html basic
Viccky Khairnar
 
Html
HtmlHtml
HTML presentation for beginners
HTML presentation for beginnersHTML presentation for beginners
HTML presentation for beginners
jeroenvdmeer
 
HTML and CSS part 2
HTML and CSS part 2HTML and CSS part 2
HTML and CSS part 2
Julie Iskander
 
HyperText Markup Language - HTML
HyperText Markup Language - HTMLHyperText Markup Language - HTML
HyperText Markup Language - HTML
Sun Technlogies
 
HTML Web design english & sinhala mix note
HTML Web design english & sinhala mix noteHTML Web design english & sinhala mix note
HTML Web design english & sinhala mix note
Mahinda Gamage
 
Html5 attributes
Html5  attributesHtml5  attributes
Html5 attributes
AbhishekMondal42
 
PHP HTML CSS Notes
PHP HTML CSS  NotesPHP HTML CSS  Notes
PHP HTML CSS Notes
Tushar Rajput
 
Web development using html 5
Web development using html 5Web development using html 5
Web development using html 5
Anjan Mahanta
 
HTML practical file
HTML practical fileHTML practical file
HTML practical file
Kuldeep Sharma
 
Html.docx
Html.docxHtml.docx
Html.docx
Noman Ali
 
Basic html
Basic htmlBasic html
Learn html elements and structure cheatsheet codecademy
Learn html  elements and structure cheatsheet   codecademyLearn html  elements and structure cheatsheet   codecademy
Learn html elements and structure cheatsheet codecademy
nirmalamanjunath
 
Intro to Javascript and jQuery
Intro to Javascript and jQueryIntro to Javascript and jQuery
Intro to Javascript and jQueryShawn Calvert
 
Class 10th FIT Practical File(HTML)
Class 10th FIT Practical File(HTML)Class 10th FIT Practical File(HTML)
Class 10th FIT Practical File(HTML)
Anushka Rai
 

What's hot (20)

FYBSC IT Web Programming Unit III Document Object
FYBSC IT Web Programming Unit III  Document ObjectFYBSC IT Web Programming Unit III  Document Object
FYBSC IT Web Programming Unit III Document Object
 
Html basic
Html basicHtml basic
Html basic
 
Html
HtmlHtml
Html
 
Html
HtmlHtml
Html
 
HTML presentation for beginners
HTML presentation for beginnersHTML presentation for beginners
HTML presentation for beginners
 
HTML and CSS part 2
HTML and CSS part 2HTML and CSS part 2
HTML and CSS part 2
 
Html
HtmlHtml
Html
 
HyperText Markup Language - HTML
HyperText Markup Language - HTMLHyperText Markup Language - HTML
HyperText Markup Language - HTML
 
HTML Web design english & sinhala mix note
HTML Web design english & sinhala mix noteHTML Web design english & sinhala mix note
HTML Web design english & sinhala mix note
 
Html5 attributes
Html5  attributesHtml5  attributes
Html5 attributes
 
PHP HTML CSS Notes
PHP HTML CSS  NotesPHP HTML CSS  Notes
PHP HTML CSS Notes
 
Web development using html 5
Web development using html 5Web development using html 5
Web development using html 5
 
HTML
HTMLHTML
HTML
 
HTML practical file
HTML practical fileHTML practical file
HTML practical file
 
LEARN HTML IN A DAY
LEARN HTML IN A DAYLEARN HTML IN A DAY
LEARN HTML IN A DAY
 
Html.docx
Html.docxHtml.docx
Html.docx
 
Basic html
Basic htmlBasic html
Basic html
 
Learn html elements and structure cheatsheet codecademy
Learn html  elements and structure cheatsheet   codecademyLearn html  elements and structure cheatsheet   codecademy
Learn html elements and structure cheatsheet codecademy
 
Intro to Javascript and jQuery
Intro to Javascript and jQueryIntro to Javascript and jQuery
Intro to Javascript and jQuery
 
Class 10th FIT Practical File(HTML)
Class 10th FIT Practical File(HTML)Class 10th FIT Practical File(HTML)
Class 10th FIT Practical File(HTML)
 

Similar to Css

Cascading style sheet
Cascading style sheetCascading style sheet
Cascading style sheet
VARSHAKUMARI49
 
TUTORIAL DE CSS 2.0
TUTORIAL DE CSS 2.0TUTORIAL DE CSS 2.0
TUTORIAL DE CSS 2.0
Vladimir Valencia
 
Css1
Css1Css1
Css introduction
Css  introductionCss  introduction
Css introduction
vishnu murthy
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
Folasade Adedeji
 
html-css
html-csshtml-css
LIS3353 SP12 Week 13
LIS3353 SP12 Week 13LIS3353 SP12 Week 13
LIS3353 SP12 Week 13Amanda Case
 
5th Lecture- WEB ENGINEERING basics.pptx
5th Lecture- WEB ENGINEERING basics.pptx5th Lecture- WEB ENGINEERING basics.pptx
5th Lecture- WEB ENGINEERING basics.pptx
Aasma13
 
Introduction to css by programmerblog.net
Introduction to css by programmerblog.netIntroduction to css by programmerblog.net
Introduction to css by programmerblog.net
Programmer Blog
 
Html 2
Html   2Html   2
Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style Sheets
M Vishnuvardhan Reddy
 
Unitegergergegegegetgegegegegegeg-2-CSS.pptx
Unitegergergegegegetgegegegegegeg-2-CSS.pptxUnitegergergegegegetgegegegegegeg-2-CSS.pptx
Unitegergergegegegetgegegegegegeg-2-CSS.pptx
VikasTuwar1
 
CSS notes
CSS notesCSS notes
CSS notes
Rajendra Prasad
 
css-ppt.pdf
css-ppt.pdfcss-ppt.pdf
css-ppt.pdf
EktaDesai14
 
Rapid HTML Prototyping with Bootstrap 4
Rapid HTML Prototyping with Bootstrap 4Rapid HTML Prototyping with Bootstrap 4
Rapid HTML Prototyping with Bootstrap 4
UXPA International
 
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.pptwaxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
Ismaciil2
 
CSS_Day_ONE (W3schools)
CSS_Day_ONE (W3schools)CSS_Day_ONE (W3schools)
CSS_Day_ONE (W3schools)
Rafi Haidari
 
cascading style sheet ppt
cascading style sheet pptcascading style sheet ppt
cascading style sheet ppt
abhilashagupta
 
Ict 8 css
Ict 8 cssIct 8 css
Ict 8 css
Christian Reglos
 

Similar to Css (20)

Cascading style sheet
Cascading style sheetCascading style sheet
Cascading style sheet
 
TUTORIAL DE CSS 2.0
TUTORIAL DE CSS 2.0TUTORIAL DE CSS 2.0
TUTORIAL DE CSS 2.0
 
Css1
Css1Css1
Css1
 
Css introduction
Css  introductionCss  introduction
Css introduction
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
html-css
html-csshtml-css
html-css
 
LIS3353 SP12 Week 13
LIS3353 SP12 Week 13LIS3353 SP12 Week 13
LIS3353 SP12 Week 13
 
5th Lecture- WEB ENGINEERING basics.pptx
5th Lecture- WEB ENGINEERING basics.pptx5th Lecture- WEB ENGINEERING basics.pptx
5th Lecture- WEB ENGINEERING basics.pptx
 
Introduction to css by programmerblog.net
Introduction to css by programmerblog.netIntroduction to css by programmerblog.net
Introduction to css by programmerblog.net
 
Html 2
Html   2Html   2
Html 2
 
Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style Sheets
 
Unitegergergegegegetgegegegegegeg-2-CSS.pptx
Unitegergergegegegetgegegegegegeg-2-CSS.pptxUnitegergergegegegetgegegegegegeg-2-CSS.pptx
Unitegergergegegegetgegegegegegeg-2-CSS.pptx
 
CSS notes
CSS notesCSS notes
CSS notes
 
css-ppt.pdf
css-ppt.pdfcss-ppt.pdf
css-ppt.pdf
 
Rapid HTML Prototyping with Bootstrap 4
Rapid HTML Prototyping with Bootstrap 4Rapid HTML Prototyping with Bootstrap 4
Rapid HTML Prototyping with Bootstrap 4
 
css1.ppt
css1.pptcss1.ppt
css1.ppt
 
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.pptwaxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
waxaada canshuurahaiyosiyaaddaguudeexamarwaaardaydaDAALBADAN.ppt
 
CSS_Day_ONE (W3schools)
CSS_Day_ONE (W3schools)CSS_Day_ONE (W3schools)
CSS_Day_ONE (W3schools)
 
cascading style sheet ppt
cascading style sheet pptcascading style sheet ppt
cascading style sheet ppt
 
Ict 8 css
Ict 8 cssIct 8 css
Ict 8 css
 

More from Priyanka Pradhan

Tomato disease detection using deep learning convolutional neural network
Tomato disease detection using deep learning convolutional neural networkTomato disease detection using deep learning convolutional neural network
Tomato disease detection using deep learning convolutional neural network
Priyanka Pradhan
 
Applet
AppletApplet
Servlet
ServletServlet
Javascript
JavascriptJavascript
Javascript
Priyanka Pradhan
 
programming with python ppt
programming with python pptprogramming with python ppt
programming with python ppt
Priyanka Pradhan
 
Core Java
Core JavaCore Java
Core Java
Priyanka Pradhan
 
Image Processing Based Signature Recognition and Verification Technique Using...
Image Processing Based Signature Recognition and Verification Technique Using...Image Processing Based Signature Recognition and Verification Technique Using...
Image Processing Based Signature Recognition and Verification Technique Using...
Priyanka Pradhan
 
GrayBox Testing and Crud Testing By: Er. Priyanka Pradhan
GrayBox Testing and Crud Testing By: Er. Priyanka PradhanGrayBox Testing and Crud Testing By: Er. Priyanka Pradhan
GrayBox Testing and Crud Testing By: Er. Priyanka Pradhan
Priyanka Pradhan
 
The agile requirements refinery(SRUM) by: Priyanka Pradhan
The agile requirements refinery(SRUM) by: Priyanka PradhanThe agile requirements refinery(SRUM) by: Priyanka Pradhan
The agile requirements refinery(SRUM) by: Priyanka Pradhan
Priyanka Pradhan
 
Social tagging and its trend
Social tagging and its trendSocial tagging and its trend
Social tagging and its trend
Priyanka Pradhan
 
Behavioral pattern By:-Priyanka Pradhan
Behavioral pattern By:-Priyanka PradhanBehavioral pattern By:-Priyanka Pradhan
Behavioral pattern By:-Priyanka Pradhan
Priyanka Pradhan
 
software product and its characteristics
software product and its characteristicssoftware product and its characteristics
software product and its characteristics
Priyanka Pradhan
 
EDI(ELECTRONIC DATA INTERCHANGE)
EDI(ELECTRONIC DATA INTERCHANGE)EDI(ELECTRONIC DATA INTERCHANGE)
EDI(ELECTRONIC DATA INTERCHANGE)
Priyanka Pradhan
 
collaborative tagging :-by Er. Priyanka Pradhan
collaborative tagging :-by Er. Priyanka Pradhancollaborative tagging :-by Er. Priyanka Pradhan
collaborative tagging :-by Er. Priyanka Pradhan
Priyanka Pradhan
 
Deploying java beans in jsp
Deploying java beans in jspDeploying java beans in jsp
Deploying java beans in jsp
Priyanka Pradhan
 
SOFTWARE PROCESS MONITORING AND AUDIT
SOFTWARE PROCESS MONITORING AND AUDITSOFTWARE PROCESS MONITORING AND AUDIT
SOFTWARE PROCESS MONITORING AND AUDIT
Priyanka Pradhan
 
Pcmm
PcmmPcmm
s/w metrics monitoring and control
s/w metrics monitoring and controls/w metrics monitoring and control
s/w metrics monitoring and control
Priyanka Pradhan
 

More from Priyanka Pradhan (18)

Tomato disease detection using deep learning convolutional neural network
Tomato disease detection using deep learning convolutional neural networkTomato disease detection using deep learning convolutional neural network
Tomato disease detection using deep learning convolutional neural network
 
Applet
AppletApplet
Applet
 
Servlet
ServletServlet
Servlet
 
Javascript
JavascriptJavascript
Javascript
 
programming with python ppt
programming with python pptprogramming with python ppt
programming with python ppt
 
Core Java
Core JavaCore Java
Core Java
 
Image Processing Based Signature Recognition and Verification Technique Using...
Image Processing Based Signature Recognition and Verification Technique Using...Image Processing Based Signature Recognition and Verification Technique Using...
Image Processing Based Signature Recognition and Verification Technique Using...
 
GrayBox Testing and Crud Testing By: Er. Priyanka Pradhan
GrayBox Testing and Crud Testing By: Er. Priyanka PradhanGrayBox Testing and Crud Testing By: Er. Priyanka Pradhan
GrayBox Testing and Crud Testing By: Er. Priyanka Pradhan
 
The agile requirements refinery(SRUM) by: Priyanka Pradhan
The agile requirements refinery(SRUM) by: Priyanka PradhanThe agile requirements refinery(SRUM) by: Priyanka Pradhan
The agile requirements refinery(SRUM) by: Priyanka Pradhan
 
Social tagging and its trend
Social tagging and its trendSocial tagging and its trend
Social tagging and its trend
 
Behavioral pattern By:-Priyanka Pradhan
Behavioral pattern By:-Priyanka PradhanBehavioral pattern By:-Priyanka Pradhan
Behavioral pattern By:-Priyanka Pradhan
 
software product and its characteristics
software product and its characteristicssoftware product and its characteristics
software product and its characteristics
 
EDI(ELECTRONIC DATA INTERCHANGE)
EDI(ELECTRONIC DATA INTERCHANGE)EDI(ELECTRONIC DATA INTERCHANGE)
EDI(ELECTRONIC DATA INTERCHANGE)
 
collaborative tagging :-by Er. Priyanka Pradhan
collaborative tagging :-by Er. Priyanka Pradhancollaborative tagging :-by Er. Priyanka Pradhan
collaborative tagging :-by Er. Priyanka Pradhan
 
Deploying java beans in jsp
Deploying java beans in jspDeploying java beans in jsp
Deploying java beans in jsp
 
SOFTWARE PROCESS MONITORING AND AUDIT
SOFTWARE PROCESS MONITORING AND AUDITSOFTWARE PROCESS MONITORING AND AUDIT
SOFTWARE PROCESS MONITORING AND AUDIT
 
Pcmm
PcmmPcmm
Pcmm
 
s/w metrics monitoring and control
s/w metrics monitoring and controls/w metrics monitoring and control
s/w metrics monitoring and control
 

Recently uploaded

basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
NidhalKahouli2
 
Online aptitude test management system project report.pdf
Online aptitude test management system project report.pdfOnline aptitude test management system project report.pdf
Online aptitude test management system project report.pdf
Kamal Acharya
 
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTSHeap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Soumen Santra
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
symbo111
 
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
obonagu
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
Water billing management system project report.pdf
Water billing management system project report.pdfWater billing management system project report.pdf
Water billing management system project report.pdf
Kamal Acharya
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
MIGUELANGEL966976
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Christina Lin
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
heavyhaig
 
Series of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.pptSeries of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.ppt
PauloRodrigues104553
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
01-GPON Fundamental fttx ftth basic .pptx
01-GPON Fundamental fttx ftth basic .pptx01-GPON Fundamental fttx ftth basic .pptx
01-GPON Fundamental fttx ftth basic .pptx
benykoy2024
 
bank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdfbank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdf
Divyam548318
 
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
Mukeshwaran Balu
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
anoopmanoharan2
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 

Recently uploaded (20)

basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
 
Online aptitude test management system project report.pdf
Online aptitude test management system project report.pdfOnline aptitude test management system project report.pdf
Online aptitude test management system project report.pdf
 
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTSHeap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
 
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
Water billing management system project report.pdf
Water billing management system project report.pdfWater billing management system project report.pdf
Water billing management system project report.pdf
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
 
Series of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.pptSeries of visio cisco devices Cisco_Icons.ppt
Series of visio cisco devices Cisco_Icons.ppt
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
01-GPON Fundamental fttx ftth basic .pptx
01-GPON Fundamental fttx ftth basic .pptx01-GPON Fundamental fttx ftth basic .pptx
01-GPON Fundamental fttx ftth basic .pptx
 
bank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdfbank management system in java and mysql report1.pdf
bank management system in java and mysql report1.pdf
 
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 

Css

  • 1. COMPUTER SCIENCE TOPIC : CSS BY: PRIYANKA PRADHAN MJPRU Priyanka Pradhan
  • 2. What is CSS?  CSS stands for Cascading Style Sheets  CSS describes how HTML elements are to be displayed on screen, paper, or in other media  CSS saves a lot of work. It can control the layout of multiple web pages all at once  External stylesheets are stored in CSS files Priyanka Pradhan
  • 3. Why Use CSS?  CSS is used to define styles for your web pages, including the design, layout and variations in display for different devices and screen sizes. Priyanka Pradhan
  • 4. CSS Syntax  A CSS rule-set consists of a selector and a declaration block:  The selector points to the HTML element you want to style.  The declaration block contains one or more declarations separated by semicolons.  Each declaration includes a CSS property name and a value, separated by a colon.  A CSS declaration always ends with a semicolon, and declaration blocks are surrounded by curly braces.  In the following example all <p> elements will be center-aligned, with a red text color: Priyanka Pradhan
  • 5.  Example  p { color: red; text-align: center; }  When a browser reads a style sheet, it will format the HTML document according to the information in the style sheet. Priyanka Pradhan
  • 6.  body { background-color: black; } h1 { color: white; text-align: center; } p { font-family: verdana; font-size: 20px; } Priyanka Pradhan
  • 7. <!DOCTYPE html> <html> <head> <style> body { background-color: lightblue; } h1 { color: white; text-align: center; } p { font-family: verdana; font-size: 20px; } </style> </head> <body> <h1>My First CSS Example</h1> <p>This is a paragraph.</p> </body> </html> Priyanka Pradhan
  • 8. My First CSS Example This is a paragraph. Priyanka Pradhan
  • 9. Three Ways to Insert CSS There are three ways of inserting a style sheet:  External style sheet  Internal style sheet  Inline style Priyanka Pradhan
  • 10. External Style Sheet  Each page must include a reference to the external style sheet file inside the <link> element.  The <link> element goes inside the <head> section. Priyanka Pradhan
  • 11.  Example  <head> <link rel="stylesheet" type="text/css" href="my style.css"> </head> Priyanka Pradhan
  • 12. <!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="mystyle.css"> </head> <body> <h1>This is a heading</h1> <p>This is a paragraph.</p> </body> </html> Priyanka Pradhan
  • 13.  Here is how the "mystyle.css" looks: body { background-color: lightblue; } h1 { color: navy; margin-left: 20px; } Priyanka Pradhan
  • 14. Internal Style Sheet  An internal style sheet may be used if one single page has a unique style.  Internal styles are defined within the <style> element, inside the <head> section of an HTML page. Priyanka Pradhan
  • 15.  Example <head> <style> body { background-color: linen; } h1 { color: maroon; margin-left: 40px; } </style> </head> Priyanka Pradhan
  • 16. This is a heading This is a paragraph Priyanka Pradhan
  • 17. Inline Styles  An inline style may be used to apply a unique style for a single element.  To use inline styles, add the style attribute to the relevant element. The style attribute can contain any CSS property. Priyanka Pradhan
  • 18.  <h1 style="color:blue;margin-left:30px;">This is a heading</h1> Priyanka Pradhan
  • 19. <!DOCTYPE html> <html> <body> <h1 style="color:blue;margin-left:30px;">This is a heading</h1> <p>This is a paragraph.</p> </body> </html> Priyanka Pradhan
  • 20. Multiple Style Sheets  If some properties have been defined for the same selector (element) in different style sheets, the value from the last read style sheet will be used. Priyanka Pradhan
  • 21.  Assume that an external style sheet has the following style for the <h1> element:  h1 { color: navy; } Priyanka Pradhan
  • 22.  then, assume that an internal style sheet also has the following style for the <h1> element:  h1 { color: orange; } Priyanka Pradhan
  • 23.  If the internal style is defined after the link to the external style sheet, the <h1> elements will be "orange" Priyanka Pradhan
  • 24.  Example <head> <link rel="stylesheet" type="text/css" href="mystyle.css"> <style> h1 { color: orange; } </style> </head> Priyanka Pradhan
  • 25.  However, if the internal style is defined before the link to the external style sheet, the <h1> elements will be "navy“. Priyanka Pradhan
  • 26.  Example <head> <style> h1 { color: orange; } </style> <link rel="stylesheet" type="text/css" href="mystyle.css"> </head> Priyanka Pradhan
  • 27. CSS Colors  Colors are specified using predefined color names, or RGB, HEX, HSL, RGBA, HSLA values. Priyanka Pradhan
  • 28. Background Color  You can set the background color for HTML elements:  <h1 style="background- color:DodgerBlue;">Hello World</h1> <p style="background- color:Tomato;">Para1</p> Priyanka Pradhan
  • 29. Text Color  You can set the color of text: <h1 style="color:Tomato;">Hello</h1> <p style="color:DodgerBlue;"> World </p> <p style="color:MediumSeaGreen;">Para1</p> Priyanka Pradhan
  • 30. Border Color  You can set the color of borders:  <h1 style="border:2px solid Tomato;">Hello World</h1> <h1 style="border:2px solid Violet;">Hello World</h1> Priyanka Pradhan
  • 31. CSS Margins  The CSS margin properties are used to create space around elements, outside of any defined borders. Priyanka Pradhan
  • 32. CSS has properties for specifying the margin for each side of an element:  margin-top  margin-right  margin-bottom  margin-left Priyanka Pradhan
  • 33.  Example p { margin-top: 100px; margin-bottom: 100px; margin-right: 150px; margin-left: 80px; } Priyanka Pradhan
  • 34.  If the margin property has four values:  margin: 25px 50px 75px 100px;  top margin is 25px  right margin is 50px  bottom margin is 75px  left margin is 100px Priyanka Pradhan
  • 35. Margin - Shorthand Property  p { margin: 25px 50px 75px 100px; } Priyanka Pradhan
  • 36. Styling Links  Links can be styled with any CSS property (e.g. color, font-family, background, etc.). Example a { color: hotpink; } Priyanka Pradhan
  • 37. In addition, links can be styled differently depending on what state they are in. The four links states are:  a:link - a normal, unvisited link  a:visited - a link the user has visited  a:hover - a link when the user mouses over it  a:active - a link the moment it is clicked Priyanka Pradhan
  • 38. /* unvisited link */ a:link { color: red; } /* visited link */ a:visited { color: green; } /* mouse over link */ a:hover { color: hotpink; } /* selected link */ a:active { color: blue; } Priyanka Pradhan
  • 39. When setting the style for several link states, there are some order rules:  a:hover MUST come after a:link and a:visited  a:active MUST come after a:hover Priyanka Pradhan
  • 40. Text Decoration The text-decoration property is mostly used to remove underlines from links: a:link { text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: underline; } a:active { text-decoration: underline; } Priyanka Pradhan
  • 41. CSS Text The color property is used to set the color of the text. The color is specified by:  a color name - like "red"  a HEX value - like "#ff0000"  an RGB value - like "rgb(255,0,0)" Priyanka Pradhan
  • 42.  The default text color for a page is defined in the body selector. Example body { color: blue; } h1 { color: green; } Priyanka Pradhan
  • 43. Text Alignment  h1 { text-align: center; } h2 { text-align: left; } h3 { text-align: right; } Priyanka Pradhan
  • 45. Text Transformation  The text-transform property is used to specify uppercase and lowercase letters in a text. Priyanka Pradhan
  • 46. Example p.uppercase { text-transform: uppercase; } p.lowercase { text-transform: lowercase; } p.capitalize { text-transform: capitalize; } Priyanka Pradhan
  • 47. Text Indentation  The text-indent property is used to specify the indentation of the first line of a text. Priyanka Pradhan
  • 48.  p { text-indent: 50px; } Priyanka Pradhan
  • 49. Letter Spacing  The letter-spacing property is used to specify the space between the characters in a text. Priyanka Pradhan
  • 50. Example  h1 { letter-spacing: 3px; } h2 { letter-spacing: -3px; } Priyanka Pradhan
  • 51. Line Height  The line-height property is used to specify the space between lines. Priyanka Pradhan
  • 52. Example  p.small { line-height: 0.8; } p.big { line-height: 1.8; } Priyanka Pradhan
  • 53. Text Direction  The direction property is used to change the text direction of an element: Example  p { direction: rtl; } Priyanka Pradhan
  • 54. Word Spacing  The word-spacing property is used to specify the space between the words in a text. Priyanka Pradhan
  • 55. Example  h1 { word-spacing: 10px; } h2 { word-spacing: -5px; } Priyanka Pradhan
  • 56. Text Shadow  The text-shadow property adds shadow to text. Example  h1 { text-shadow: 3px 2px red; } Priyanka Pradhan
  • 57. CSS Fonts  The CSS font properties define the font family, boldness, size, and the style of a text. Priyanka Pradhan
  • 58. Example  p { font-family: "Times New Roman", Times, serif; } Priyanka Pradhan
  • 59. Example  p.normal { font-style: normal; } p.italic { font-style: italic; } p.oblique { font-style: oblique; } Priyanka Pradhan
  • 60. Example  h1 { font-size: 40px; } h2 { font-size: 30px; } p { font-size: 14px; } Priyanka Pradhan
  • 61.  p.normal { font-weight: normal; } p.thick { font-weight: bold; } Priyanka Pradhan
  • 62. CSS Lists  The list-style-type property specifies the type of list item marker. Priyanka Pradhan
  • 63. Example  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; } Priyanka Pradhan
  • 64. An Image as The List Item Marker  The list-style-image property specifies an image as the list item marker: Example  ul { list-style-image: url('sqpurple.gif'); } Priyanka Pradhan
  • 65. Remove Default Settings  The list-style-type:none property can also be used to remove the markers/bullets. Note that the list also has default margin and padding.  To remove this, add margin:0 and  padding:0 to <ul> or <ol>: Priyanka Pradhan
  • 66. Example  ul { list-style-type: none; margin: 0; padding: 0; } Priyanka Pradhan
  • 67. Table Borders  To specify table borders in CSS, use the border property.  The example below specifies a black border for <table>, <th>, and <td> elements: Priyanka Pradhan
  • 68. Example  table, th, td { border: 1px solid black; } Priyanka Pradhan
  • 69. Example  table { width: 100%; } th { height: 50px; } Priyanka Pradhan
  • 70. Horizontal Alignment  The text-align property sets the horizontal alignment (like left, right, or center) of the content in <th> or <td>.  By default, the content of <th> elements are center-aligned and the content of <td> elements are left-aligned. Priyanka Pradhan
  • 71. Example  th { text-align: left; } Priyanka Pradhan
  • 72. Vertical Alignment  The vertical-align property sets the vertical alignment (like top, bottom, or middle) of the content in <th> or <td>.  By default, the vertical alignment of the content in a table is middle (for both <th> and <td> elements). Priyanka Pradhan
  • 73. Example  td { height: 50px; vertical-align: bottom; } Priyanka Pradhan
  • 74. Table Padding  To control the space between the border and the content in a table, use the padding property on <td> and <th> elements. Priyanka Pradhan
  • 75. Example  th, td { padding: 15px; text-align: left; } Priyanka Pradhan