SlideShare a Scribd company logo
1 of 70
CHAPTER 6
HTML
Introduction
• HTML stands for Hyper Text Markup Language
• A markup language is a set of markup tags
• HTML documents are described by HTML tags
• Each HTML tag describes different document content
• The tags are what separate normal text from HTML code.
Explanation
 The text between <html> and </html> describes an HTML document
 The text between <head> and </head> provides information about
the document
 The text between <title> and </title> provides a title for the document
 The text between <body> and </body> describes the visible page
content
 The text between <h1> and </h1> describes a heading
 The text between <p> and </p> describes a paragraph
Heading and Paragraph
Let’s get start it!
 Open notepad.
 Type this coding into your notepad.
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
Save
Save as heading.html
Heading
Heading and Paragraph
 HTML headings are defined with the <h1> to <h6> tags.
 HTML paragraphs are defined with the <p> tag
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is First Heading</h1>
<h2>This is Second Heading</h2>
<h3>This is Third Heading</h3>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>
Heading and Paragraph
• Save as heading.html
HTML Links
HTML links are defined with the <a> tag.
<html>
<body>
<a href="http://www.google.com">This is a link</a>
</body>
</html>
HTML Links
Save as link.html
Image
 HTML images are defined with the <img> tag.
 The source file (src), alternative text (alt), and size
(width and height) are provided as attributes:
<html>
<body>
<img src="smile.jpg" width="304"
height="342">
</body>
</html>
Image
Save as image.html
Attributes
 HTML elements can have attributes
 Attributes provide additional information about an
element
 Attributes are always specified in the start tag
 Attributes come in name/value pairs like: name="value"
The title Attribute
In this example, the <p> element has a title attribute. The value of the
attribute is "About W3Schools":
<!DOCTYPE html>
<html>
<body>
<h1>About W3Schools</h1>
<p title="About W3Schools">
W3Schools is a web developer's site. It provides tutorials and references
covering many aspects of web programming, including HTML, CSS,
JavaScript, XML, SQL, PHP, ASP, etc.
</p>
<p><b>
If you move the mouse over the paragraph above, the title will display as a
tooltip.
</b></p>
</body>
</html>
Attributes
Save as attributes.html
HTML Horizontal Rules
 The <hr> tag creates a horizontal line in an HTML page.
 The hr element can be used to separate content:
<!DOCTYPE html>
<html>
<body>
<p>The hr tag defines a horizontal rule:</p>
<hr>
<p>This is a paragraph.</p>
<hr>
<p>This is a paragraph.</p>
<hr>
<p>This is a paragraph.</p>
</body>
</html>
HTML Horizontal Rules
Save as horizontal.html
HTML Line Breaks
 The HTML <br> element defines a line break.
 Use <br> if you want a line break (a new line) without starting a new
paragraph:
<!DOCTYPE html>
<html>
<body>
<p>This is<br>a para<br>graph with line
breaks</p>
</body>
</html>
HTML Line Breaks
Save as line.html
The HTML <pre> Element
 The HTML <pre> element defines preformatted text.
 The text inside a <pre> element is displayed in a fixed-width font (usually Courier), and
it preserves both spaces and line breaks:
<!DOCTYPE html>
<html>
<body>
<p>The pre tag preserves both spaces and line breaks:</p>
<pre>
My Bonnie lies over the ocean.
My Bonnie lies over the sea.
My Bonnie lies over the ocean.
Oh, bring back my Bonnie to me.
</pre>
</body>
</html>
The HTML <pre> Element
Save as pre.html
HTML Styles
HTML Styles
 Every HTML element has a default style (background
color is white and text color is black).
 Changing the default style of an HTML element, can be
