SlideShare a Scribd company logo
2
Most read
13
Most read
16
Most read
INTRODUCTION TO WED DESIGN
A detailed and practical approach to designing websites with all the
basics and design structures.
ABOUT THIS COURSE
A student will learn to critically evaluate website
quality, learn how to create and maintain quality
web pages and web standards at the same time
learning to create and manipulate images.
WHAT IS HTML?
WHAT IS HTML?
HTML is the standard markup language for creating Web pages.
HTML stands for Hyper Text Markup Language.
HTML describes the structure of a Web page and consists of a series of elements
HTML elements tell the browser how to display the content
HTML elements label pieces of content such as "this is a heading",
"this is a paragraph", "this is a link", etc.
EXAMPLE OF A BASIC HTML DOCUMENT STRUCTURE
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
WHAT IS HTML TAGS & ELEMENTS EXPLAINED?
The <!DOCTYPE html> declaration defines that this document is an HTML5 document
The <html> element is the root element of an HTML page
The <head> element contains meta information about the HTML page
The <title> element specifies a title for the HTML page (which is shown in the browser's title bar or in the page's tab)
The <body> element defines the document's body, and is a container for all the visible contents, such as headings,
paragraphs, images, hyperlinks, tables, lists, etc.
The <h1> element defines a large heading
The <p> element defines a paragraph
WHAT IS AN HTML ELEMENT?
An HTML element is defined by a start tag, some content, and an end tag:
<tagname> Content goes here... </tagname>
The HTML element is everything from the start tag to the end tag:
<h1>My First Heading</h1>
<p>My first paragraph.</p>
Note: Some HTML elements have no content (like the <br> element). These elements are called empty elements.
Empty elements do not have an end tag!
HTML PAGE STRUCTURE EXPLAINED?
HTML EDITORS & FORMATTING
Learn HTML Using NOTEPAD or TEXTEDIT
Web pages can be created and modified by using professional HTML editors.
However, for learning HTML we recommend a simple text editor like Notepad (PC) or TextEdit (Mac).
We believe that using a simple text editor is a good way to learn HTML.
HTML FORMATTING ELEMENTS
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 ENTITIES & SPECIAL CHARACTERS.
Entity names or entity numbers can be used to display reserved HTML characters.
SOME USEFUL HTML CHARACTER ENTITIES
RESULT DESCRIPTION NAME NUMBER
non-breaking space &nbsp; &#160;
< less than &lt; &#60;
> greater than &gt; &#62;
& ampersand &amp; &#38;
" double quotation mark &quot; &#34;
' single quotation mark &apos; &#39;
¢ cent &cent; &#162;
£ pound &pound; &#163;
¥ yen &yen; &#165;
€ euro &euro; &#8364;
© copyright &copy; &#169;
® trademark &reg; &#174;
HTML TABLES, FORMS, LISTS ANCHOR TAGS & IMAGES
WE SHALL REFER TO THE INDEX.HTML FILE WITHIN THIS
FOLDER CALLED WEB DESIGN FOR MORE ON THESE TOPICS
SINCE THEY ARE NOW MUCH MORE PRACTICAL.
WHAT IS CSS?
CSS is the language we use to style a Web page.
CSS stands for Cascading Style Sheets and 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
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.
CSS SOLVED A BIG PROBLEM
When tags like <font>, and color attributes were added to the HTML 3.2 specification, it started a nightmare for web
developers. Development of large websites, where fonts and color information were added to every single page,
became a long and expensive process.
To solve this problem, the World Wide Web Consortium (W3C) created CSS.
CSS removed the style formatting from the HTML page!
CSS SAVES A LOT OF WORK!
With an external stylesheet file, you can change the look of an entire website by changing just one file!
CSS SYNTAX?
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.
Multiple CSS declarations are separated with semicolons, and declaration blocks are surrounded by curly braces.
p {
color: red;
text-align: center;
}
EXAMPLE EXPLAINED
p is a selector in CSS (it points to the HTML element you want to style: <p>).
color is a property, and red is the property value
text-align is a property, and center is the property value
CSS .CLASS SELECTOR?
<html>
<head>
<style>
.intro { background-color: yellow;}
</style>
</head>
<body>
<h1>Demo of the .class selector</h1>
<div class="intro">
<p>My name is Donald.</p>
<p>I live in Duckburg.</p>
</div>
<p>My best friend is Mickey.</p>
<p class="intro">My best friend is Mickey.</p>
</body>
</html>
CSS #ID SELECTOR?
<html>
<head>
<style>
#firstname { background-color: yellow;}
</style>
</head>
<body>
<h1>Demo of the #id selector</h1>
<div class="intro">
<p id="firstname">My name is Donald.</p>
<p id="hometown">I live in Duckburg.</p>
</div>
<p>My best friend is Mickey.</p>
</body>
</html>
CSS MARGINS?
Margins are used to create space around elements, outside of any defined borders.
The CSS margin properties are used to create space around elements, outside of any defined borders.
With CSS, you have full control over the margins. There are properties for setting the margin for each side of an
element (top, right, bottom, and left).
CSS has properties for specifying the margin for each side of an element:
margin-top
margin-right
margin-bottom
margin-left
All the margin properties can have the following values:
auto - the browser calculates the margin
length - specifies a margin in px, pt, cm, etc.
% - specifies a margin in % of the width of the containing element
CSS MARGINS?
<html>
<head>
<style>
div {
border: 1px solid black; margin-top: 100px;
margin-bottom: 100px; margin-right: 150px;
margin-left: 80px;
background-color: lightblue;
}
</style>
</head>
<body>
<h2>Using individual margin properties</h2>
<div>This div element has a top margin of 100px,
a right margin of 150px, a bottom margin of 100px,
and a left margin of 80px.</div>
</body>
</html>
CSS PADDING?
Padding is used to create space around an element's content, inside of any defined borders.
The CSS padding properties are used to generate space around an element's content, inside of any defined borders.
With CSS, you have full control over the padding. There are properties for setting the padding for each side of an
element (top, right, bottom, and left).
CSS has properties for specifying the padding for each side of an element:
padding-top
padding-right
padding-bottom
padding-left
All the padding properties can have the following values:
length - specifies a padding in px, pt, cm, etc.
% - specifies a padding in % of the width of the containing element
CSS PADDING?
<html>
<head>
<style>
div {
border: 1px solid black;
background-color: lightblue;
padding-top: 50px;
padding-right: 30px;
padding-bottom: 50px;
padding-left: 80px;
}
</style>
</head>
<body>
<h2>Using individual padding properties</h2>
<div>This div element has a top padding of 50px,
a right padding of 30px, a bottom padding of 50px,
and a left padding of 80px.</div>
</body>
</html>
More questions about HTML, CSS or JS?

