SlideShare a Scribd company logo
HTML
Lesson Three – Understanding The Basic Tags




              http://www.htmltutorials.ca/lesson3.htm
HTML TAGS
• These tags are more accurately called
  ELEMENTS and you should think of these
  elements as describing the meaning of the
  text they contain, rather than how the
  enclosed text should be displayed.
• To tell the browser that something is a tag,
  you simply place "less than" and "greater
  than" symbols around them.
• The LESS THAN symbol is "<" and the GREATER THAN
  symbol is ">".
• These symbols are also called "Angle Brackets".
                 http://www.htmltutorials.ca/lesson3.htm
<BR>, <P> and <HR> TAGS
• <BR>
  – <BR> tells your browser to go to the beginning of
    the next line.
  – BR stands for line BReak.
  – <BR> acts in the same way as the ENTER key on
    your keyboard.




                 http://www.htmltutorials.ca/lesson3.htm
• <P>
  – <P> for Paragraph tells your browser to insert a
    blank or empty line and then begin a new line (a
    new paragraph).
  – <BR> tells the browser when a line has ended
    while…
  – <P> tells the browser to leave a blank line and
    begin a new paragraph.


                 http://www.htmltutorials.ca/lesson3.htm
• <HR>
  – <HR> puts a line across the page.
  – HR stands for Horizontal Rule.
  – The two lines you see below were put there with
    <HR> tags.




                 http://www.htmltutorials.ca/lesson3.htm
<HTML> and </HTML> tags
• Every HTML document should first be
  declared that it is in fact an HTML document.
• <HTML> is the beginning tag and
• </HTML> is the ending tag.
• HTML is called a container element.




                http://www.htmltutorials.ca/lesson3.htm
CORRECT USE OF TAGS
• An element that has an opening and closing
  tag is referred to as a container element
  because anything contained between these
  tags are affected by the element.
• Closing Tags cannot be placed just anywhere.
• Use the "Last In = First Out" principle or
  "LIFO".
• That is, the "Last" tag "In" must be the "First"
  tag "Out".
• Example
  – <tag1><tag2> statements </tag2></tag1><HTML>
                 http://www.htmltutorials.ca/lesson3.htm
<HTML>
  <HEAD>
      <TITLE>WEB PAGE DESIGN - BASIC TAGS</TITLE>
  </HEAD>
   <BODY>
     Hi, my name is John Gilson.<BR>
     This is my first attempt at a Web page.<HR>
     Here is a riddle for you.
     <P>Why did the lobster blush?<HR>
     Because it saw the salad dressing.<BR><BR><HR>
     </BODY>
</HTML>

                 http://www.htmltutorials.ca/lesson3.htm
<HEAD> and </HEAD> tags
• Next comes the HEAD element which, like the
  HTML element, also has an opening and
  closing tag.
• Each web page must have the HEAD element.
• Statements (or tags) that give information to a
  person visiting your website, or information
  such as those needed for a Search Engine are
  placed between the <HEAD> and </HEAD>
  tags.

                http://www.htmltutorials.ca/lesson3.htm
<HEAD> and </HEAD> tags
• Thus the HEAD part of a document provides
  information about the document. You do not
  see this information displayed in your browser.
• the latest web standard (XHTML) demands
  that it be included.




                http://www.htmltutorials.ca/lesson3.htm
<TITLE> and </TITLE> tags
• One of the statements that must be included
  between the <HEAD> and </HEAD> tags is the
  TITLE of your web page.
• The TITLE of your web page must occur
  between the <TITLE> and </TITLE> tags and
  you are only allowed one TITLE element per
  page.
• Most search engines also use the title in
  search engine results.

               http://www.htmltutorials.ca/lesson3.htm
<BODY> and </BODY> tags
• It contains all the text and tags.
• It is the part that will be displayed on the
  browser screen.
• <BODY> tells your browser that what follows is
  to be the body of the Web page and </BODY>
  tells the browser that the body part of the
  page has ended.


                http://www.htmltutorials.ca/lesson3.htm
Exercise
• Problem 1: Is the following example a correct
  use of tags? The answer is given at the end of
  this lesson.

<tag1><tag2> blah, blah, blah </tag2>
   <tag3>
       blah blah blah
               <tag4> blah, blah, blah</tag4></tag3>
                      blah blah blah </tag1>

                     http://www.htmltutorials.ca/lesson3.htm
Exercises
• Problem 2: What does HR stand for in <HR>
• Problem 3: Do all tags require a beginning and
  an ending tag?
• Problem 4: Must tags be written in capital
  (upper case) letters?




                http://www.htmltutorials.ca/lesson3.htm
