SlideShare uma empresa Scribd logo
1 de 14
INTRODUCTION TO HTML
AND CSS
2
• HTML DOCUMENTS ARE SIMPLY TEXT DOCUMENTS WITH A SPECIFIC
FORM
• DOCUMENTS COMPRISED OF CONTENT AND MARKUP TAGS
• CONTENT: ACTUAL INFORMATION BEING CONVEYED
• THE MARKUP TAGS TELL THE WEB BROWSER HOW TO DISPLAY
THE PAGE
• AN HTML FILE MUST HAVE AN HTM OR HTML FILE EXTENSION
• AN HTML FILE CAN BE CREATED USING A SIMPLE TEXT EDITOR
HTML: HYPERTEXT MARKUP
LANGUAGE
HTML Tags
HTML tags are used to mark-up HTML elements
– Surrounded by angle brackets < and >
– HTML tags normally come in pairs, like <tagname> (start tag) and
</tagname> (end tag)
– The text between the start and end tags is the element content
– Not case-sensitive
– Use lowercase tags
4
TAG ATTRIBUTES
• TAGS CAN HAVE ATTRIBUTES THAT PROVIDE ADDITIONAL INFORMATION
TO AN HTML ELEMENT
• ATTRIBUTES ALWAYS COME IN NAME/VALUE PAIRS LIKE:
NAME=“VALUE”
• ATTRIBUTES ARE ALWAYS SPECIFIED IN THE START TAG
• ATTRIBUTE VALUES SHOULD ALWAYS BE ENCLOSED IN QUOTES.
DOUBLE QUOTES ARE MOST COMMON.
• ALSO CASE-INSENSITIVE: HOWEVER, LOWERCASE IS RECOMMENDED
• <TAGNAME A1=“V1” A2=“V2”></TAGNAME>
• FOR EXAMPLE, <TABLE BORDER=“0”> IS A START TAG THAT DEFINES A
TABLE THAT HAS NO BORDERS
5
HTML DOCUMENT STRUCTURE
• ENTIRE DOCUMENT ENCLOSED WITHIN <HTML> AND </HTML> TAGS
• TWO SUBPARTS:
• HEAD
• ENCLOSED WITHIN <HEAD> AND </HEAD>
• WITHIN THE HEAD, MORE TAGS CAN BE USED TO SPECIFY TITLE OF
THE PAGE, META-INFORMATION, ETC.
• BODY
• ENCLOSED WITHIN <BODY> AND </BODY>
• WITHIN THE BODY, CONTENT IS TO BE DISPLAYED
• OTHER TAGS CAN BE EMBEDDED IN THE BODY
Basic HTML Tags
• Headings
• Paragraph
• Line Break
• Horizontal Rule
• Logical Tags
<strong>......</strong>
<abbr>.......</abbr> , etc.
• Physical Tags
<i>....</i>
<sub>......</sub>,etc.
• HTML frames are a means of having several browser
windows open within a single larger window
• Each HTML document is called a frame
• Disadvantages:
• Must keep track of more HTML documents
• Difficult to print the entire page
HTML Frames
1. HTML Background
2. HTML Color
3. HTML Lists
4. HTML Images
MORE TOPICS...
CSS stands for “Cascading Style Sheets”.
Cascading: refers to the procedure that determines which style will apply to a certain
section, if you have more than one style rule.
CSS
Style: how you want a certain part of your page to look. You can set things like color,
margins, font, etc for things like tables, paragraphs, and headings.
Sheets: the “sheets” are like templates, or a set of rules, for determining how the webpage
will look.
WHAT IS “STYLE”?
“STYLE” IS A COMMAND THAT YOU SET TO TELL THE BROWSER HOW A
CERTAIN SECTION OF YOUR WEBPAGE SHOULD LOOK.
What is “Style”
Where do I put my style rules?
There are three types of style-rule-places that
we will cover:
- Inlined
- Internal Style Sheet
- External Style Sheet
• <p style=“text-align: center; font- weight:
bold; color: yellow;”>What was I
thinking?</p>
• <style type=“text/css”>
body {
text-align: left;
font-family: trebuchet,
verdana;}
</style>
• <head><title>My Way</title>
<link rel="stylesheet"
href="http://www2.hawaii.edu/~myway.
css" type="text/css“>
</head>
CSS SELECTORS
A CSS Selector is the part of a CSS rule set that actually selects the contents which we want
to style.
• Universal Selector (*)
• ID Selector (#)
• Class Selector (.)
• Element Type Selector (p)
CSS DECLARATION
The declaration is always defined in a property value pair. The two are seperated with the
colon.
Example :
P {
Color: red
}
HTML is the universal markup language for the Web.
HTML lets you format text, add graphics, create links,
input forms, frames and tables, etc., and save it all in a
text file that any browser can read and display. Hence
CSS provides it the attractive and effective look to make it
more efficient.
Conclusion

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

CSS for Beginners
CSS for BeginnersCSS for Beginners
CSS for Beginners
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
 
Css ppt
Css pptCss ppt
Css ppt
 
Beginners css tutorial for web designers
Beginners css tutorial for web designersBeginners css tutorial for web designers
Beginners css tutorial for web designers
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
Css Basics
Css BasicsCss Basics
Css Basics
 
CSS
CSSCSS
CSS
 
HTML and CSS crash course!
HTML and CSS crash course!HTML and CSS crash course!
HTML and CSS crash course!
 
Css
CssCss
Css
 
Html n CSS
Html n CSSHtml n CSS
Html n CSS
 
CSS Introduction
CSS IntroductionCSS Introduction
CSS Introduction
 
Css
CssCss
Css
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
How Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) WorksHow Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) Works
 