More Related Content

Similar to WEBSITE DESIGN AND DEVELOPMENT WITH CASCADING STYLE SHEETS(CSS) (20)

PDF
GDI Seattle Intro to HTML and CSS - Class 1
Heather Rock
 
PPT
CSS Training in Bangalore
rajkamal560066
 
PPTX
Introduction to Wed System And Technologies (1).pptx
AmeerHamza183012
 
PDF
Basic Details of HTML and CSS.pdf
Kalyani Government Engineering College
 
PDF
Web Dev Workshop at GDG on Campus:MGMCOE
Kashish Aswani
 
PPTX
CSS Basics part One
M Ashraful Islam Jewel
 
PPTX
CSS tutorial chapter 1
jeweltutin
 
PPTX
Beginners css tutorial for web designers
Singsys Pte Ltd
 
DOC
Css 1
H K
 
PPTX
Unit 2 WT-CSS.pptx web technology project
abhiramhatwar
 
PPTX
Web Information Systems Html and css
Artificial Intelligence Institute at UofSC
 
PDF
Html & Html5 from scratch
Ahmad Al-ammar
 
PPTX
html css js bootstrap framework thisis i
ssusered83521
 
PDF
Introduction to css
Joseph Gabriel
 
PPTX
Html-Prabakaran
DrPrabakaranPerumal
 
PDF
Intro to HTML and CSS - Class 2 Slides
Heather Rock
 
PDF
Web Design & Development - Session 2
Shahrzad Peyman
 
