2
Web Development
HTML , CSS, JAVASCRIPT, BOOTSTRAP
Prepared by: Ghayour Abbas
Outline:
• Formatting
• Comments
• Colors
• CSS
HTML Text Formatting
HTML contains several elements for defining text with a special meaning.
Formatting elements were designed to display special types of text:
• <b> - Bold text
• <strong> - Important text
• <i> - Italic text
• <em> - Emphasized text
• <mark> - Marked text
• <small> - Smaller text
• <del> - Deleted text
• <ins> - Inserted text
• <sub> - Subscript text
• <sup> - Superscript text
HTML Comment Tag
HTML comments are not displayed in the browser, but they can help document your
HTML source code.
You can also hide more than one line, everything between the <!-- and the --
> will be hidden from the display.
HTML Colors
HTML colors are specified with predefined color names, or with RGB, HEX, HSL,
RGBA, or HSLA values.
Border Color
RGB Color Values
In HTML, a color can be specified as an RGB value, using this formula:
rgb(red, green, blue)
Each parameter (red, green, and blue) defines the intensity of the color with a
value between 0 and 255.
This means that there are 256 x 256 x 256 = 16777216 possible colors!
For example, rgb(255, 0, 0) is displayed as red, because red is set to its highest
value (255), and the other two (green and blue) are set to 0.
Another example, rgb(0, 255, 0) is displayed as green, because green is set to
its highest value (255), and the other two (red and blue) are set to 0.
To display black, set all color parameters to 0, like this: rgb(0, 0, 0).
To display white, set all color parameters to 255, like this: rgb(255, 255, 255).
HEX Color Values
A hexadecimal color is specified with: #RRGGBB, where the RR (red), GG (green)
and BB (blue) hexadecimal integers specify the components of the color.
In HTML, a color can be specified using a hexadecimal value in the form:
#rrggbb
Where rr (red), gg (green) and bb (blue) are hexadecimal values between 00
and ff (same as decimal 0-255).
For example, #ff0000 is displayed as red, because red is set to its highest value
(ff), and the other two (green and blue) are set to 00.
Another example, #00ff00 is displayed as green, because green is set to its
highest value (ff), and the other two (red and blue) are set to 00.
To display black, set all color parameters to 00, like this: #000000.
To display white, set all color parameters to ff, like this: #ffffff.
HSL Color Values
In HTML, a color can be specified using hue, saturation, and lightness (HSL) in
the form:
hsl(hue, saturation, lightness)
Hue is a degree on the color wheel from 0 to 360. 0 is red, 120 is green, and
240 is blue.
Saturation is a percentage value, 0% means a shade of gray, and 100% is the
full color.
Lightness is also a percentage value, 0% is black, and 100% is white.
What is CSS?
Cascading Style Sheets (CSS) is used to format the layout of a webpage.
With CSS, you can control the color, font, the size of text, the spacing between
elements, how elements are positioned and laid out, what background images
or background colors are to be used, different displays for different devices and
screen sizes, and much more!
Using CSS
CSS can be added to HTML documents in 3 ways:
• Inline - by using the style attribute inside HTML elements
• Internal - by using a <style> element in the <head> section
• External - by using a <link> element to link to an external CSS file
The most common way to add CSS, is to keep the styles in external CSS files.
However, in this tutorial we will use inline and internal styles, because this is
easier to demonstrate, and easier for you to try it yourself.
Inline CSS
An inline CSS is used to apply a unique style to a single HTML element.
An inline CSS uses the style attribute of an HTML element.
The following example sets the text color of the <h1> element to blue, and the
text color of the <p> element to red:
Internal CSS
An internal CSS is used to define a style for a single HTML page.
An internal CSS is defined in the <head> section of an HTML page, within
a <style> element.
The following example sets the text color of ALL the <h1> elements (on that
page) to blue, and the text color of ALL the <p> elements to red. In addition, the
page will be displayed with a "powderblue" background color:
Web Development 2 (HTML & CSS)
External CSS
An external style sheet is used to define the style for many HTML pages.
To use an external style sheet, add a link to it in the <head> section of each HTML
page:
Styles.css

More Related Content