Answers
1. Yes. All tags are terminated in the reverse order
   to the way in which they were activated. These
   tags satisfy the principle of "LIFO".
2. Horizontal Rule.
3. No. In HTML, <BR>, <P> and <HR> are three
   examples that do not require an ending tag.
   They are also known as "stand alone tags".
   Actually, <P> does have an optional closing tag
   which is </P>. This closing tag is discussed in the
   next lesson.
                  http://www.htmltutorials.ca/lesson3.htm
• No. You can write in lower case letters if you
  want to. HTML is not case sensitive. We use
  upper case letters so that I can easily and
  quickly identify tags from text when working
  with my web pages. Having said that, when
  HTML 4.0 was introduced, the World Wide
  Web Consortium (W3C) recommended that
  only lower case letters be used. As stated in
  Lesson 1, the latest web standard is XHTML.
                 http://www.htmltutorials.ca/lesson3.htm

More Related Content

PPT
Basics tags for HTML
PDF
With HTML you can create your own Web site.pdf
PPTX
PPTX
Learn HTML Easier
DOC
Html, xml and java script
PPTX
HTML Introduction
Basics tags for HTML
With HTML you can create your own Web site.pdf
Learn HTML Easier
Html, xml and java script
HTML Introduction

Similar to Lesson 3 understanding the basic tags updated (20)

PPTX
Html tags
PPTX
Introduction to HTML
PDF
PPT
Internship HTML_Day-1 for beggineers.ppt
PDF
Unit 2 HTML.pdf related to basic HTML cmd
PPTX
Grade 6-Hyper Text Markup Language .pptx
DOC
Handout1 intro to html
PPTX
HTML_HEADER PART TAGS .pptx
PPT
PPT
introduction-to-html hyper text markup .ppt
DOC
Learn html from www
PPTX
Session no 1
PPTX
Learn html Basics
PPT
introduction to HTML. How to learn HTML coding
PPT
Html ppt computer
PPTX
learnhtmlbyvipuladissanayake-170516061515 (1).pptx
PPTX
HTML-INTRO.pptx
PPT
introdution-to-html (1).ppt
PPT
introdution-to-html.ppt
Html tags
Introduction to HTML
Internship HTML_Day-1 for beggineers.ppt
Unit 2 HTML.pdf related to basic HTML cmd
Grade 6-Hyper Text Markup Language .pptx
Handout1 intro to html
HTML_HEADER PART TAGS .pptx
introduction-to-html hyper text markup .ppt
Learn html from www
Session no 1
Learn html Basics
introduction to HTML. How to learn HTML coding
Html ppt computer
learnhtmlbyvipuladissanayake-170516061515 (1).pptx
HTML-INTRO.pptx
introdution-to-html (1).ppt
introdution-to-html.ppt
Ad

More from patrick arellano (6)

PPTX
Lesson 6 creating links
PPTX
Lesson 5 indenting and creating spaces
PPTX
Lesson 4 tags that affect your text
PPTX
Lesson 1 introduction
PPT
Markets Are Conversation
PPT
Democritus
Lesson 6 creating links
Lesson 5 indenting and creating spaces
Lesson 4 tags that affect your text
Lesson 1 introduction
Markets Are Conversation
Democritus
Ad

Recently uploaded (20)

PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
A Presentation on Artificial Intelligence
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
sap open course for s4hana steps from ECC to s4
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Electronic commerce courselecture one. Pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Cloud computing and distributed systems.
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Network Security Unit 5.pdf for BCA BBA.
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
A Presentation on Artificial Intelligence
Spectral efficient network and resource selection model in 5G networks
sap open course for s4hana steps from ECC to s4
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Electronic commerce courselecture one. Pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
MIND Revenue Release Quarter 2 2025 Press Release
Unlocking AI with Model Context Protocol (MCP)
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
The Rise and Fall of 3GPP – Time for a Sabbatical?
Advanced methodologies resolving dimensionality complications for autism neur...
Chapter 3 Spatial Domain Image Processing.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Big Data Technologies - Introduction.pptx
Cloud computing and distributed systems.
The AUB Centre for AI in Media Proposal.docx
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Network Security Unit 5.pdf for BCA BBA.