done with the style attribute.
Background Color
This example changes the default background color from
white to light green:
<!DOCTYPE html>
<html>
<body style="background-color:lightgreen">
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Background Color
Save as color.html
Text Color
The color property defines the text color to be used for an
HTML element:
<!DOCTYPE html>
<html>
<body>
<h1 style="color:blue">This is a heading</h1>
<p style="color:red">This is a paragraph.</p>
</body>
</html>
Text Color
Save as text.html
Font
The font-family property defines the font to be used
for an HTML element:
<!DOCTYPE html>
<html>
<body>
<h1 style="font-family:Cooper Black">This is a heading</h1>
<p style="font-family:Lucida Calligraphy">This is a paragraph.</p>
</body>
</html>
Font
Save as font.html
Text Size
The font-size property defines the text size to be used for an HTML
element:
<!DOCTYPE html>
<html>
<body>
<h1 style="font-size:300%">This is a heading</h1>
<p style="font-size:160%">This is a paragraph.</p>
</body>
</html>
Text Size
Save as text_size.html
Text Alignment
The text-align property defines the horizontal text
alignment for an HTML element:
<!DOCTYPE html>
<html>
<body>
<h1 style="text-align:center">Centered heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Text Alignment
Save as alignment.html
HTML Text Formatting
Elements
Formatting Elements
• HTML also defines special elements, for defining text with a
special meaning.
• HTML uses elements like <b> and <i> for formatting output,
like bold or italic text.
• Formatting elements were designed to display special types of
text:
• Bold text
• Important text
• Italic text
• Emphasized text
• Marked text
• Small text
• Deleted text
• Inserted text
• Subscripts
• Superscripts
Bold and Strong Formatting
The HTML <b> element defines bold text, without any extra
importance.
<!DOCTYPE html>
<html>
<body>
<p>This text is normal.</p>
<p><b>This text is bold.</b></p>
</body>
</html>
Strong Formatting
The HTML <strong> element defines strong text, with
added semantic "strong" importance.
<!DOCTYPE html>
<html>
<body>
<p>This text is normal.</p>
<p><strong>This text is strong.</strong></p>
</body>
</html>
Bold and Strong Formatting
Italic Formatting
The HTML <i> element defines italic text, without any extra
importance.
<!DOCTYPE html>
<html>
<body>
<p>This text is normal.</p>
<p><i>This text is italic.</i></p>
</body>
</html>
Emphasized Formatting
The HTML <em> element defines emphasized text, with
added semantic importance.
<!DOCTYPE html>
<html>
<body>
<p>This text is normal.</p>
<p><em>This text is emphasized.</em></p>
</body>
</html>
Italic and Emphasized Formatting
Save as italic.html
Small Formatting
The HTML <small> element defines small text:
<!DOCTYPE html>
<html>
<body>
<h2>HTML <small>Small</small> Formatting</h2>
</body>
</html>
Small Formatting
Save as small.html
Marked Formatting
The HTML <mark> element defines marked or highlighted
text:
<!DOCTYPE html>
<html>
<body>
<h2>HTML <mark>Marked</mark> Formatting</h2>
</body>
</html>
Marked Formatting
Save as marked.html
Deleted Formatting
The HTML <del> element defines deleted (removed) text.
<!DOCTYPE html>
<html>
<body>
<p>The del element represents deleted (removed) text.</p>
<p>My favorite color is <del>blue</del> red.</p>
</body>
</html>
Deleted Formatting
Save as deleted.html
Subscript Formatting
The HTML <sub> element defines subscripted text.
<!DOCTYPE html>
<html>
<body>
<p>This is <sub>subscripted</sub> text.</p>
</body>
</html>
Subscript Formatting
Save as sub.html
Superscript Formatting
The HTML <sup> element defines superscripted text.
<!DOCTYPE html>
<html>
<body>
<p>This is <sup>superscripted</sup> text.</p>
</body>
</html>
Superscript Formatting
Save as sup.html
HTML Layouts
HTML Layouts
Websites often display content in multiple columns (like a
magazine or newspaper)
Layout Methods
There are two methods to do the layout:
Using <div>
Using HTML5
HTML Layout Using <div> Elements
 The <div> element is often used as a layout tool, because
it can easily be positioned with CSS
(Cascading Style Sheets).
 This example uses 4 <div> elements to create a multiple