PPTX
PPT
Hyperlinks in HTML
PPTX
Introduction to CSS
PPTX
Html coding
PDF
3. Java Script
PDF
CSS Day: CSS Grid Layout
PPTX
Introduction to HTML and CSS
Hyperlinks in HTML
Introduction to CSS
Html coding
3. Java Script
CSS Day: CSS Grid Layout
Introduction to HTML and CSS

What's hot (20)

PPTX
Html5 semantics
ODP
Cascading Style Sheets - Part 01
PPTX
Css Basics
PDF
Intro to html 5
PPTX
Basic HTML
PPTX
Html1
PPTX
CSS Transitions, Transforms, Animations
PPT
Css Ppt
PPTX
Html ppt
PDF
Html for beginners
PDF
Introduction to Javascript
PPTX
Html ppt
PPTX
Complete Lecture on Css presentation
PDF
Basic Details of HTML and CSS.pdf
PPTX
Introduction to HTML
PPTX
Html multimedia tag
PDF
Html links
PPTX
1 03 - CSS Introduction
PDF
HTML & CSS Masterclass
PPTX
html5.ppt
Html5 semantics
Cascading Style Sheets - Part 01
Css Basics
Intro to html 5
Basic HTML
Html1
CSS Transitions, Transforms, Animations
Css Ppt
Html ppt
Html for beginners
Introduction to Javascript
Html ppt
Complete Lecture on Css presentation
Basic Details of HTML and CSS.pdf
Introduction to HTML
Html multimedia tag
Html links
1 03 - CSS Introduction
HTML & CSS Masterclass
html5.ppt
Ad

Similar to Web Development 2 (HTML & CSS) (20)

PPTX
PPTX
Web - CSS 1.pptx
PDF
Web day01 MOL.pdf
PPT
working with internet technologies using CSS
PPTX
CSS – CASCADING STYLE SHEET - MY_PPT.pptx
PPTX
CSS – CASCADING STYLE SHEET - MY_PPT.pptx
DOC
Handout2 formatting tags
PPTX
Module 2 (1). .pptx
PPTX
css3.0.( Cascading Style Sheets ) pptx
PPTX
Workshop 2 Slides.pptx
PPT
Make Css easy : easy tips for css
PPTX
new htmlppt in this we disscuded about basic html .pptx
PPTX
week 3 slides.pptx
PDF
TM 1st quarter - 4th meeting
PPTX
WebDesigning.pptx
PPTX
3rd Quarter Lessdadsadaaaaasdason 1.pptx
DOCX
PPTX
HTML - HYPERTEXT MARKUP LANGUAGE AND ITS DIFFERENT ELEMENTS
Web - CSS 1.pptx
Web day01 MOL.pdf
working with internet technologies using CSS
CSS – CASCADING STYLE SHEET - MY_PPT.pptx
CSS – CASCADING STYLE SHEET - MY_PPT.pptx
Handout2 formatting tags
Module 2 (1). .pptx
css3.0.( Cascading Style Sheets ) pptx
Workshop 2 Slides.pptx
Make Css easy : easy tips for css
new htmlppt in this we disscuded about basic html .pptx
week 3 slides.pptx
TM 1st quarter - 4th meeting
WebDesigning.pptx
3rd Quarter Lessdadsadaaaaasdason 1.pptx
HTML - HYPERTEXT MARKUP LANGUAGE AND ITS DIFFERENT ELEMENTS
Ad

More from ghayour abbas (20)

PDF
TCP/IP & UDP
PDF
Web Development 5
PDF
Web Development 4
PDF
Web Development 4 (HTML & CSS)
PDF
Web Development 3 (HTML & CSS)
PDF
Lab Manual CSI-321
PDF
Web Development 1 (HTML & CSS)
PDF
CSI-503 - 13. Scheduler and Dispatcher
PDF
CSI-503 - 11.Distributed Operating System
PDF
SWE-401 - 10. Software Testing Overview
PDF
SWE-401 - 9. Software Implementation
PDF
SWE-401 - 8. Software User Interface Design
PDF
SWE-401 - 7. Software Design Strategies
PDF
SWE-401 - 5. Software Design Basics
PDF
SWE-401 - 6. Software Analysis and Design Tools
PDF
SWE-401 - 4. Software Requirement Specifications
PDF
SWE-401 - 3. Software Project Management
PDF
CSI-503 - 6. Memory Management
PDF
CSI-503 - 4. Process synchronization
PDF
CSI-503 - 3. Process Scheduling
TCP/IP & UDP
Web Development 5
Web Development 4
Web Development 4 (HTML & CSS)
Web Development 3 (HTML & CSS)
Lab Manual CSI-321
Web Development 1 (HTML & CSS)
CSI-503 - 13. Scheduler and Dispatcher
CSI-503 - 11.Distributed Operating System
SWE-401 - 10. Software Testing Overview
SWE-401 - 9. Software Implementation
SWE-401 - 8. Software User Interface Design
SWE-401 - 7. Software Design Strategies
SWE-401 - 5. Software Design Basics
SWE-401 - 6. Software Analysis and Design Tools
SWE-401 - 4. Software Requirement Specifications
SWE-401 - 3. Software Project Management
CSI-503 - 6. Memory Management
CSI-503 - 4. Process synchronization
CSI-503 - 3. Process Scheduling