PPTX
Html 2
pavishkumarsingh
 
PPT
Shyam sunder Rajasthan Computer
shyamverma305
 
PPTX
Web Development - Lecture 5
Syed Shahzaib Sohail
 
GDI Seattle Intro to HTML and CSS - Class 1
Heather Rock
 
CSS Training in Bangalore
rajkamal560066
 
Introduction to Wed System And Technologies (1).pptx
AmeerHamza183012
 
Basic Details of HTML and CSS.pdf
Kalyani Government Engineering College
 
Web Dev Workshop at GDG on Campus:MGMCOE
Kashish Aswani
 
CSS Basics part One
M Ashraful Islam Jewel
 
CSS tutorial chapter 1
jeweltutin
 
Beginners css tutorial for web designers
Singsys Pte Ltd
 
Css 1
H K
 
Unit 2 WT-CSS.pptx web technology project
abhiramhatwar
 
Web Information Systems Html and css
Artificial Intelligence Institute at UofSC
 
Html & Html5 from scratch
Ahmad Al-ammar
 
html css js bootstrap framework thisis i
ssusered83521
 
Introduction to css
Joseph Gabriel
 
Html-Prabakaran
DrPrabakaranPerumal
 
Intro to HTML and CSS - Class 2 Slides
Heather Rock
 
Web Design & Development - Session 2
Shahrzad Peyman
 
Shyam sunder Rajasthan Computer
shyamverma305
 
Web Development - Lecture 5
Syed Shahzaib Sohail
 

Recently uploaded (20)

PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PPT
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PPTX
Digital Circuits, important subject in CS
contactparinay1
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PDF
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
Digital Circuits, important subject in CS
contactparinay1
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Ad