column layout:
Layout Using <div> Elements
<!DOCTYPE html>
<html>
<head>
<style>
#header {
background-color:black;
color:white;
text-align:center;
padding:5px;
}
Layout Using <div> Elements
#nav {
line-height:30px;
background-color:#eeeeee;
height:300px;
width:100px;
float:left;
padding:5px;
}
#section {
width:350px;
float:left;
padding:10px;
}
Layout Using <div> Elements
#footer {
background-color:black;
color:white;
clear:both;
text-align:center;
padding:5px;
}
</style>
</head>
<body>
Layout Using <div> Elements
<div id="header">
<h1>City Gallery</h1>
</div>
<div id="nav">
London<br>
Paris<br>
Tokyo<br>
</div>
<div id="section">
<h2>London</h2>
<p>
London is the capital city of England. It is the most populous city
in the United Kingdom,
with a metropolitan area of over 13 million inhabitants.
</p>
Layout Using <div> Elements
<p>
Standing on the River Thames, London has been a major
settlement for two millennia,
its history going back to its founding by the Romans, who
named it Londinium.
</p>
</div>
<div id="footer">
Copyright © W3Schools.com
</div>
</body>
</html>
Layout Using <div> Elements
Save as layout1.html
Website Layout Using HTML5
• HTML5 offers new semantic elements that define different
parts of a web page:
• This example uses <header>, <nav>, <section>, and
<footer> to create a multiple column layout:
Layout Using HTML5
<!DOCTYPE html>
<html>
<head>
<style>
header {
background-color:black;
color:white;
text-align:center;
padding:5px;
}
nav {
line-height:30px;
background-color:#eeeeee;
height:300px;
width:100px;
float:left;
padding:5px;
}
Layout Using HTML5
section {
width:350px;
float:left;
padding:10px;
}
footer {
background-color:black;
color:white;
clear:both;
text-align:center;
padding:5px;
}
</style>
</head>
<body>
Layout Using HTML5
<header>
<h1>City Gallery</h1>
</header>
<nav>
London<br>
Paris<br>
Tokyo<br>
</nav>
<section>
<h1>London</h1>
<p>
London is the capital city of England. It is the most populous city
in the United Kingdom,
with a metropolitan area of over 13 million inhabitants.
</p>
Layout Using HTML5
<p>
Standing on the River Thames, London has been a major
settlement for two millennia,
its history going back to its founding by the Romans, who
named it Londinium.
</p>
</section>
<footer>
Copyright © W3Schools.com
</footer>
</body>
</html>
Layout Using HTML5
Save as html5.html

More Related Content

What's hot (20)

HTML 5 Tables and Forms
HTML 5 Tables and FormsHTML 5 Tables and Forms
HTML 5 Tables and Forms
 
1. introduction to html5
1. introduction to html51. introduction to html5
1. introduction to html5
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
 
Html forms
Html formsHtml forms
Html forms
 
HTML Dasar : #9 Tabel
HTML Dasar : #9 TabelHTML Dasar : #9 Tabel
HTML Dasar : #9 Tabel
 
Hushang Gaikwad
Hushang GaikwadHushang Gaikwad
Hushang Gaikwad
 
JS1.pdf
JS1.pdfJS1.pdf
JS1.pdf
 
Javascript
JavascriptJavascript
Javascript
 
JavaScript
JavaScriptJavaScript
JavaScript
 
HTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts BasicsHTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts Basics
 
Html & Css presentation
Html  & Css presentation Html  & Css presentation
Html & Css presentation
 
Alaska
AlaskaAlaska
Alaska
 
HTML
HTMLHTML
HTML
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
HTML and CSS crash course!
HTML and CSS crash course!HTML and CSS crash course!
HTML and CSS crash course!
 
BasicHTML
BasicHTMLBasicHTML
BasicHTML
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introduction
 
Html
HtmlHtml
Html
 
Chapter 13: Colors and Backgrounds
Chapter 13: Colors and BackgroundsChapter 13: Colors and Backgrounds
Chapter 13: Colors and Backgrounds
 

Viewers also liked

Tp1 daiana contreras
Tp1 daiana contrerasTp1 daiana contreras
Tp1 daiana contrerasDAIANABC
 
SimuLAMP_Japanese_1
SimuLAMP_Japanese_1SimuLAMP_Japanese_1
SimuLAMP_Japanese_1Ksaha
 