CSS
CSSCSS
CSS
 
Advanced Cascading Style Sheets
Advanced Cascading Style SheetsAdvanced Cascading Style Sheets
Advanced Cascading Style Sheets
 
(Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS (Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS
 
Html basics
Html basicsHtml basics
Html basics
 
Html and css presentation
Html and css presentationHtml and css presentation
Html and css presentation
 

Semelhante a Html and css (20)

Css
CssCss
Css
 
basic programming language AND HTML CSS JAVApdf
basic programming language AND HTML CSS JAVApdfbasic programming language AND HTML CSS JAVApdf
basic programming language AND HTML CSS JAVApdf
 
Html and css
Html and cssHtml and css
Html and css
 
Ifi7174 lesson2
Ifi7174 lesson2Ifi7174 lesson2
Ifi7174 lesson2
 
Css introduction
Css introductionCss introduction
Css introduction
 
Css
CssCss
Css
 
FYBSC IT Web Programming Unit I HTML 5 & andcss
FYBSC IT Web Programming Unit I HTML 5 & andcssFYBSC IT Web Programming Unit I HTML 5 & andcss
FYBSC IT Web Programming Unit I HTML 5 & andcss
 
Css
CssCss
Css
 
CSS Comprehensive Overview
CSS Comprehensive OverviewCSS Comprehensive Overview
CSS Comprehensive Overview
 
html css intro sanskar , saurabh.pptx
html css intro  sanskar , saurabh.pptxhtml css intro  sanskar , saurabh.pptx
html css intro sanskar , saurabh.pptx
 
Introduction to css
Introduction to cssIntroduction to css
Introduction to css
 
BITM3730Week4.pptx
BITM3730Week4.pptxBITM3730Week4.pptx
BITM3730Week4.pptx
 
Basic HTML/CSS
Basic HTML/CSSBasic HTML/CSS
Basic HTML/CSS
 
css.ppt
css.pptcss.ppt
css.ppt
 
ch04-css-basics_final.ppt
ch04-css-basics_final.pptch04-css-basics_final.ppt
ch04-css-basics_final.ppt
 
CSS tutorial chapter 1
CSS tutorial chapter 1CSS tutorial chapter 1
CSS tutorial chapter 1
 
CSS Basics part One
CSS Basics part OneCSS Basics part One
CSS Basics part One
 
BITM3730 9-20.pptx
BITM3730 9-20.pptxBITM3730 9-20.pptx
BITM3730 9-20.pptx
 
Css present
Css presentCss present
Css present
 
Css
CssCss
Css
 

Último

How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 

Último (20)

How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 

Html and css

  • 2. 2 • HTML DOCUMENTS ARE SIMPLY TEXT DOCUMENTS WITH A SPECIFIC FORM • DOCUMENTS COMPRISED OF CONTENT AND MARKUP TAGS • CONTENT: ACTUAL INFORMATION BEING CONVEYED • THE MARKUP TAGS TELL THE WEB BROWSER HOW TO DISPLAY THE PAGE • AN HTML FILE MUST HAVE AN HTM OR HTML FILE EXTENSION • AN HTML FILE CAN BE CREATED USING A SIMPLE TEXT EDITOR HTML: HYPERTEXT MARKUP LANGUAGE
  • 3. HTML Tags HTML tags are used to mark-up HTML elements – Surrounded by angle brackets < and > – HTML tags normally come in pairs, like <tagname> (start tag) and </tagname> (end tag) – The text between the start and end tags is the element content – Not case-sensitive – Use lowercase tags
  • 4. 4 TAG ATTRIBUTES • TAGS CAN HAVE ATTRIBUTES THAT PROVIDE ADDITIONAL INFORMATION TO AN HTML ELEMENT • ATTRIBUTES ALWAYS COME IN NAME/VALUE PAIRS LIKE: NAME=“VALUE” • ATTRIBUTES ARE ALWAYS SPECIFIED IN THE START TAG • ATTRIBUTE VALUES SHOULD ALWAYS BE ENCLOSED IN QUOTES. DOUBLE QUOTES ARE MOST COMMON. • ALSO CASE-INSENSITIVE: HOWEVER, LOWERCASE IS RECOMMENDED • <TAGNAME A1=“V1” A2=“V2”></TAGNAME> • FOR EXAMPLE, <TABLE BORDER=“0”> IS A START TAG THAT DEFINES A TABLE THAT HAS NO BORDERS
  • 5. 5 HTML DOCUMENT STRUCTURE • ENTIRE DOCUMENT ENCLOSED WITHIN <HTML> AND </HTML> TAGS • TWO SUBPARTS: • HEAD • ENCLOSED WITHIN <HEAD> AND </HEAD> • WITHIN THE HEAD, MORE TAGS CAN BE USED TO SPECIFY TITLE OF THE PAGE, META-INFORMATION, ETC. • BODY • ENCLOSED WITHIN <BODY> AND </BODY> • WITHIN THE BODY, CONTENT IS TO BE DISPLAYED • OTHER TAGS CAN BE EMBEDDED IN THE BODY
  • 6. Basic HTML Tags • Headings • Paragraph • Line Break • Horizontal Rule • Logical Tags <strong>......</strong> <abbr>.......</abbr> , etc. • Physical Tags <i>....</i> <sub>......</sub>,etc.
  • 7. • HTML frames are a means of having several browser windows open within a single larger window • Each HTML document is called a frame • Disadvantages: • Must keep track of more HTML documents • Difficult to print the entire page HTML Frames
  • 8. 1. HTML Background 2. HTML Color 3. HTML Lists 4. HTML Images MORE TOPICS...
  • 9. CSS stands for “Cascading Style Sheets”. Cascading: refers to the procedure that determines which style will apply to a certain section, if you have more than one style rule. CSS Style: how you want a certain part of your page to look. You can set things like color, margins, font, etc for things like tables, paragraphs, and headings. Sheets: the “sheets” are like templates, or a set of rules, for determining how the webpage will look.
  • 10. WHAT IS “STYLE”? “STYLE” IS A COMMAND THAT YOU SET TO TELL THE BROWSER HOW A CERTAIN SECTION OF YOUR WEBPAGE SHOULD LOOK. What is “Style”
  • 11. Where do I put my style rules? There are three types of style-rule-places that we will cover: - Inlined - Internal Style Sheet - External Style Sheet • <p style=“text-align: center; font- weight: bold; color: yellow;”>What was I thinking?</p> • <style type=“text/css”> body { text-align: left; font-family: trebuchet, verdana;} </style> • <head><title>My Way</title> <link rel="stylesheet" href="http://www2.hawaii.edu/~myway. css" type="text/css“> </head>
  • 12. CSS SELECTORS A CSS Selector is the part of a CSS rule set that actually selects the contents which we want to style. • Universal Selector (*) • ID Selector (#) • Class Selector (.) • Element Type Selector (p)
  • 13. CSS DECLARATION The declaration is always defined in a property value pair. The two are seperated with the colon. Example : P { Color: red }
  • 14. HTML is the universal markup language for the Web. HTML lets you format text, add graphics, create links, input forms, frames and tables, etc., and save it all in a text file that any browser can read and display. Hence CSS provides it the attractive and effective look to make it more efficient. Conclusion