Lesson 3 understanding the basic tags updated

  • 1. HTML Lesson Three – Understanding The Basic Tags http://www.htmltutorials.ca/lesson3.htm
  • 2. HTML TAGS • These tags are more accurately called ELEMENTS and you should think of these elements as describing the meaning of the text they contain, rather than how the enclosed text should be displayed. • To tell the browser that something is a tag, you simply place "less than" and "greater than" symbols around them. • The LESS THAN symbol is "<" and the GREATER THAN symbol is ">". • These symbols are also called "Angle Brackets". http://www.htmltutorials.ca/lesson3.htm
  • 3. <BR>, <P> and <HR> TAGS • <BR> – <BR> tells your browser to go to the beginning of the next line. – BR stands for line BReak. – <BR> acts in the same way as the ENTER key on your keyboard. http://www.htmltutorials.ca/lesson3.htm
  • 4. • <P> – <P> for Paragraph tells your browser to insert a blank or empty line and then begin a new line (a new paragraph). – <BR> tells the browser when a line has ended while… – <P> tells the browser to leave a blank line and begin a new paragraph. http://www.htmltutorials.ca/lesson3.htm
  • 5. • <HR> – <HR> puts a line across the page. – HR stands for Horizontal Rule. – The two lines you see below were put there with <HR> tags. http://www.htmltutorials.ca/lesson3.htm
  • 6. <HTML> and </HTML> tags • Every HTML document should first be declared that it is in fact an HTML document. • <HTML> is the beginning tag and • </HTML> is the ending tag. • HTML is called a container element. http://www.htmltutorials.ca/lesson3.htm
  • 7. CORRECT USE OF TAGS • An element that has an opening and closing tag is referred to as a container element because anything contained between these tags are affected by the element. • Closing Tags cannot be placed just anywhere. • Use the "Last In = First Out" principle or "LIFO". • That is, the "Last" tag "In" must be the "First" tag "Out". • Example – <tag1><tag2> statements </tag2></tag1><HTML> http://www.htmltutorials.ca/lesson3.htm
  • 8. <HTML> <HEAD> <TITLE>WEB PAGE DESIGN - BASIC TAGS</TITLE> </HEAD> <BODY> Hi, my name is John Gilson.<BR> This is my first attempt at a Web page.<HR> Here is a riddle for you. <P>Why did the lobster blush?<HR> Because it saw the salad dressing.<BR><BR><HR> </BODY> </HTML> http://www.htmltutorials.ca/lesson3.htm
  • 9. <HEAD> and </HEAD> tags • Next comes the HEAD element which, like the HTML element, also has an opening and closing tag. • Each web page must have the HEAD element. • Statements (or tags) that give information to a person visiting your website, or information such as those needed for a Search Engine are placed between the <HEAD> and </HEAD> tags. http://www.htmltutorials.ca/lesson3.htm
  • 10. <HEAD> and </HEAD> tags • Thus the HEAD part of a document provides information about the document. You do not see this information displayed in your browser. • the latest web standard (XHTML) demands that it be included. http://www.htmltutorials.ca/lesson3.htm
  • 11. <TITLE> and </TITLE> tags • One of the statements that must be included between the <HEAD> and </HEAD> tags is the TITLE of your web page. • The TITLE of your web page must occur between the <TITLE> and </TITLE> tags and you are only allowed one TITLE element per page. • Most search engines also use the title in search engine results. http://www.htmltutorials.ca/lesson3.htm
  • 12. <BODY> and </BODY> tags • It contains all the text and tags. • It is the part that will be displayed on the browser screen. • <BODY> tells your browser that what follows is to be the body of the Web page and </BODY> tells the browser that the body part of the page has ended. http://www.htmltutorials.ca/lesson3.htm
  • 13. Exercise • Problem 1: Is the following example a correct use of tags? The answer is given at the end of this lesson. <tag1><tag2> blah, blah, blah </tag2> <tag3> blah blah blah <tag4> blah, blah, blah</tag4></tag3> blah blah blah </tag1> http://www.htmltutorials.ca/lesson3.htm
  • 14. Exercises • Problem 2: What does HR stand for in <HR> • Problem 3: Do all tags require a beginning and an ending tag? • Problem 4: Must tags be written in capital (upper case) letters? http://www.htmltutorials.ca/lesson3.htm
  • 15. Answers 1. Yes. All tags are terminated in the reverse order to the way in which they were activated. These tags satisfy the principle of "LIFO". 2. Horizontal Rule. 3. No. In HTML, <BR>, <P> and <HR> are three examples that do not require an ending tag. They are also known as "stand alone tags". Actually, <P> does have an optional closing tag which is </P>. This closing tag is discussed in the next lesson. http://www.htmltutorials.ca/lesson3.htm
  • 16. • No. You can write in lower case letters if you want to. HTML is not case sensitive. We use upper case letters so that I can easily and quickly identify tags from text when working with my web pages. Having said that, when HTML 4.0 was introduced, the World Wide Web Consortium (W3C) recommended that only lower case letters be used. As stated in Lesson 1, the latest web standard is XHTML. http://www.htmltutorials.ca/lesson3.htm