Aspectos generales de los mapas mentales buzán
Aspectos generales de los mapas mentales buzánAspectos generales de los mapas mentales buzán
Aspectos generales de los mapas mentales buzánJuliana Menendez
 
Managing Strategic Communications in the public sector
Managing Strategic Communications in the public sectorManaging Strategic Communications in the public sector
Managing Strategic Communications in the public sectorRonnie Semley Dip. CIPR, MCIPR
 
Pubbliredazionali
PubbliredazionaliPubbliredazionali
PubbliredazionaliOn Point Pr
 
Daniel introduction
Daniel introductionDaniel introduction
Daniel introductionJared c
 
Consulting Project Proposal
Consulting Project ProposalConsulting Project Proposal
Consulting Project ProposalShreya Rungta
 
4 eso. ciencias sociales. tema 3. la industrializacion
4 eso. ciencias sociales. tema 3. la industrializacion4 eso. ciencias sociales. tema 3. la industrializacion
4 eso. ciencias sociales. tema 3. la industrializacionIván Heredia Urzáiz
 
Разработка стратегии юридического маркетинга
Разработка стратегии юридического маркетингаРазработка стратегии юридического маркетинга
Разработка стратегии юридического маркетингаАнна Засухина
 

Viewers also liked (14)

Tp1 daiana contreras
Tp1 daiana contrerasTp1 daiana contreras
Tp1 daiana contreras
 
SimuLAMP_Japanese_1
SimuLAMP_Japanese_1SimuLAMP_Japanese_1
SimuLAMP_Japanese_1
 
Programa de-trabajo
Programa de-trabajo Programa de-trabajo
Programa de-trabajo
 
Aspectos generales de los mapas mentales buzán
Aspectos generales de los mapas mentales buzánAspectos generales de los mapas mentales buzán
Aspectos generales de los mapas mentales buzán
 
Managing Strategic Communications in the public sector
Managing Strategic Communications in the public sectorManaging Strategic Communications in the public sector
Managing Strategic Communications in the public sector
 
Pubbliredazionali
PubbliredazionaliPubbliredazionali
Pubbliredazionali
 
Daniel introduction
Daniel introductionDaniel introduction
Daniel introduction
 
MaríaJoséBustillos_SlideShare
MaríaJoséBustillos_SlideShareMaríaJoséBustillos_SlideShare
MaríaJoséBustillos_SlideShare
 
El amor
El amorEl amor
El amor
 
Santa rosa de lima
Santa rosa de limaSanta rosa de lima
Santa rosa de lima
 
Pdf informativo.pud
Pdf informativo.pudPdf informativo.pud
Pdf informativo.pud
 
Consulting Project Proposal
Consulting Project ProposalConsulting Project Proposal
Consulting Project Proposal
 
4 eso. ciencias sociales. tema 3. la industrializacion
4 eso. ciencias sociales. tema 3. la industrializacion4 eso. ciencias sociales. tema 3. la industrializacion
4 eso. ciencias sociales. tema 3. la industrializacion
 
Разработка стратегии юридического маркетинга
Разработка стратегии юридического маркетингаРазработка стратегии юридического маркетинга
Разработка стратегии юридического маркетинга
 

Similar to HTML Chapter 6 Introduction to HTML Elements

Basic Html Knowledge for students
Basic Html Knowledge for studentsBasic Html Knowledge for students
Basic Html Knowledge for studentsvethics
 
Html ppt by Fathima faculty Hasanath college for women bangalore
Html ppt by Fathima faculty Hasanath college for women bangaloreHtml ppt by Fathima faculty Hasanath college for women bangalore
Html ppt by Fathima faculty Hasanath college for women bangalorefathima12
 
utsav1.pptxjxnclbshjdcn;kJDucbnsD>NVzljfbmlzl
utsav1.pptxjxnclbshjdcn;kJDucbnsD>NVzljfbmlzlutsav1.pptxjxnclbshjdcn;kJDucbnsD>NVzljfbmlzl
utsav1.pptxjxnclbshjdcn;kJDucbnsD>NVzljfbmlzlutsavsingh265
 
SDP_HTML.pptx
SDP_HTML.pptxSDP_HTML.pptx
SDP_HTML.pptxVani011
 