Recently uploaded (20)

PPTX
Copy of ARAL Program Primer_071725(1).pptx
PPTX
Cite It Right: A Compact Illustration of APA 7th Edition.pptx
PDF
Design and Evaluation of a Inonotus obliquus-AgNP-Maltodextrin Delivery Syste...
PDF
WHAT NURSES SAY_ COMMUNICATION BEHAVIORS ASSOCIATED WITH THE COMP.pdf
PPTX
Chapter-4-Rizal-Higher-Education-1-2_081545.pptx
PDF
Global strategy and action plan on oral health 2023 - 2030.pdf
PPTX
UCSP Section A - Human Cultural Variations,Social Differences,social ChangeCo...
PPTX
Ppt obs emergecy.pptxydirnbduejguxjjdjidjdbuc
PDF
Laparoscopic Imaging Systems at World Laparoscopy Hospital
PPTX
MMW-CHAPTER-1-final.pptx major Elementary Education
PDF
Physical pharmaceutics two in b pharmacy
PPTX
PAIN PATHWAY & MANAGEMENT OF ACUTE AND CHRONIC PAIN SPEAKER: Dr. Rajasekhar ...
PDF
GIÁO ÁN TIẾNG ANH 7 GLOBAL SUCCESS (CẢ NĂM) THEO CÔNG VĂN 5512 (2 CỘT) NĂM HỌ...
PPTX
CHROMIUM & Glucose Tolerance Factor.pptx
PDF
Review of Related Literature & Studies.pdf
PDF
Kalaari-SaaS-Founder-Playbook-2024-Edition-.pdf
PPTX
Key-Features-of-the-SHS-Program-v4-Slides (3) PPT2.pptx
PDF
BSc-Zoology-02Sem-DrVijay-Comparative anatomy of vertebrates.pdf
PDF
anganwadi services for the b.sc nursing and GNM
PDF
V02-Session-4-Leadership-Through-Assessment-MLB.pdf
Copy of ARAL Program Primer_071725(1).pptx
Cite It Right: A Compact Illustration of APA 7th Edition.pptx
Design and Evaluation of a Inonotus obliquus-AgNP-Maltodextrin Delivery Syste...
WHAT NURSES SAY_ COMMUNICATION BEHAVIORS ASSOCIATED WITH THE COMP.pdf
Chapter-4-Rizal-Higher-Education-1-2_081545.pptx
Global strategy and action plan on oral health 2023 - 2030.pdf
UCSP Section A - Human Cultural Variations,Social Differences,social ChangeCo...
Ppt obs emergecy.pptxydirnbduejguxjjdjidjdbuc
Laparoscopic Imaging Systems at World Laparoscopy Hospital
MMW-CHAPTER-1-final.pptx major Elementary Education
Physical pharmaceutics two in b pharmacy
PAIN PATHWAY & MANAGEMENT OF ACUTE AND CHRONIC PAIN SPEAKER: Dr. Rajasekhar ...
GIÁO ÁN TIẾNG ANH 7 GLOBAL SUCCESS (CẢ NĂM) THEO CÔNG VĂN 5512 (2 CỘT) NĂM HỌ...
CHROMIUM & Glucose Tolerance Factor.pptx
Review of Related Literature & Studies.pdf
Kalaari-SaaS-Founder-Playbook-2024-Edition-.pdf
Key-Features-of-the-SHS-Program-v4-Slides (3) PPT2.pptx
BSc-Zoology-02Sem-DrVijay-Comparative anatomy of vertebrates.pdf
anganwadi services for the b.sc nursing and GNM
V02-Session-4-Leadership-Through-Assessment-MLB.pdf

