SlideShare a Scribd company logo
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

More Related Content

What's hot

Cascading style sheets (CSS)
Cascading style sheets (CSS)Cascading style sheets (CSS)
Cascading style sheets (CSS)
Harshita Yadav
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
Shawn Calvert
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
Sanjeev Kumar
 
Html
HtmlHtml
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
Mario Hernandez
 
New Elements & Features in CSS3
New Elements & Features in CSS3New Elements & Features in CSS3
New Elements & Features in CSS3Jamshid Hashimi
 
Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)
Chris Poteet
 
Css
CssCss
1 03 - CSS Introduction
1 03 - CSS Introduction1 03 - CSS Introduction
1 03 - CSS Introductionapnwebdev
 
css.ppt
css.pptcss.ppt
css.ppt
bhasula
 
Beginners css tutorial for web designers
Beginners css tutorial for web designersBeginners css tutorial for web designers
Beginners css tutorial for web designers
Singsys Pte Ltd
 
Intro Html
Intro HtmlIntro Html
Intro Html
Chidanand Byahatti
 
Cascading style sheet
Cascading style sheetCascading style sheet
Cascading style sheet
Michael Jhon
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
Ajay Khatri
 
HTML & CSS Masterclass
HTML & CSS MasterclassHTML & CSS Masterclass
HTML & CSS Masterclass
Bernardo Raposo
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
WordPress Memphis
 
Lab#5 style and selector
Lab#5 style and selectorLab#5 style and selector
Lab#5 style and selector
Yaowaluck Promdee
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3
Doris Chen
 
HTML and CSS crash course!
HTML and CSS crash course!HTML and CSS crash course!
HTML and CSS crash course!
Ana Cidre
 

What's hot (20)

Cascading style sheets (CSS)
Cascading style sheets (CSS)Cascading style sheets (CSS)
Cascading style sheets (CSS)
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
Html
HtmlHtml
Html
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
 
New Elements & Features in CSS3
New Elements & Features in CSS3New Elements & Features in CSS3
New Elements & Features in CSS3
 
Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)
 
Css
CssCss
Css
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
 
1 03 - CSS Introduction
1 03 - CSS Introduction1 03 - CSS Introduction
1 03 - CSS Introduction
 
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
 
Intro Html
Intro HtmlIntro Html
Intro Html
 
Cascading style sheet
Cascading style sheetCascading style sheet
Cascading style sheet
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
HTML & CSS Masterclass
HTML & CSS MasterclassHTML & CSS Masterclass
HTML & CSS Masterclass
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
Lab#5 style and selector
Lab#5 style and selectorLab#5 style and selector
Lab#5 style and selector
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3
 
HTML and CSS crash course!
HTML and CSS crash course!HTML and CSS crash course!
HTML and CSS crash course!
 

Similar to Html and 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
elayelily
 
Ifi7174 lesson2
Ifi7174 lesson2Ifi7174 lesson2
Ifi7174 lesson2
Sónia
 
Css introduction
Css introductionCss introduction
Css introductionSridhar P
 
Css
CssCss
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
Arti Parab Academics
 
CSS Comprehensive Overview
CSS Comprehensive OverviewCSS Comprehensive Overview
CSS Comprehensive Overview
Mohamed Loey
 
html css intro sanskar , saurabh.pptx
html css intro  sanskar , saurabh.pptxhtml css intro  sanskar , saurabh.pptx
html css intro sanskar , saurabh.pptx
Sanskardubey24
 
Css Basics
Css BasicsCss Basics
Css Basics
Jay Patel
 
BITM3730Week4.pptx
BITM3730Week4.pptxBITM3730Week4.pptx
BITM3730Week4.pptx
MattMarino13
 
css.ppt
css.pptcss.ppt
ch04-css-basics_final.ppt
ch04-css-basics_final.pptch04-css-basics_final.ppt
ch04-css-basics_final.ppt
GmachImen
 
CSS tutorial chapter 1
CSS tutorial chapter 1CSS tutorial chapter 1
CSS tutorial chapter 1
jeweltutin
 
CSS Basics part One
CSS Basics part OneCSS Basics part One
CSS Basics part One
M Ashraful Islam Jewel
 
BITM3730 9-20.pptx
BITM3730 9-20.pptxBITM3730 9-20.pptx
BITM3730 9-20.pptx
MattMarino13
 

Similar to 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
 
Css Basics
Css BasicsCss Basics
Css Basics
 
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
 

Recently uploaded

Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Anthony Dahanne
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
vrstrong314
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
AMB-Review
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
takuyayamamoto1800
 
A Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdfA Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdf
kalichargn70th171
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
Globus
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
Ortus Solutions, Corp
 
Designing for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web ServicesDesigning for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web Services
KrzysztofKkol1
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 
Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024
Sharepoint Designs
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
Globus
 
How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptx
wottaspaceseo
 
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
XfilesPro
 
De mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FMEDe mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FME
Jelle | Nordend
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Globus
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Globus
 
Accelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with PlatformlessAccelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with Platformless
WSO2
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Globus
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
XfilesPro
 
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Hivelance Technology
 

Recently uploaded (20)

Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
 
A Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdfA Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdf
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
 
Designing for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web ServicesDesigning for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web Services
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
 
How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptx
 
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
 
De mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FMEDe mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FME
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
 
Accelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with PlatformlessAccelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with Platformless
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
 
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
 

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