Html basics-auro skills
Html basics-auro skillsHtml basics-auro skills
Html basics-auro skillsBoneyGawande
 
SEO Training in Noida- Skyinfotech.in
SEO Training in Noida- Skyinfotech.inSEO Training in Noida- Skyinfotech.in
SEO Training in Noida- Skyinfotech.inSky Infotech
 
presentation_web_design_basic_1595487867_382444.pptx
presentation_web_design_basic_1595487867_382444.pptxpresentation_web_design_basic_1595487867_382444.pptx
presentation_web_design_basic_1595487867_382444.pptxssuser3a64ac
 

Similar to HTML Chapter 6 Introduction to HTML Elements (20)

Basic Html Knowledge for students
Basic Html Knowledge for studentsBasic Html Knowledge for students
Basic Html Knowledge for students
 
HTML
HTMLHTML
HTML
 
Html.docx
Html.docxHtml.docx
Html.docx
 
Html ppt by Fathima faculty Hasanath college for women bangalore
Html ppt by Fathima faculty Hasanath college for women bangaloreHtml ppt by Fathima faculty Hasanath college for women bangalore
Html ppt by Fathima faculty Hasanath college for women bangalore
 
TagsL1.pptx
TagsL1.pptxTagsL1.pptx
TagsL1.pptx
 
Html ppt
Html pptHtml ppt
Html ppt
 
utsav1.pptxjxnclbshjdcn;kJDucbnsD>NVzljfbmlzl
utsav1.pptxjxnclbshjdcn;kJDucbnsD>NVzljfbmlzlutsav1.pptxjxnclbshjdcn;kJDucbnsD>NVzljfbmlzl
utsav1.pptxjxnclbshjdcn;kJDucbnsD>NVzljfbmlzl
 
Html (1)
Html (1)Html (1)
Html (1)
 
Web Designing.docx
Web Designing.docxWeb Designing.docx
Web Designing.docx
 
SDP_HTML.pptx
SDP_HTML.pptxSDP_HTML.pptx
SDP_HTML.pptx
 
Html2
Html2Html2
Html2
 
Html basics-auro skills
Html basics-auro skillsHtml basics-auro skills
Html basics-auro skills
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
html.pptx
html.pptxhtml.pptx
html.pptx
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
 
Html full
Html fullHtml full
Html full
 
HTML/HTML5
HTML/HTML5HTML/HTML5
HTML/HTML5
 
SEO Training in Noida- Skyinfotech.in
SEO Training in Noida- Skyinfotech.inSEO Training in Noida- Skyinfotech.in
SEO Training in Noida- Skyinfotech.in
 
presentation_web_design_basic_1595487867_382444.pptx
presentation_web_design_basic_1595487867_382444.pptxpresentation_web_design_basic_1595487867_382444.pptx
presentation_web_design_basic_1595487867_382444.pptx
 
Html 1
Html 1Html 1
Html 1
 

More from home

Hemolytic anaemia
Hemolytic anaemiaHemolytic anaemia
Hemolytic anaemiahome
 
Chapter 5 microsoft excel 2010
Chapter 5 microsoft excel 2010Chapter 5 microsoft excel 2010
Chapter 5 microsoft excel 2010home
 
Chapter 4 microsoft access 2010
Chapter 4 microsoft access 2010Chapter 4 microsoft access 2010
Chapter 4 microsoft access 2010home
 
Microsoft Power Point 2010
Microsoft Power Point 2010Microsoft Power Point 2010
Microsoft Power Point 2010home
 
Wade13 nmr
Wade13 nmrWade13 nmr
Wade13 nmrhome
 
Wade12 ir ms
Wade12 ir msWade12 ir ms
Wade12 ir mshome
 
Sna spectroscopy interpreting ir spectra
Sna spectroscopy interpreting ir spectraSna spectroscopy interpreting ir spectra
Sna spectroscopy interpreting ir spectrahome
 
Sna spectroscopy infrared spectroscopy
Sna spectroscopy infrared spectroscopySna spectroscopy infrared spectroscopy
Sna spectroscopy infrared spectroscopyhome
 
Microsoft Word 2010
Microsoft Word 2010Microsoft Word 2010
Microsoft Word 2010home
 