Web Development 2 (HTML & CSS)

  • 1. 2 Web Development HTML , CSS, JAVASCRIPT, BOOTSTRAP Prepared by: Ghayour Abbas Outline: • Formatting • Comments • Colors • CSS HTML Text Formatting HTML contains several elements for defining text with a special meaning. Formatting elements were designed to display special types of text: • <b> - Bold text • <strong> - Important text • <i> - Italic text • <em> - Emphasized text • <mark> - Marked text • <small> - Smaller text • <del> - Deleted text • <ins> - Inserted text • <sub> - Subscript text • <sup> - Superscript text HTML Comment Tag HTML comments are not displayed in the browser, but they can help document your HTML source code.
  • 2. You can also hide more than one line, everything between the <!-- and the -- > will be hidden from the display. HTML Colors HTML colors are specified with predefined color names, or with RGB, HEX, HSL, RGBA, or HSLA values. Border Color RGB Color Values In HTML, a color can be specified as an RGB value, using this formula: rgb(red, green, blue) Each parameter (red, green, and blue) defines the intensity of the color with a value between 0 and 255.
  • 3. This means that there are 256 x 256 x 256 = 16777216 possible colors! For example, rgb(255, 0, 0) is displayed as red, because red is set to its highest value (255), and the other two (green and blue) are set to 0. Another example, rgb(0, 255, 0) is displayed as green, because green is set to its highest value (255), and the other two (red and blue) are set to 0. To display black, set all color parameters to 0, like this: rgb(0, 0, 0). To display white, set all color parameters to 255, like this: rgb(255, 255, 255). HEX Color Values A hexadecimal color is specified with: #RRGGBB, where the RR (red), GG (green) and BB (blue) hexadecimal integers specify the components of the color. In HTML, a color can be specified using a hexadecimal value in the form: #rrggbb Where rr (red), gg (green) and bb (blue) are hexadecimal values between 00 and ff (same as decimal 0-255). For example, #ff0000 is displayed as red, because red is set to its highest value (ff), and the other two (green and blue) are set to 00. Another example, #00ff00 is displayed as green, because green is set to its highest value (ff), and the other two (red and blue) are set to 00. To display black, set all color parameters to 00, like this: #000000. To display white, set all color parameters to ff, like this: #ffffff.
  • 4. HSL Color Values In HTML, a color can be specified using hue, saturation, and lightness (HSL) in the form: hsl(hue, saturation, lightness) Hue is a degree on the color wheel from 0 to 360. 0 is red, 120 is green, and 240 is blue. Saturation is a percentage value, 0% means a shade of gray, and 100% is the full color. Lightness is also a percentage value, 0% is black, and 100% is white. What is CSS? Cascading Style Sheets (CSS) is used to format the layout of a webpage. With CSS, you can control the color, font, the size of text, the spacing between elements, how elements are positioned and laid out, what background images or background colors are to be used, different displays for different devices and screen sizes, and much more! Using CSS CSS can be added to HTML documents in 3 ways: • Inline - by using the style attribute inside HTML elements • Internal - by using a <style> element in the <head> section • External - by using a <link> element to link to an external CSS file The most common way to add CSS, is to keep the styles in external CSS files. However, in this tutorial we will use inline and internal styles, because this is easier to demonstrate, and easier for you to try it yourself. Inline CSS An inline CSS is used to apply a unique style to a single HTML element.
  • 5. An inline CSS uses the style attribute of an HTML element. The following example sets the text color of the <h1> element to blue, and the text color of the <p> element to red: Internal CSS An internal CSS is used to define a style for a single HTML page. An internal CSS is defined in the <head> section of an HTML page, within a <style> element. The following example sets the text color of ALL the <h1> elements (on that page) to blue, and the text color of ALL the <p> elements to red. In addition, the page will be displayed with a "powderblue" background color:
  • 7. External CSS An external style sheet is used to define the style for many HTML pages. To use an external style sheet, add a link to it in the <head> section of each HTML page: Styles.css