SlideShare a Scribd company logo
Web Dev Workshop
Day 1- HTML and CSS
Speakers: Mayuresh(HTML)
Tanuja (CSS)
Let’s get to know everyone
Scan this QR code!!
Introduction
to HTML
Speaker:Mayuresh Sherala
(Tech co-lead)
Before working with html , things to do
Install Visual studio code in your pc
Open a browser for testing your html code
Install live server from extensions in vs code
Open any browser and go to this link to install vs code :
https://code.visualstudio.com/download
How will we proceed?
â—ŹDay 1 - HTML and CSS
â—ŹDay 2 - Javascript
â—ŹDay 3 - React and Node js
Note : you are advised to do the tasks simultaneously
What is HTML
HTML stands for HyperText
Markup Language, and it is the
standard language used to create
and structure content on the web.
It forms the backbone of almost
every website.
Points to cover
Document
Structure
Links and
Multimedi
a
Lists
Tables
1
2
3
4
5
6
Text
contents Forms
Document Structure
â—Ź <!DOCTYPE>: Declares the HTML version.
â—Ź <html>: The root element.
â—Ź <head>: Contains meta-information about the document.
â—Ź <title>: Specifies the title of the document.
â—Ź <body>: Contains the visible content of the webpage.
Basic structure of html
<!DOCTYPE html> <!-- Declares the document type as HTML5 -->
<html lang="en"> <!-- Root element; 'lang' specifies the language -->
<head>
<meta charset="UTF-8"> <!-- Character encoding -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My First Webpage</title> <!-- Title shown in the browser tab -->
</head>
<body>
<h1>Welcome to My Website!</h1> <!-- Main heading -->
<p>This is my first webpage created using HTML.</p> <!-- Paragraph -->
<a href="https://example.com">Visit Example.com</a> <!-- Hyperlink -->
</body>
</html>
Text Content
â—Ź <h1> to <h6>: Headings (from largest to smallest).
â—Ź <p>: Paragraph.
â—Ź <br>: Line break.
â—Ź <hr>: Horizontal rule (line).
â—Ź <b>: Bold text.
â—Ź <i>: Italic text.
â—Ź <u>: Underlined text.
â—Ź <strong>: Strong emphasis (bold).
â—Ź <em>: Emphasized text (italic).
â—Ź <mark>: Highlighted text.
â—Ź <small>: Small text.
â—Ź <sub>: Subscript.
â—Ź <sup>: Superscript.
Links and Multimedia
â—Ź <a>: Creates hyperlinks.
â—Ź <img>: Embeds an image.
â—Ź <audio>: Embeds audio content.
â—Ź <video>: Embeds video content.
Lists
â—Ź <ul>: Unordered list.
â—Ź <ol>: Ordered list.
â—Ź <li>: List item.
Tables
â—Ź <table>: Creates a table.
â—Ź <tr>: Table row.
â—Ź <th>: Table header.
â—Ź <td>: Table data cell.
Forms
â—Ź <form>: Creates a form.
â—Ź <input>: Input field (text, radio, checkbox, etc.).
â—Ź <label>: Label for form elements.
â—Ź <textarea>: Multi-line text input.
â—Ź <option>: Options in a dropdown.
â—Ź <select>: Dropdown list.
â—Ź <button>: Button.
Forms
â—Ź <form>: Creates a form.
â—Ź <input>: Input field (text, radio, checkbox, etc.).
â—Ź <label>: Label for form elements.
â—Ź <textarea>: Multi-line text input.
â—Ź <button>: Button.
â—Ź <select>: Dropdown list.
â—Ź <option>: Options in a dropdown.
Introduction
to CSS
Speaker : Tanuja Suryawanshi
(Network lead)
What is CSS
CSS stands for Cascading Style
Sheet. Like HTML, CSS is not a
programming language. It's not a
markup language either. CSS is a
style sheet language.Used to style &
design web pages by controlling
layout, colors, fonts, making them
visually responsive.
Basic structure of html
â—Ź CSS Syntax: (selector { property: value; })
â—Ź Types of CSS: (Inline ,Internal & External)
â—Ź CSS Selectors: (Universal, Type, Class, ID, Grouping)
â—Ź CSS Colors: (Named, Hex, RGB, RGBA, HSL, HSLA)
â—Ź Backgrounds: (Color, Image, Repeat, Size, Attachment)
â—Ź Fonts and Typography: (Font-Family, Font-Size, Font-Weight, Font-Style, Line-
Height)
â—Ź Text Styling: (Color, Alignment, Decoration, Indentation)
â—Ź CSS Units: (px, %, em, rem, vw, vh)
â—Ź Box Model: (Margin, Border, Padding)
â—Ź Box Sizing: (Content-Box, Border-Box)
â—Ź Comments in CSS: (/* comment */)
â—Ź CSS Priority and Specificity: (Inline > IDs > Classes > Elements > Universal)
â—Ź Flexbox
Point to cover
CSS Syntax
CSS syntax consists of three main parts:
1. Selector: Specifies the HTML element to style.
2. Property: Defines what aspect of the element to style (e.g., color, font-size).
3. Value: Specifies the style to apply for the property.
4. selector {
property: value;
}
EX :
h1 {
color: blue;
font-size: 24px;
}
Types of CSS
Inline CSS:
â—Ź Written directly in the style attribute of an HTML element.
â—Ź Example: <h1 style="color: blue;">Hello</h1>
Internal CSS:
â—Ź Defined inside a <style> tag in the <head> section of the HTML file.
Example:<style>h1 { color: red; }</style>
External CSS:
â—Ź Written in a separate .css file and linked using <link>.
â—Ź Example: <link rel="stylesheet" href="styles.css">
CSS Selectors
Universal Selector (*)
â—Ź Targets all elements.
â—Ź Example: * { margin: 0; padding: 0; }
Type Selector (Element Selector)
â—Ź Targets all elements of a specific type.
â—Ź Example: p { color: blue; }
Descendant Selector (Space)
â—Ź Targets elements that are descendants of another element.
â—Ź Example:
div p { color: green; }
Class Selector (.)
â—Ź Targets elements with a specific class.
â—Ź Example:
.button { background-color: red; }
ID Selector (#)
â—Ź Targets an element with a specific ID.
Example:
#header { font-size: 24px; }
Pseudo-Class Selector (:)
â—Ź Targets elements in a specific state (like hover).
â—Ź Example: a:hover { color: red; }
CSS Colors
Named Colors
â—Ź Predefined color names in CSS (e.g., red, blue).
â—Ź Example: color: red;
Hexadecimal Colors
â—Ź Represents colors with 6 digits (RGB in hex).
â—Ź Example: color: #ff5733; /* Red-orange */
RGB (Red, Green, Blue)
â—Ź Specifies color using RGB values (0-255).
Example: color: rgb(255, 87, 51); /* Red-orange */
RGBA (RGB + Alpha)
â—Ź RGB with transparency (alpha value from 0 to 1).
â—Ź Example:
color: rgba(255, 87, 51, 0.5);
HSL (Hue, Saturation, Lightness)
â—Ź Hue (0-360), Saturation (0-100%), and Lightness (0-100%).
â—Ź Example:
color: hsl(9, 100%, 60%);
HSLA (HSL + Alpha)
â—Ź HSL with transparency (alpha value from 0 to 1).
â—Ź Example:
color: hsla(9, 100%, 60%, 0.5);
CSS Background
background-color
â—Ź Sets the background color of an element.
Example: background-color: lightblue;
background-image
â—Ź Sets an image as the background.
â—Ź Example: background-image: url('image.jpg');
background-position
â—Ź Specifies the position of the background image.
â—Ź Example: background-position: center;
CSS Font & Typography
font-family
â—Ź Specifies the font for text.
Example: font-family: Arial, sans-serif;
font-size
â—Ź Sets the size of the font.
â—Ź Example: font-size: 16px;
font-weight
â—Ź Defines the thickness of the font (e.g., bold, normal).
â—Ź Example: font-weight: bold;
CSS Text Styling
text-decoration
â—Ź Adds decorations to text (e.g., underline, line-through).
â—Ź Example: text-decoration: underline;
text-transform
â—Ź Controls the capitalization of text (e.g., uppercase, lowercase).
â—Ź Example: text-transform: uppercase;
text-align
â—Ź Aligns the text horizontally (e.g., left, center, right).
â—Ź Example: text-align: center;
CSS Units
px (Pixels)
â—Ź Fixed size, commonly used for precise layout control.
â—Ź Example: width: 100px;
% (Percentage)
â—Ź Relative to the parent element's size.
â—Ź Example: width: 50%;
em
â—Ź Relative to the font-size of the element.
Example: font-size: 2em; /* 2 times the element's font size */
CSS Box Model
Border:
â—Ź The edge around the padding.
â—Ź Example: border: 2px solid black;
Margin:
â—Ź Space outside the border, separating elements.
â—Ź Example: margin: 20px;
Padding:
â—Ź Space between content and border.
â—Ź Example: padding: 10px;
CSS Box Sizing
The box-sizing property determines how the total width and height of an element are
calculated.
content-box (default)
â—Ź Width and height apply only to the content area. Padding and border are added
outside the element's specified width and height.
â—Ź Example: box-sizing: content-box;
border-box
â—Ź Width and height include padding and border. The specified width and height are the
total size, including padding and border.
â—Ź Example: box-sizing: border-box;
Comments in CSS
Comments in CSS are used to explain the code or make it more readable. They are
ignored by the browser and do not affect the rendering of the page.
Syntax: /* Single-line or multi-line comment */
Example:/* This is a comment */
body {
background-color: lightblue;
}
â—Ź Comments are used to add explanations or notes and are ignored by the browser.
CSS Priority & Specificity
1. Specificity:
Determines which CSS rule is applied based on the selector’s specificity.
â—‹ Inline styles: Highest specificity (1000).
â—‹ IDs: (100).
â—‹ Classes, pseudo-classes, attributes: (10).
â—‹ Element (type) selectors: (1).
â—‹ Universal selector (*): Lowest specificity.
2. Priority:
â—‹ !important overrides other declarations, regardless of specificity.
â—‹ If two rules have the same specificity, the one last in the stylesheet takes
priority.
â—‹ Example: #header { color: red; } /* ID selector*/
â—‹ p { color: blue; } /* Element selector */
CSS Flexbox
Flexbox is a CSS layout model that allows for easy alignment and distribution of elements in a
container, both horizontally and vertically.
Flex Container: The parent element that holds the flex items. Defined by setting display: flex or
display: inline-flex.
Flex Items: The children of the flex container. These are automatically laid out using Flexbox.
Container:
â—Ź display: flex: Defines the flex container.
â—Ź flex-direction: Defines the main axis (row, column, etc.).
â—Ź justify-content: Aligns items horizontally (start, center, space-between, etc.).
â—Ź align-items: Aligns items vertically (start, center, stretch, etc.).
â—Ź align-self: Allows individual flex items to align differently than others.
â—Ź flex-wrap: Allows items to wrap onto multiple lines if needed.
Quiz Time
Scan this QR code!!
Whatsapp channel link:
Click here
All the updates / notes will be posted on
whatsapp channel.
Tomorrow Day 2 :
Intro to JS
Follow us on :
LinkedIn : gdg-nbnscoe
Instagram : gdg_nbnscoe
Twitter : gdg_nbnscoe
Thank You..! Q & A ?
Day 2 Registration Link:
Get Your tickets

More Related Content

PPTX
gdg Introduction to HTML-CSS-Javascript.pptx
PPTX
Introduction to HTML-CSS-Javascript.pptx
PPTX
Introduction to HTML+CSS+Javascript.pptx
PPTX
Introduction to HTML+CSS+Javascript.pptx
PPTX
Introduction to HTML+CSS+Javascript.pptx
PPTX
Introduction to HTML+CSS+Javascript.pptx
PDF
Introduction to HTML-CSS-Javascript.pdf
PPT
Chapter 4a cascade style sheet css
gdg Introduction to HTML-CSS-Javascript.pptx
Introduction to HTML-CSS-Javascript.pptx
Introduction to HTML+CSS+Javascript.pptx
Introduction to HTML+CSS+Javascript.pptx
Introduction to HTML+CSS+Javascript.pptx
Introduction to HTML+CSS+Javascript.pptx
Introduction to HTML-CSS-Javascript.pdf
Chapter 4a cascade style sheet css

Similar to GDG On Campus NBNSCOE Web Workshop Day 1 : HTML & CSS (20)

PDF
IT2255 Web Essentials - Unit II Web Designing
PPTX
Workshop 2 Slides.pptx
PPTX
Introduction to Html5, css, Javascript and Jquery
PPTX
Web technology Unit-II Part-C
PDF
Presentation on htmlcssjs-130221085257-phpapp02.pdf
PPTX
Introduction to HTML+CSS+Javascript.pptx
ODP
Cascading Style Sheets - Part 01
PPTX
Introduction to HTML+CSS+Javascript.pptx
PPTX
Introduction to Web Techniques_Key componenets_HTML Basics
PPTX
Introduction to Cascading Style Sheets .
PPTX
PPT ON SEMINAR REPORT.pptx. bhvhvhchchvhchch
PPTX
HTMLforbeginerslearntocodeforbeginersinfh
 
PPTX
Introduction to html5 and css3
PPTX
wd project.pptx
PDF
1. Advanced Web Designing (12th IT) (1).pdf
PPTX
Front End Development - HTML AND BASICS.pptx
DOC
Css introduction
PPTX
PPTX
WEBSITE DESIGN AND DEVELOPMENT WITH CASCADING STYLE SHEETS(CSS)
IT2255 Web Essentials - Unit II Web Designing
Workshop 2 Slides.pptx
Introduction to Html5, css, Javascript and Jquery
Web technology Unit-II Part-C
Presentation on htmlcssjs-130221085257-phpapp02.pdf
Introduction to HTML+CSS+Javascript.pptx
Cascading Style Sheets - Part 01
Introduction to HTML+CSS+Javascript.pptx
Introduction to Web Techniques_Key componenets_HTML Basics
Introduction to Cascading Style Sheets .
PPT ON SEMINAR REPORT.pptx. bhvhvhchchvhchch
HTMLforbeginerslearntocodeforbeginersinfh
 
Introduction to html5 and css3
wd project.pptx
1. Advanced Web Designing (12th IT) (1).pdf
Front End Development - HTML AND BASICS.pptx
Css introduction
WEBSITE DESIGN AND DEVELOPMENT WITH CASCADING STYLE SHEETS(CSS)
Ad

Recently uploaded (20)

PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
Cloud computing and distributed systems.
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
DOCX
The AUB Centre for AI in Media Proposal.docx
 
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
 
PDF
Machine learning based COVID-19 study performance prediction
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Cloud computing and distributed systems.
Digital-Transformation-Roadmap-for-Companies.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
Mobile App Security Testing_ A Comprehensive Guide.pdf
MIND Revenue Release Quarter 2 2025 Press Release
The AUB Centre for AI in Media Proposal.docx
 
Building Integrated photovoltaic BIPV_UPV.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
The Rise and Fall of 3GPP – Time for a Sabbatical?
 
Machine learning based COVID-19 study performance prediction
NewMind AI Weekly Chronicles - August'25 Week I
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
20250228 LYD VKU AI Blended-Learning.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Advanced methodologies resolving dimensionality complications for autism neur...
Network Security Unit 5.pdf for BCA BBA.
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Spectral efficient network and resource selection model in 5G networks
Ad

GDG On Campus NBNSCOE Web Workshop Day 1 : HTML & CSS

  • 1. Web Dev Workshop Day 1- HTML and CSS Speakers: Mayuresh(HTML) Tanuja (CSS)
  • 2. Let’s get to know everyone Scan this QR code!!
  • 4. Before working with html , things to do Install Visual studio code in your pc Open a browser for testing your html code Install live server from extensions in vs code Open any browser and go to this link to install vs code : https://code.visualstudio.com/download
  • 5. How will we proceed? â—ŹDay 1 - HTML and CSS â—ŹDay 2 - Javascript â—ŹDay 3 - React and Node js Note : you are advised to do the tasks simultaneously
  • 6. What is HTML HTML stands for HyperText Markup Language, and it is the standard language used to create and structure content on the web. It forms the backbone of almost every website.
  • 7. Points to cover Document Structure Links and Multimedi a Lists Tables 1 2 3 4 5 6 Text contents Forms
  • 8. Document Structure â—Ź <!DOCTYPE>: Declares the HTML version. â—Ź <html>: The root element. â—Ź <head>: Contains meta-information about the document. â—Ź <title>: Specifies the title of the document. â—Ź <body>: Contains the visible content of the webpage.
  • 9. Basic structure of html <!DOCTYPE html> <!-- Declares the document type as HTML5 --> <html lang="en"> <!-- Root element; 'lang' specifies the language --> <head> <meta charset="UTF-8"> <!-- Character encoding --> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>My First Webpage</title> <!-- Title shown in the browser tab --> </head> <body> <h1>Welcome to My Website!</h1> <!-- Main heading --> <p>This is my first webpage created using HTML.</p> <!-- Paragraph --> <a href="https://example.com">Visit Example.com</a> <!-- Hyperlink --> </body> </html>
  • 10. Text Content â—Ź <h1> to <h6>: Headings (from largest to smallest). â—Ź <p>: Paragraph. â—Ź <br>: Line break. â—Ź <hr>: Horizontal rule (line). â—Ź <b>: Bold text. â—Ź <i>: Italic text. â—Ź <u>: Underlined text. â—Ź <strong>: Strong emphasis (bold). â—Ź <em>: Emphasized text (italic). â—Ź <mark>: Highlighted text. â—Ź <small>: Small text. â—Ź <sub>: Subscript. â—Ź <sup>: Superscript.
  • 11. Links and Multimedia â—Ź <a>: Creates hyperlinks. â—Ź <img>: Embeds an image. â—Ź <audio>: Embeds audio content. â—Ź <video>: Embeds video content.
  • 12. Lists â—Ź <ul>: Unordered list. â—Ź <ol>: Ordered list. â—Ź <li>: List item.
  • 13. Tables â—Ź <table>: Creates a table. â—Ź <tr>: Table row. â—Ź <th>: Table header. â—Ź <td>: Table data cell.
  • 14. Forms â—Ź <form>: Creates a form. â—Ź <input>: Input field (text, radio, checkbox, etc.). â—Ź <label>: Label for form elements. â—Ź <textarea>: Multi-line text input. â—Ź <option>: Options in a dropdown. â—Ź <select>: Dropdown list. â—Ź <button>: Button.
  • 15. Forms â—Ź <form>: Creates a form. â—Ź <input>: Input field (text, radio, checkbox, etc.). â—Ź <label>: Label for form elements. â—Ź <textarea>: Multi-line text input. â—Ź <button>: Button. â—Ź <select>: Dropdown list. â—Ź <option>: Options in a dropdown. Introduction to CSS Speaker : Tanuja Suryawanshi (Network lead)
  • 16. What is CSS CSS stands for Cascading Style Sheet. Like HTML, CSS is not a programming language. It's not a markup language either. CSS is a style sheet language.Used to style & design web pages by controlling layout, colors, fonts, making them visually responsive.
  • 17. Basic structure of html â—Ź CSS Syntax: (selector { property: value; }) â—Ź Types of CSS: (Inline ,Internal & External) â—Ź CSS Selectors: (Universal, Type, Class, ID, Grouping) â—Ź CSS Colors: (Named, Hex, RGB, RGBA, HSL, HSLA) â—Ź Backgrounds: (Color, Image, Repeat, Size, Attachment) â—Ź Fonts and Typography: (Font-Family, Font-Size, Font-Weight, Font-Style, Line- Height) â—Ź Text Styling: (Color, Alignment, Decoration, Indentation) â—Ź CSS Units: (px, %, em, rem, vw, vh) â—Ź Box Model: (Margin, Border, Padding) â—Ź Box Sizing: (Content-Box, Border-Box) â—Ź Comments in CSS: (/* comment */) â—Ź CSS Priority and Specificity: (Inline > IDs > Classes > Elements > Universal) â—Ź Flexbox Point to cover
  • 18. CSS Syntax CSS syntax consists of three main parts: 1. Selector: Specifies the HTML element to style. 2. Property: Defines what aspect of the element to style (e.g., color, font-size). 3. Value: Specifies the style to apply for the property. 4. selector { property: value; } EX : h1 { color: blue; font-size: 24px; }
  • 19. Types of CSS Inline CSS: â—Ź Written directly in the style attribute of an HTML element. â—Ź Example: <h1 style="color: blue;">Hello</h1> Internal CSS: â—Ź Defined inside a <style> tag in the <head> section of the HTML file. Example:<style>h1 { color: red; }</style> External CSS: â—Ź Written in a separate .css file and linked using <link>. â—Ź Example: <link rel="stylesheet" href="styles.css">
  • 20. CSS Selectors Universal Selector (*) â—Ź Targets all elements. â—Ź Example: * { margin: 0; padding: 0; } Type Selector (Element Selector) â—Ź Targets all elements of a specific type. â—Ź Example: p { color: blue; } Descendant Selector (Space) â—Ź Targets elements that are descendants of another element. â—Ź Example: div p { color: green; }
  • 21. Class Selector (.) â—Ź Targets elements with a specific class. â—Ź Example: .button { background-color: red; } ID Selector (#) â—Ź Targets an element with a specific ID. Example: #header { font-size: 24px; } Pseudo-Class Selector (:) â—Ź Targets elements in a specific state (like hover). â—Ź Example: a:hover { color: red; }
  • 22. CSS Colors Named Colors â—Ź Predefined color names in CSS (e.g., red, blue). â—Ź Example: color: red; Hexadecimal Colors â—Ź Represents colors with 6 digits (RGB in hex). â—Ź Example: color: #ff5733; /* Red-orange */ RGB (Red, Green, Blue) â—Ź Specifies color using RGB values (0-255). Example: color: rgb(255, 87, 51); /* Red-orange */
  • 23. RGBA (RGB + Alpha) â—Ź RGB with transparency (alpha value from 0 to 1). â—Ź Example: color: rgba(255, 87, 51, 0.5); HSL (Hue, Saturation, Lightness) â—Ź Hue (0-360), Saturation (0-100%), and Lightness (0-100%). â—Ź Example: color: hsl(9, 100%, 60%); HSLA (HSL + Alpha) â—Ź HSL with transparency (alpha value from 0 to 1). â—Ź Example: color: hsla(9, 100%, 60%, 0.5);
  • 24. CSS Background background-color â—Ź Sets the background color of an element. Example: background-color: lightblue; background-image â—Ź Sets an image as the background. â—Ź Example: background-image: url('image.jpg'); background-position â—Ź Specifies the position of the background image. â—Ź Example: background-position: center;
  • 25. CSS Font & Typography font-family â—Ź Specifies the font for text. Example: font-family: Arial, sans-serif; font-size â—Ź Sets the size of the font. â—Ź Example: font-size: 16px; font-weight â—Ź Defines the thickness of the font (e.g., bold, normal). â—Ź Example: font-weight: bold;
  • 26. CSS Text Styling text-decoration â—Ź Adds decorations to text (e.g., underline, line-through). â—Ź Example: text-decoration: underline; text-transform â—Ź Controls the capitalization of text (e.g., uppercase, lowercase). â—Ź Example: text-transform: uppercase; text-align â—Ź Aligns the text horizontally (e.g., left, center, right). â—Ź Example: text-align: center;
  • 27. CSS Units px (Pixels) â—Ź Fixed size, commonly used for precise layout control. â—Ź Example: width: 100px; % (Percentage) â—Ź Relative to the parent element's size. â—Ź Example: width: 50%; em â—Ź Relative to the font-size of the element. Example: font-size: 2em; /* 2 times the element's font size */
  • 28. CSS Box Model Border: â—Ź The edge around the padding. â—Ź Example: border: 2px solid black; Margin: â—Ź Space outside the border, separating elements. â—Ź Example: margin: 20px; Padding: â—Ź Space between content and border. â—Ź Example: padding: 10px;
  • 29. CSS Box Sizing The box-sizing property determines how the total width and height of an element are calculated. content-box (default) â—Ź Width and height apply only to the content area. Padding and border are added outside the element's specified width and height. â—Ź Example: box-sizing: content-box; border-box â—Ź Width and height include padding and border. The specified width and height are the total size, including padding and border. â—Ź Example: box-sizing: border-box;
  • 30. Comments in CSS Comments in CSS are used to explain the code or make it more readable. They are ignored by the browser and do not affect the rendering of the page. Syntax: /* Single-line or multi-line comment */ Example:/* This is a comment */ body { background-color: lightblue; } â—Ź Comments are used to add explanations or notes and are ignored by the browser.
  • 31. CSS Priority & Specificity 1. Specificity: Determines which CSS rule is applied based on the selector’s specificity. â—‹ Inline styles: Highest specificity (1000). â—‹ IDs: (100). â—‹ Classes, pseudo-classes, attributes: (10). â—‹ Element (type) selectors: (1). â—‹ Universal selector (*): Lowest specificity. 2. Priority: â—‹ !important overrides other declarations, regardless of specificity. â—‹ If two rules have the same specificity, the one last in the stylesheet takes priority. â—‹ Example: #header { color: red; } /* ID selector*/ â—‹ p { color: blue; } /* Element selector */
  • 32. CSS Flexbox Flexbox is a CSS layout model that allows for easy alignment and distribution of elements in a container, both horizontally and vertically. Flex Container: The parent element that holds the flex items. Defined by setting display: flex or display: inline-flex. Flex Items: The children of the flex container. These are automatically laid out using Flexbox. Container: â—Ź display: flex: Defines the flex container. â—Ź flex-direction: Defines the main axis (row, column, etc.). â—Ź justify-content: Aligns items horizontally (start, center, space-between, etc.). â—Ź align-items: Aligns items vertically (start, center, stretch, etc.). â—Ź align-self: Allows individual flex items to align differently than others. â—Ź flex-wrap: Allows items to wrap onto multiple lines if needed.
  • 33. Quiz Time Scan this QR code!!
  • 34. Whatsapp channel link: Click here All the updates / notes will be posted on whatsapp channel. Tomorrow Day 2 : Intro to JS
  • 35. Follow us on : LinkedIn : gdg-nbnscoe Instagram : gdg_nbnscoe Twitter : gdg_nbnscoe
  • 36. Thank You..! Q & A ? Day 2 Registration Link: Get Your tickets