Chapter 1 computers
Chapter 1 computers Chapter 1 computers
Chapter 1 computers home
 
Sna thin layer chromatography
Sna thin layer chromatographySna thin layer chromatography
Sna thin layer chromatographyhome
 
Sna chromatography column chromatography
Sna chromatography column chromatographySna chromatography column chromatography
Sna chromatography column chromatographyhome
 
Sna hplc
Sna  hplcSna  hplc
Sna hplchome
 

More from home (13)

Hemolytic anaemia
Hemolytic anaemiaHemolytic anaemia
Hemolytic anaemia
 
Chapter 5 microsoft excel 2010
Chapter 5 microsoft excel 2010Chapter 5 microsoft excel 2010
Chapter 5 microsoft excel 2010
 
Chapter 4 microsoft access 2010
Chapter 4 microsoft access 2010Chapter 4 microsoft access 2010
Chapter 4 microsoft access 2010
 
Microsoft Power Point 2010
Microsoft Power Point 2010Microsoft Power Point 2010
Microsoft Power Point 2010
 
Wade13 nmr
Wade13 nmrWade13 nmr
Wade13 nmr
 
Wade12 ir ms
Wade12 ir msWade12 ir ms
Wade12 ir ms
 
Sna spectroscopy interpreting ir spectra
Sna spectroscopy interpreting ir spectraSna spectroscopy interpreting ir spectra
Sna spectroscopy interpreting ir spectra
 
Sna spectroscopy infrared spectroscopy
Sna spectroscopy infrared spectroscopySna spectroscopy infrared spectroscopy
Sna spectroscopy infrared spectroscopy
 
Microsoft Word 2010
Microsoft Word 2010Microsoft Word 2010
Microsoft Word 2010
 
Chapter 1 computers
Chapter 1 computers Chapter 1 computers
Chapter 1 computers
 
Sna thin layer chromatography
Sna thin layer chromatographySna thin layer chromatography
Sna thin layer chromatography
 
Sna chromatography column chromatography
Sna chromatography column chromatographySna chromatography column chromatography
Sna chromatography column chromatography
 
Sna hplc
Sna  hplcSna  hplc
Sna hplc
 

Recently uploaded

Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsAhmed Mohamed
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesŁukasz Chruściel
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024StefanoLambiase
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
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
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanyChristoph Pohl
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...OnePlan Solutions
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Hr365.us smith
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 
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
 
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)jennyeacort
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesPhilip Schwarz
 

Recently uploaded (20)

Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New Features
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
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)
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
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 Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a series
 

