SlideShare a Scribd company logo
HTML
AGENDA
Introduction
Building confidence
Engaging the audience
Visual aids
Final tips & takeaways
2
WHAT IS HTML?
• HTML stands for Hyper Text Markup Language
• HTML is the standard markup language for creating Web pages
• HTML describes the structure of a Web page
• HTML 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.
3
4
• 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
5
A SIMPLE HTML DOCUMENT:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
6
HTML ELEMENTS:
• The HTML element is everything from the start tag to the end tag:
• <tagname>Content goes here...</tagname>
• Examples of some HTML elements:
<h1>My First Heading</h1>
<p>My first paragraph.</p>
7
HTML ATTRIBUTES:
• All HTML elements can have attributes
• Attributes provide additional information about elements
• Attributes are always specified in the start tag
• Attributes usually come in name/value pairs like:
name="value"
8
• The href Attribute
• The <a> tag defines a hyperlink. The href attribute specifies
the URL of the page the link goes to:
• Example
• <a href="https://www.w3schools.com">Visit W3Schools</a>
9
• The src Attribute
• The <img> tag is used to embed an image in an HTML page.
The src attribute specifies the path to the image to be
displayed:
• Example
• <img src="img_girl.jpg">
10
There are two ways to specify the URL in the src attribute:
• Absolute url:
• All the details required to find a resource are in an absolute URL.
• Example:
• <a href = "http://www.tutorialspoint.com/xyz.html">
• Relative url:
• An absolute URL is the starting point for a relative URL, which locates
a resource.
• A relative URL usually contains the path and, if present, the resource,
• it does not include the scheme or server.
• Example:
• <a href = "/xyz.html">
11
The width and height Attributes:
• The <img> tag should also contain the width and height
attributes, which specify the width and height of the image (in
pixels):
• Example
• <img src="img_girl.jpg" width="500" height="600">
12
The alt Attribute:
• The required alt attribute for the <img> tag specifies an
alternate text for an image, if the image for some reason
cannot be displayed. This can be due to a slow connection, or
an error in the src attribute, or if the user uses a screen
reader.
• Example
• <img src="img_girl.jpg" alt="Girl with a jacket">
13
The style Attribute:
• The style attribute is used to add styles to an element, such as
color, font, size, and more.
• Example
• <p style="color:red;">This is a red paragraph.</p>
14
HTML HEADINGS:
• HTML headings are defined with the <h1> to <h6> tags.
• <h1> defines the most important heading. <h6> defines the least
important heading.
• Example:
• <h1>Heading 1</h1>
• <h2>Heading 2</h2>
• <h3>Heading 3</h3>
• <h4>Heading 4</h4>
• <h5>Heading 5</h5>
• <h6>Heading 6</h6>
• <h1 style="font-size:60px;">Heading</h1>
15
HTML Paragraphs:
• The HTML <p> element defines a paragraph.
• A paragraph always starts on a new line, and browsers
automatically add some white space (a margin) before and
after a paragraph.
• Example
• <p>This is a paragraph.</p>
• <p>This is another paragraph.</p>
16
<!DOCTYPE html>
<html>
<body>
<h1>This is heading 1</h1>
<p>This is some text.</p>
<hr>
<h2>This is heading 2</h2>
<p>This is some other text.</p>
<hr>
<h2>This is heading 2</h2>
<p>This is some other text.</p>
</body>
</html>

More Related Content

PPTX
htmlbcjdkkdkcjcjcjfkjccjckcjcjc_doc1.pptx
PPTX
PPTX
DOCX
Lesson A.1 - Introduction to Web Development.docx
DOCX
Computer application html
PPTX
WEBSITE DEVELOPMENT,HTML is the standard markup language for creating Web pag...
PPTX
Introduction to HTML.pptx
PPTX
HTML.pptx
htmlbcjdkkdkcjcjcjfkjccjckcjcjc_doc1.pptx
Lesson A.1 - Introduction to Web Development.docx
Computer application html
WEBSITE DEVELOPMENT,HTML is the standard markup language for creating Web pag...
Introduction to HTML.pptx
HTML.pptx

Similar to website-development Hyper Text Markup Language.pptx (20)

PPTX
Best Option to learn start here HTML.pptx
PPTX
Html Workshop
PPTX
Html and Css Student Education hub point.pptx
PPTX
Day 2 - Web_Development [basic HTML tags and their functionalities].pptx
DOCX
HTML Notes And Some Attributes
PPTX
How to learn HTML in 10 Days
PPTX
Appdev appdev appdev app devAPPDEV 1.2.pptx
PPTX
html (1) (1).pptx for all students to learn
PPTX
html.pptx class notes to prepare html completly
PPTX
Introduction to HTML Communication Skills
PPT
html
PPTX
Learn html Basics
PPT
Web forms and html (lect 1)
PPT
PPTX
learnhtmlbyvipuladissanayake-170516061515 (1).pptx
PPTX
Lab1_HTML.pptx
PPTX
HTML Presentation
PPTX
PPTX
Web Application Programming with HTML 5 part 1
Best Option to learn start here HTML.pptx
Html Workshop
Html and Css Student Education hub point.pptx
Day 2 - Web_Development [basic HTML tags and their functionalities].pptx
HTML Notes And Some Attributes
How to learn HTML in 10 Days
Appdev appdev appdev app devAPPDEV 1.2.pptx
html (1) (1).pptx for all students to learn
html.pptx class notes to prepare html completly
Introduction to HTML Communication Skills
html
Learn html Basics
Web forms and html (lect 1)
learnhtmlbyvipuladissanayake-170516061515 (1).pptx
Lab1_HTML.pptx
HTML Presentation
Web Application Programming with HTML 5 part 1
Ad