WEBSITE DESIGN AND DEVELOPMENT WITH CASCADING STYLE SHEETS(CSS)

  • 1. INTRODUCTION TO WED DESIGN A detailed and practical approach to designing websites with all the basics and design structures. ABOUT THIS COURSE A student will learn to critically evaluate website quality, learn how to create and maintain quality web pages and web standards at the same time learning to create and manipulate images.
  • 2. WHAT IS HTML? WHAT IS HTML? HTML is the standard markup language for creating Web pages. HTML stands for Hyper Text Markup Language. HTML describes the structure of a Web page and consists of a series of elements HTML elements tell the browser how to display the content HTML elements label pieces of content such as "this is a heading", "this is a paragraph", "this is a link", etc. EXAMPLE OF A BASIC HTML DOCUMENT STRUCTURE <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html>
  • 3. WHAT IS HTML TAGS & ELEMENTS EXPLAINED? The <!DOCTYPE html> declaration defines that this document is an HTML5 document The <html> element is the root element of an HTML page The <head> element contains meta information about the HTML page The <title> element specifies a title for the HTML page (which is shown in the browser's title bar or in the page's tab) The <body> element defines the document's body, and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc. The <h1> element defines a large heading The <p> element defines a paragraph WHAT IS AN HTML ELEMENT? An HTML element is defined by a start tag, some content, and an end tag: <tagname> Content goes here... </tagname> The HTML element is everything from the start tag to the end tag: <h1>My First Heading</h1> <p>My first paragraph.</p> Note: Some HTML elements have no content (like the <br> element). These elements are called empty elements. Empty elements do not have an end tag!
  • 4. HTML PAGE STRUCTURE EXPLAINED?
  • 5. HTML EDITORS & FORMATTING Learn HTML Using NOTEPAD or TEXTEDIT Web pages can be created and modified by using professional HTML editors. However, for learning HTML we recommend a simple text editor like Notepad (PC) or TextEdit (Mac). We believe that using a simple text editor is a good way to learn HTML. HTML FORMATTING ELEMENTS 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
  • 6. HTML ENTITIES & SPECIAL CHARACTERS. Entity names or entity numbers can be used to display reserved HTML characters. SOME USEFUL HTML CHARACTER ENTITIES RESULT DESCRIPTION NAME NUMBER non-breaking space &nbsp; &#160; < less than &lt; &#60; > greater than &gt; &#62; & ampersand &amp; &#38; " double quotation mark &quot; &#34; ' single quotation mark &apos; &#39; ¢ cent &cent; &#162; £ pound &pound; &#163; ¥ yen &yen; &#165; € euro &euro; &#8364; © copyright &copy; &#169; ® trademark &reg; &#174;
  • 7. HTML TABLES, FORMS, LISTS ANCHOR TAGS & IMAGES WE SHALL REFER TO THE INDEX.HTML FILE WITHIN THIS FOLDER CALLED WEB DESIGN FOR MORE ON THESE TOPICS SINCE THEY ARE NOW MUCH MORE PRACTICAL.
  • 8. WHAT IS CSS? CSS is the language we use to style a Web page. CSS stands for Cascading Style Sheets and 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 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. CSS SOLVED A BIG PROBLEM When tags like <font>, and color attributes were added to the HTML 3.2 specification, it started a nightmare for web developers. Development of large websites, where fonts and color information were added to every single page, became a long and expensive process. To solve this problem, the World Wide Web Consortium (W3C) created CSS. CSS removed the style formatting from the HTML page! CSS SAVES A LOT OF WORK! With an external stylesheet file, you can change the look of an entire website by changing just one file!
  • 9. CSS SYNTAX? 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. Multiple CSS declarations are separated with semicolons, and declaration blocks are surrounded by curly braces. p { color: red; text-align: center; } EXAMPLE EXPLAINED p is a selector in CSS (it points to the HTML element you want to style: <p>). color is a property, and red is the property value text-align is a property, and center is the property value
  • 10. CSS .CLASS SELECTOR? <html> <head> <style> .intro { background-color: yellow;} </style> </head> <body> <h1>Demo of the .class selector</h1> <div class="intro"> <p>My name is Donald.</p> <p>I live in Duckburg.</p> </div> <p>My best friend is Mickey.</p> <p class="intro">My best friend is Mickey.</p> </body> </html>
  • 11. CSS #ID SELECTOR? <html> <head> <style> #firstname { background-color: yellow;} </style> </head> <body> <h1>Demo of the #id selector</h1> <div class="intro"> <p id="firstname">My name is Donald.</p> <p id="hometown">I live in Duckburg.</p> </div> <p>My best friend is Mickey.</p> </body> </html>
  • 12. CSS MARGINS? Margins are used to create space around elements, outside of any defined borders. The CSS margin properties are used to create space around elements, outside of any defined borders. With CSS, you have full control over the margins. There are properties for setting the margin for each side of an element (top, right, bottom, and left). CSS has properties for specifying the margin for each side of an element: margin-top margin-right margin-bottom margin-left All the margin properties can have the following values: auto - the browser calculates the margin length - specifies a margin in px, pt, cm, etc. % - specifies a margin in % of the width of the containing element
  • 13. CSS MARGINS? <html> <head> <style> div { border: 1px solid black; margin-top: 100px; margin-bottom: 100px; margin-right: 150px; margin-left: 80px; background-color: lightblue; } </style> </head> <body> <h2>Using individual margin properties</h2> <div>This div element has a top margin of 100px, a right margin of 150px, a bottom margin of 100px, and a left margin of 80px.</div> </body> </html>
  • 14. CSS PADDING? Padding is used to create space around an element's content, inside of any defined borders. The CSS padding properties are used to generate space around an element's content, inside of any defined borders. With CSS, you have full control over the padding. There are properties for setting the padding for each side of an element (top, right, bottom, and left). CSS has properties for specifying the padding for each side of an element: padding-top padding-right padding-bottom padding-left All the padding properties can have the following values: length - specifies a padding in px, pt, cm, etc. % - specifies a padding in % of the width of the containing element
  • 15. CSS PADDING? <html> <head> <style> div { border: 1px solid black; background-color: lightblue; padding-top: 50px; padding-right: 30px; padding-bottom: 50px; padding-left: 80px; } </style> </head> <body> <h2>Using individual padding properties</h2> <div>This div element has a top padding of 50px, a right padding of 30px, a bottom padding of 50px, and a left padding of 80px.</div> </body> </html>
  • 16. More questions about HTML, CSS or JS?