HTML Chapter 6 Introduction to HTML Elements

  • 2. Introduction • HTML stands for Hyper Text Markup Language • A markup language is a set of markup tags • HTML documents are described by HTML tags • Each HTML tag describes different document content • The tags are what separate normal text from HTML code.
  • 3. Explanation  The text between <html> and </html> describes an HTML document  The text between <head> and </head> provides information about the document  The text between <title> and </title> provides a title for the document  The text between <body> and </body> describes the visible page content  The text between <h1> and </h1> describes a heading  The text between <p> and </p> describes a paragraph
  • 5. Let’s get start it!  Open notepad.  Type this coding into your notepad. <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html>
  • 8. Heading and Paragraph  HTML headings are defined with the <h1> to <h6> tags.  HTML paragraphs are defined with the <p> tag <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>This is First Heading</h1> <h2>This is Second Heading</h2> <h3>This is Third Heading</h3> <p>This is a paragraph.</p> <p>This is another paragraph.</p> </body> </html>
  • 9. Heading and Paragraph • Save as heading.html
  • 10. HTML Links HTML links are defined with the <a> tag. <html> <body> <a href="http://www.google.com">This is a link</a> </body> </html>
  • 11. HTML Links Save as link.html
  • 12. Image  HTML images are defined with the <img> tag.  The source file (src), alternative text (alt), and size (width and height) are provided as attributes: <html> <body> <img src="smile.jpg" width="304" height="342"> </body> </html>
  • 14. Attributes  HTML elements can have attributes  Attributes provide additional information about an element  Attributes are always specified in the start tag  Attributes come in name/value pairs like: name="value"
  • 15. The title Attribute In this example, the <p> element has a title attribute. The value of the attribute is "About W3Schools": <!DOCTYPE html> <html> <body> <h1>About W3Schools</h1> <p title="About W3Schools"> W3Schools is a web developer's site. It provides tutorials and references covering many aspects of web programming, including HTML, CSS, JavaScript, XML, SQL, PHP, ASP, etc. </p> <p><b> If you move the mouse over the paragraph above, the title will display as a tooltip. </b></p> </body> </html>
  • 17. HTML Horizontal Rules  The <hr> tag creates a horizontal line in an HTML page.  The hr element can be used to separate content: <!DOCTYPE html> <html> <body> <p>The hr tag defines a horizontal rule:</p> <hr> <p>This is a paragraph.</p> <hr> <p>This is a paragraph.</p> <hr> <p>This is a paragraph.</p> </body> </html>
  • 18. HTML Horizontal Rules Save as horizontal.html
  • 19. HTML Line Breaks  The HTML <br> element defines a line break.  Use <br> if you want a line break (a new line) without starting a new paragraph: <!DOCTYPE html> <html> <body> <p>This is<br>a para<br>graph with line breaks</p> </body> </html>
  • 20. HTML Line Breaks Save as line.html
  • 21. The HTML <pre> Element  The HTML <pre> element defines preformatted text.  The text inside a <pre> element is displayed in a fixed-width font (usually Courier), and it preserves both spaces and line breaks: <!DOCTYPE html> <html> <body> <p>The pre tag preserves both spaces and line breaks:</p> <pre> My Bonnie lies over the ocean. My Bonnie lies over the sea. My Bonnie lies over the ocean. Oh, bring back my Bonnie to me. </pre> </body> </html>
  • 22. The HTML <pre> Element Save as pre.html
  • 24. HTML Styles  Every HTML element has a default style (background color is white and text color is black).  Changing the default style of an HTML element, can be done with the style attribute.
  • 25. Background Color This example changes the default background color from white to light green: <!DOCTYPE html> <html> <body style="background-color:lightgreen"> <h1>This is a heading</h1> <p>This is a paragraph.</p> </body> </html>
  • 27. Text Color The color property defines the text color to be used for an HTML element: <!DOCTYPE html> <html> <body> <h1 style="color:blue">This is a heading</h1> <p style="color:red">This is a paragraph.</p> </body> </html>
  • 28. Text Color Save as text.html
  • 29. Font The font-family property defines the font to be used for an HTML element: <!DOCTYPE html> <html> <body> <h1 style="font-family:Cooper Black">This is a heading</h1> <p style="font-family:Lucida Calligraphy">This is a paragraph.</p> </body> </html>
  • 31. Text Size The font-size property defines the text size to be used for an HTML element: <!DOCTYPE html> <html> <body> <h1 style="font-size:300%">This is a heading</h1> <p style="font-size:160%">This is a paragraph.</p> </body> </html>
  • 32. Text Size Save as text_size.html
  • 33. Text Alignment The text-align property defines the horizontal text alignment for an HTML element: <!DOCTYPE html> <html> <body> <h1 style="text-align:center">Centered heading</h1> <p>This is a paragraph.</p> </body> </html>
  • 34. Text Alignment Save as alignment.html
  • 36. Formatting Elements • HTML also defines special elements, for defining text with a special meaning. • HTML uses elements like <b> and <i> for formatting output, like bold or italic text. • Formatting elements were designed to display special types of text: • Bold text • Important text • Italic text • Emphasized text • Marked text • Small text • Deleted text • Inserted text • Subscripts • Superscripts
  • 37. Bold and Strong Formatting The HTML <b> element defines bold text, without any extra importance. <!DOCTYPE html> <html> <body> <p>This text is normal.</p> <p><b>This text is bold.</b></p> </body> </html>
  • 38. Strong Formatting The HTML <strong> element defines strong text, with added semantic "strong" importance. <!DOCTYPE html> <html> <body> <p>This text is normal.</p> <p><strong>This text is strong.</strong></p> </body> </html>
  • 39. Bold and Strong Formatting
  • 40. Italic Formatting The HTML <i> element defines italic text, without any extra importance. <!DOCTYPE html> <html> <body> <p>This text is normal.</p> <p><i>This text is italic.</i></p> </body> </html>
  • 41. Emphasized Formatting The HTML <em> element defines emphasized text, with added semantic importance. <!DOCTYPE html> <html> <body> <p>This text is normal.</p> <p><em>This text is emphasized.</em></p> </body> </html>
  • 42. Italic and Emphasized Formatting Save as italic.html
  • 43. Small Formatting The HTML <small> element defines small text: <!DOCTYPE html> <html> <body> <h2>HTML <small>Small</small> Formatting</h2> </body> </html>
  • 45. Marked Formatting The HTML <mark> element defines marked or highlighted text: <!DOCTYPE html> <html> <body> <h2>HTML <mark>Marked</mark> Formatting</h2> </body> </html>
  • 47. Deleted Formatting The HTML <del> element defines deleted (removed) text. <!DOCTYPE html> <html> <body> <p>The del element represents deleted (removed) text.</p> <p>My favorite color is <del>blue</del> red.</p> </body> </html>
  • 49. Subscript Formatting The HTML <sub> element defines subscripted text. <!DOCTYPE html> <html> <body> <p>This is <sub>subscripted</sub> text.</p> </body> </html>
  • 51. Superscript Formatting The HTML <sup> element defines superscripted text. <!DOCTYPE html> <html> <body> <p>This is <sup>superscripted</sup> text.</p> </body> </html>
  • 54. HTML Layouts Websites often display content in multiple columns (like a magazine or newspaper)
  • 55. Layout Methods There are two methods to do the layout: Using <div> Using HTML5
  • 56. HTML Layout Using <div> Elements  The <div> element is often used as a layout tool, because it can easily be positioned with CSS (Cascading Style Sheets).  This example uses 4 <div> elements to create a multiple column layout:
  • 57.
  • 58. Layout Using <div> Elements <!DOCTYPE html> <html> <head> <style> #header { background-color:black; color:white; text-align:center; padding:5px; }
  • 59. Layout Using <div> Elements #nav { line-height:30px; background-color:#eeeeee; height:300px; width:100px; float:left; padding:5px; } #section { width:350px; float:left; padding:10px; }
  • 60. Layout Using <div> Elements #footer { background-color:black; color:white; clear:both; text-align:center; padding:5px; } </style> </head> <body>
  • 61. Layout Using <div> Elements <div id="header"> <h1>City Gallery</h1> </div> <div id="nav"> London<br> Paris<br> Tokyo<br> </div> <div id="section"> <h2>London</h2> <p> London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants. </p>
  • 62. Layout Using <div> Elements <p> Standing on the River Thames, London has been a major settlement for two millennia, its history going back to its founding by the Romans, who named it Londinium. </p> </div> <div id="footer"> Copyright © W3Schools.com </div> </body> </html>
  • 63. Layout Using <div> Elements Save as layout1.html
  • 64. Website Layout Using HTML5 • HTML5 offers new semantic elements that define different parts of a web page: • This example uses <header>, <nav>, <section>, and <footer> to create a multiple column layout:
  • 65.
  • 66. Layout Using HTML5 <!DOCTYPE html> <html> <head> <style> header { background-color:black; color:white; text-align:center; padding:5px; } nav { line-height:30px; background-color:#eeeeee; height:300px; width:100px; float:left; padding:5px; }
  • 67. Layout Using HTML5 section { width:350px; float:left; padding:10px; } footer { background-color:black; color:white; clear:both; text-align:center; padding:5px; } </style> </head> <body>
  • 68. Layout Using HTML5 <header> <h1>City Gallery</h1> </header> <nav> London<br> Paris<br> Tokyo<br> </nav> <section> <h1>London</h1> <p> London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants. </p>
  • 69. Layout Using HTML5 <p> Standing on the River Thames, London has been a major settlement for two millennia, its history going back to its founding by the Romans, who named it Londinium. </p> </section> <footer> Copyright © W3Schools.com </footer> </body> </html>
  • 70. Layout Using HTML5 Save as html5.html