Recently uploaded (20)

PPTX
web development for engineering and engineering
PPTX
Sustainable Sites - Green Building Construction
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
Fluid Mechanics, Module 3: Basics of Fluid Mechanics
PDF
composite construction of structures.pdf
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
additive manufacturing of ss316l using mig welding
PDF
Digital Logic Computer Design lecture notes
PPT
Drone Technology Electronics components_1
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
Unit 5 BSP.pptxytrrftyyydfyujfttyczcgvcd
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
Welding lecture in detail for understanding
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
web development for engineering and engineering
Sustainable Sites - Green Building Construction
CYBER-CRIMES AND SECURITY A guide to understanding
Fluid Mechanics, Module 3: Basics of Fluid Mechanics
composite construction of structures.pdf
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Model Code of Practice - Construction Work - 21102022 .pdf
additive manufacturing of ss316l using mig welding
Digital Logic Computer Design lecture notes
Drone Technology Electronics components_1
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Unit 5 BSP.pptxytrrftyyydfyujfttyczcgvcd
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Welding lecture in detail for understanding
Foundation to blockchain - A guide to Blockchain Tech
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Ad

website-development Hyper Text Markup Language.pptx

  • 2. AGENDA Introduction Building confidence Engaging the audience Visual aids Final tips & takeaways 2
  • 3. WHAT IS HTML? • HTML stands for Hyper Text Markup Language • HTML is the standard markup language for creating Web pages • HTML describes the structure of a Web page • HTML 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. 3
  • 4. 4 • 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
  • 5. 5 A SIMPLE HTML DOCUMENT: <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html>
  • 6. 6 HTML ELEMENTS: • The HTML element is everything from the start tag to the end tag: • <tagname>Content goes here...</tagname> • Examples of some HTML elements: <h1>My First Heading</h1> <p>My first paragraph.</p>
  • 7. 7 HTML ATTRIBUTES: • All HTML elements can have attributes • Attributes provide additional information about elements • Attributes are always specified in the start tag • Attributes usually come in name/value pairs like: name="value"
  • 8. 8 • The href Attribute • The <a> tag defines a hyperlink. The href attribute specifies the URL of the page the link goes to: • Example • <a href="https://www.w3schools.com">Visit W3Schools</a>
  • 9. 9 • The src Attribute • The <img> tag is used to embed an image in an HTML page. The src attribute specifies the path to the image to be displayed: • Example • <img src="img_girl.jpg">
  • 10. 10 There are two ways to specify the URL in the src attribute: • Absolute url: • All the details required to find a resource are in an absolute URL. • Example: • <a href = "http://www.tutorialspoint.com/xyz.html"> • Relative url: • An absolute URL is the starting point for a relative URL, which locates a resource. • A relative URL usually contains the path and, if present, the resource, • it does not include the scheme or server. • Example: • <a href = "/xyz.html">
  • 11. 11 The width and height Attributes: • The <img> tag should also contain the width and height attributes, which specify the width and height of the image (in pixels): • Example • <img src="img_girl.jpg" width="500" height="600">
  • 12. 12 The alt Attribute: • The required alt attribute for the <img> tag specifies an alternate text for an image, if the image for some reason cannot be displayed. This can be due to a slow connection, or an error in the src attribute, or if the user uses a screen reader. • Example • <img src="img_girl.jpg" alt="Girl with a jacket">
  • 13. 13 The style Attribute: • The style attribute is used to add styles to an element, such as color, font, size, and more. • Example • <p style="color:red;">This is a red paragraph.</p>
  • 14. 14 HTML HEADINGS: • HTML headings are defined with the <h1> to <h6> tags. • <h1> defines the most important heading. <h6> defines the least important heading. • Example: • <h1>Heading 1</h1> • <h2>Heading 2</h2> • <h3>Heading 3</h3> • <h4>Heading 4</h4> • <h5>Heading 5</h5> • <h6>Heading 6</h6> • <h1 style="font-size:60px;">Heading</h1>
  • 15. 15 HTML Paragraphs: • The HTML <p> element defines a paragraph. • A paragraph always starts on a new line, and browsers automatically add some white space (a margin) before and after a paragraph. • Example • <p>This is a paragraph.</p> • <p>This is another paragraph.</p>
  • 16. 16 <!DOCTYPE html> <html> <body> <h1>This is heading 1</h1> <p>This is some text.</p> <hr> <h2>This is heading 2</h2> <p>This is some other text.</p> <hr> <h2>This is heading 2</h2> <p>This is some other text.</p> </body> </html>