SlideShare a Scribd company logo
2
Most read
3
Most read
Presentation
Web Programming/(203 D1)
WEB PROGRAMMING LANGUAGES
INTRODUCTION
Md. Rifat Hasan
ID: 202002043
Dewan manhajul Islam
ID: 202002046
Rony ahmed
ID: 202002056
Shurav Podder
ID: 202002048
COURSE INSTRUCTOR
Lecturer
Green University of Bangladesh
Md. Noyan Ali
Cascading Style Sheets (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
Types of CSS (Cascading Style Sheet)
There are three types of CSS which are given below:
 Inline CSS
o An inline CSS is used to apply a unique style to a single HTML element.
o An inline CSS uses the style attribute of an HTML element.
 Example
<h1 style="color:blue;">A Blue Heading</h1>
<p style="color:red;">A red paragraph.</p>
 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.
 EXAMPLE
<style>
body {background-color: powderblue;}
h1 {color: blue;}
p {color: red;}
</style>
 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
 Example
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles.css">
</head>
<body>
CSS Tables
 Table Borders
To specify table borders in CSS, use the border property.
The example below specifies a solid border for <table>, <th>, and <td> elements:
 Full-Width Table
The table above might seem small in some cases. If you need a table that should span the entire screen (full-width),
add width: 100% to the <table> element:
Collapse Table Borders
The border-collapse property sets whether the table borders should be collapsed into a single border:
CSS Layout - float
 left - The element floats to the left of its container
 right - The element floats to the right of its container
 none - The element does not float (will be displayed
just where it occurs in the text). This is default
 inherit - The element inherits the float value of its
parent
CSS Positioning
 Positioning refers to the layout of the items on our page.
 It also refers to the “position” descriptor in CSS rules (more on this in a minute)
 position: static
• HTML elements are positioned static by default.
• Static positioned elements are not affected by the top, bottom, left, and right properties.
• An element with position: static; is not positioned in any special way; it is always positioned according to the normal
flow of the page
 position: relative
• An element with position: relative; is positioned relative to its normal position.
• Setting the top, right, bottom, and left properties of a relatively-positioned element will cause it to be
adjusted away from its normal position. Other content will not be adjusted to fit into any gap left by the
element.
 position: fixed
• An element with position: fixed; is positioned relative to the viewport, which means it always stays in the same place
even if the page is scrolled. The top, right, bottom, and left properties are used to position the element.
• A fixed element does not leave a gap in the page where it would normally have been located.
 position: absolute
• An element with position: absolute; is positioned relative to the nearest positioned ancestor (instead of positioned
relative to the viewport, like fixed).
• However; if an absolute positioned element has no positioned ancestors, it uses the document body, and moves along
with page scrolling.
 position: sticky
• An element with position: sticky; is positioned based on the user's scroll position.
JavaScript
 JavaScript is a client-side scripting language
 JavaScript was designed to add interactivity to HTML pages
 JavaScript is used in millions of Web pages to improve the design, validate forms, detect browsers, create cookies, and
much more
Why use client-side programming?
usability: can modify a page without having to post back to the server (faster UI)
efficiency: can make small, quick changes to page without waiting for server
event-driven: can respond to user actions like clicks and keyPresses server-side programming (PHP) benefits:
security: has access to server's private data; client can't see source code
Embedding JavaScript in HTML
 Embedding JavaScript in HTML directly
 Embedding JavaScript as an external file
 Embedding JavaScript as an external file
• We place script in a separate file and include this in HTML code
• SRC attribute of the <SCRIPT> is used to include the external JavaScript file in HTML
• Are useful when you have lengthy scripts
• Improve the readability
 Embedding JavaScript in HTML directly
• The <SCRIPT> tag is used to embed JavaScript code in HTML documents
• JavaScript can be placed anywhere between <HTML> and </HTML> tags
Thank you
Ad

Recommended

Cascading Style Sheets
Cascading Style Sheets
Senthil Kumar
 
Css
Css
BalaKrishna Kolliboina
 
CSS3 notes
CSS3 notes
Rex Wang
 
Css 101
Css 101
Rhyan Mahazudin
 
Cascading style sheets (CSS-Web Technology)
Cascading style sheets (CSS-Web Technology)
Timbal Mayank
 
CSS_Dibbo
CSS_Dibbo
Sayanton Vhaduri
 
Web Technology
Web Technology
Kirti H Mandal
 
Castro Chapter 11
Castro Chapter 11
Jeff Byrnes
 
gdg_workshop 4 on web development HTML & CSS
gdg_workshop 4 on web development HTML & CSS
SaniyaKhan484230
 
Designing for the web - 101
Designing for the web - 101
Ashraf Hamdy
 
6 css week12 2020 2021 for g10
6 css week12 2020 2021 for g10
Osama Ghandour Geris
 
CSS
CSS
ARJUN
 
Lecture-8.pptx
Lecture-8.pptx
vishal choudhary
 
css3.pptx
css3.pptx
ThiyaguPappu
 
Css Introduction
Css Introduction
SathyaseelanK1
 
CSS3 Refresher
CSS3 Refresher
Ivano Malavolta
 
Cordova training - Day 2 Introduction to CSS 3
Cordova training - Day 2 Introduction to CSS 3
Binu Paul
 
Introduction to Frontend Development - Session 2 - CSS Fundamentals
Introduction to Frontend Development - Session 2 - CSS Fundamentals
Kalin Chernev
 
Introduction to HTML+CSS+Javascript.pptx
Introduction to HTML+CSS+Javascript.pptx
deepuranjankumar2002
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Erin M. Kidwell
 
Web - CSS 1.pptx
Web - CSS 1.pptx
haroon451422
 
CSS Basics
CSS Basics
WordPress Memphis
 
Intro to HTML and CSS basics
Intro to HTML and CSS basics
Eliran Eliassy
 
CSS3 PPT.pptx
CSS3 PPT.pptx
AchieversIT
 
Lecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
ZahouAmel1
 
css front end development , designing web page
css front end development , designing web page
Indu32
 
CSS presentation for beginners where they can understand easily
CSS presentation for beginners where they can understand easily
Indu32
 
Evolution of CSS
Evolution of CSS
Ecaterina Moraru (Valica)
 
Chalukyas of Gujrat, Solanki Dynasty NEP.pptx
Chalukyas of Gujrat, Solanki Dynasty NEP.pptx
Dr. Ravi Shankar Arya Mahila P. G. College, Banaras Hindu University, Varanasi, India.
 
Birnagar High School Platinum Jubilee Quiz.pptx
Birnagar High School Platinum Jubilee Quiz.pptx
Sourav Kr Podder
 

More Related Content

Similar to Web Programming Basic topic.pptx (20)

gdg_workshop 4 on web development HTML & CSS
gdg_workshop 4 on web development HTML & CSS
SaniyaKhan484230
 
Designing for the web - 101
Designing for the web - 101
Ashraf Hamdy
 
6 css week12 2020 2021 for g10
6 css week12 2020 2021 for g10
Osama Ghandour Geris
 
CSS
CSS
ARJUN
 
Lecture-8.pptx
Lecture-8.pptx
vishal choudhary
 
css3.pptx
css3.pptx
ThiyaguPappu
 
Css Introduction
Css Introduction
SathyaseelanK1
 
CSS3 Refresher
CSS3 Refresher
Ivano Malavolta
 
Cordova training - Day 2 Introduction to CSS 3
Cordova training - Day 2 Introduction to CSS 3
Binu Paul
 
Introduction to Frontend Development - Session 2 - CSS Fundamentals
Introduction to Frontend Development - Session 2 - CSS Fundamentals
Kalin Chernev
 
Introduction to HTML+CSS+Javascript.pptx
Introduction to HTML+CSS+Javascript.pptx
deepuranjankumar2002
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Erin M. Kidwell
 
Web - CSS 1.pptx
Web - CSS 1.pptx
haroon451422
 
CSS Basics
CSS Basics
WordPress Memphis
 
Intro to HTML and CSS basics
Intro to HTML and CSS basics
Eliran Eliassy
 
CSS3 PPT.pptx
CSS3 PPT.pptx
AchieversIT
 
Lecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
ZahouAmel1
 
css front end development , designing web page
css front end development , designing web page
Indu32
 
CSS presentation for beginners where they can understand easily
CSS presentation for beginners where they can understand easily
Indu32
 
Evolution of CSS
Evolution of CSS
Ecaterina Moraru (Valica)
 
gdg_workshop 4 on web development HTML & CSS
gdg_workshop 4 on web development HTML & CSS
SaniyaKhan484230
 
Designing for the web - 101
Designing for the web - 101
Ashraf Hamdy
 
Cordova training - Day 2 Introduction to CSS 3
Cordova training - Day 2 Introduction to CSS 3
Binu Paul
 
Introduction to Frontend Development - Session 2 - CSS Fundamentals
Introduction to Frontend Development - Session 2 - CSS Fundamentals
Kalin Chernev
 
Introduction to HTML+CSS+Javascript.pptx
Introduction to HTML+CSS+Javascript.pptx
deepuranjankumar2002
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Erin M. Kidwell
 
Intro to HTML and CSS basics
Intro to HTML and CSS basics
Eliran Eliassy
 
Lecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
ZahouAmel1
 
css front end development , designing web page
css front end development , designing web page
Indu32
 
CSS presentation for beginners where they can understand easily
CSS presentation for beginners where they can understand easily
Indu32
 

Recently uploaded (20)

Chalukyas of Gujrat, Solanki Dynasty NEP.pptx
Chalukyas of Gujrat, Solanki Dynasty NEP.pptx
Dr. Ravi Shankar Arya Mahila P. G. College, Banaras Hindu University, Varanasi, India.
 
Birnagar High School Platinum Jubilee Quiz.pptx
Birnagar High School Platinum Jubilee Quiz.pptx
Sourav Kr Podder
 
LDMMIA Shop & Student News Summer Solstice 25
LDMMIA Shop & Student News Summer Solstice 25
LDM & Mia eStudios
 
English 3 Quarter 1_LEwithLAS_Week 1.pdf
English 3 Quarter 1_LEwithLAS_Week 1.pdf
DeAsisAlyanajaneH
 
How to use search fetch method in Odoo 18
How to use search fetch method in Odoo 18
Celine George
 
Plate Tectonic Boundaries and Continental Drift Theory
Plate Tectonic Boundaries and Continental Drift Theory
Marie
 
This is why students from these 44 institutions have not received National Se...
This is why students from these 44 institutions have not received National Se...
Kweku Zurek
 
How to Customize Quotation Layouts in Odoo 18
How to Customize Quotation Layouts in Odoo 18
Celine George
 
Aprendendo Arquitetura Framework Salesforce - Dia 02
Aprendendo Arquitetura Framework Salesforce - Dia 02
Mauricio Alexandre Silva
 
Hurricane Helene Application Documents Checklists
Hurricane Helene Application Documents Checklists
Mebane Rash
 
Peer Teaching Observations During School Internship
Peer Teaching Observations During School Internship
AjayaMohanty7
 
Romanticism in Love and Sacrifice An Analysis of Oscar Wilde’s The Nightingal...
Romanticism in Love and Sacrifice An Analysis of Oscar Wilde’s The Nightingal...
KaryanaTantri21
 
List View Components in Odoo 18 - Odoo Slides
List View Components in Odoo 18 - Odoo Slides
Celine George
 
Q1_ENGLISH_PPT_WEEK 1 power point grade 3 Quarter 1 week 1
Q1_ENGLISH_PPT_WEEK 1 power point grade 3 Quarter 1 week 1
jutaydeonne
 
A Visual Introduction to the Prophet Jeremiah
A Visual Introduction to the Prophet Jeremiah
Steve Thomason
 
ENGLISH-5 Q1 Lesson 1.pptx - Story Elements
ENGLISH-5 Q1 Lesson 1.pptx - Story Elements
Mayvel Nadal
 
Intellectual Property Right (Jurisprudence).pptx
Intellectual Property Right (Jurisprudence).pptx
Vishal Chanalia
 
F-BLOCK ELEMENTS POWER POINT PRESENTATIONS
F-BLOCK ELEMENTS POWER POINT PRESENTATIONS
mprpgcwa2024
 
Photo chemistry Power Point Presentation
Photo chemistry Power Point Presentation
mprpgcwa2024
 
How payment terms are configured in Odoo 18
How payment terms are configured in Odoo 18
Celine George
 
Birnagar High School Platinum Jubilee Quiz.pptx
Birnagar High School Platinum Jubilee Quiz.pptx
Sourav Kr Podder
 
LDMMIA Shop & Student News Summer Solstice 25
LDMMIA Shop & Student News Summer Solstice 25
LDM & Mia eStudios
 
English 3 Quarter 1_LEwithLAS_Week 1.pdf
English 3 Quarter 1_LEwithLAS_Week 1.pdf
DeAsisAlyanajaneH
 
How to use search fetch method in Odoo 18
How to use search fetch method in Odoo 18
Celine George
 
Plate Tectonic Boundaries and Continental Drift Theory
Plate Tectonic Boundaries and Continental Drift Theory
Marie
 
This is why students from these 44 institutions have not received National Se...
This is why students from these 44 institutions have not received National Se...
Kweku Zurek
 
How to Customize Quotation Layouts in Odoo 18
How to Customize Quotation Layouts in Odoo 18
Celine George
 
Aprendendo Arquitetura Framework Salesforce - Dia 02
Aprendendo Arquitetura Framework Salesforce - Dia 02
Mauricio Alexandre Silva
 
Hurricane Helene Application Documents Checklists
Hurricane Helene Application Documents Checklists
Mebane Rash
 
Peer Teaching Observations During School Internship
Peer Teaching Observations During School Internship
AjayaMohanty7
 
Romanticism in Love and Sacrifice An Analysis of Oscar Wilde’s The Nightingal...
Romanticism in Love and Sacrifice An Analysis of Oscar Wilde’s The Nightingal...
KaryanaTantri21
 
List View Components in Odoo 18 - Odoo Slides
List View Components in Odoo 18 - Odoo Slides
Celine George
 
Q1_ENGLISH_PPT_WEEK 1 power point grade 3 Quarter 1 week 1
Q1_ENGLISH_PPT_WEEK 1 power point grade 3 Quarter 1 week 1
jutaydeonne
 
A Visual Introduction to the Prophet Jeremiah
A Visual Introduction to the Prophet Jeremiah
Steve Thomason
 
ENGLISH-5 Q1 Lesson 1.pptx - Story Elements
ENGLISH-5 Q1 Lesson 1.pptx - Story Elements
Mayvel Nadal
 
Intellectual Property Right (Jurisprudence).pptx
Intellectual Property Right (Jurisprudence).pptx
Vishal Chanalia
 
F-BLOCK ELEMENTS POWER POINT PRESENTATIONS
F-BLOCK ELEMENTS POWER POINT PRESENTATIONS
mprpgcwa2024
 
Photo chemistry Power Point Presentation
Photo chemistry Power Point Presentation
mprpgcwa2024
 
How payment terms are configured in Odoo 18
How payment terms are configured in Odoo 18
Celine George
 
Ad

Web Programming Basic topic.pptx

  • 2. INTRODUCTION Md. Rifat Hasan ID: 202002043 Dewan manhajul Islam ID: 202002046 Rony ahmed ID: 202002056 Shurav Podder ID: 202002048 COURSE INSTRUCTOR Lecturer Green University of Bangladesh Md. Noyan Ali
  • 3. Cascading Style Sheets (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 Types of CSS (Cascading Style Sheet) There are three types of CSS which are given below:  Inline CSS o An inline CSS is used to apply a unique style to a single HTML element. o An inline CSS uses the style attribute of an HTML element.  Example <h1 style="color:blue;">A Blue Heading</h1> <p style="color:red;">A red paragraph.</p>
  • 4.  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.  EXAMPLE <style> body {background-color: powderblue;} h1 {color: blue;} p {color: red;} </style>  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  Example <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="styles.css"> </head> <body>
  • 5. CSS Tables  Table Borders To specify table borders in CSS, use the border property. The example below specifies a solid border for <table>, <th>, and <td> elements:  Full-Width Table The table above might seem small in some cases. If you need a table that should span the entire screen (full-width), add width: 100% to the <table> element:
  • 6. Collapse Table Borders The border-collapse property sets whether the table borders should be collapsed into a single border: CSS Layout - float  left - The element floats to the left of its container  right - The element floats to the right of its container  none - The element does not float (will be displayed just where it occurs in the text). This is default  inherit - The element inherits the float value of its parent
  • 7. CSS Positioning  Positioning refers to the layout of the items on our page.  It also refers to the “position” descriptor in CSS rules (more on this in a minute)  position: static • HTML elements are positioned static by default. • Static positioned elements are not affected by the top, bottom, left, and right properties. • An element with position: static; is not positioned in any special way; it is always positioned according to the normal flow of the page  position: relative • An element with position: relative; is positioned relative to its normal position. • Setting the top, right, bottom, and left properties of a relatively-positioned element will cause it to be adjusted away from its normal position. Other content will not be adjusted to fit into any gap left by the element.
  • 8.  position: fixed • An element with position: fixed; is positioned relative to the viewport, which means it always stays in the same place even if the page is scrolled. The top, right, bottom, and left properties are used to position the element. • A fixed element does not leave a gap in the page where it would normally have been located.  position: absolute • An element with position: absolute; is positioned relative to the nearest positioned ancestor (instead of positioned relative to the viewport, like fixed). • However; if an absolute positioned element has no positioned ancestors, it uses the document body, and moves along with page scrolling.  position: sticky • An element with position: sticky; is positioned based on the user's scroll position.
  • 9. JavaScript  JavaScript is a client-side scripting language  JavaScript was designed to add interactivity to HTML pages  JavaScript is used in millions of Web pages to improve the design, validate forms, detect browsers, create cookies, and much more Why use client-side programming? usability: can modify a page without having to post back to the server (faster UI) efficiency: can make small, quick changes to page without waiting for server event-driven: can respond to user actions like clicks and keyPresses server-side programming (PHP) benefits: security: has access to server's private data; client can't see source code
  • 10. Embedding JavaScript in HTML  Embedding JavaScript in HTML directly  Embedding JavaScript as an external file  Embedding JavaScript as an external file • We place script in a separate file and include this in HTML code • SRC attribute of the <SCRIPT> is used to include the external JavaScript file in HTML • Are useful when you have lengthy scripts • Improve the readability  Embedding JavaScript in HTML directly • The <SCRIPT> tag is used to embed JavaScript code in HTML documents • JavaScript can be placed anywhere between <HTML> and </HTML> tags