SlideShare a Scribd company logo
LEARN HTML
BASICS EASIER
Presented by
M.Karthick
HTML INTRODUCTION
What is HTML?
 HTML stands for Hyper Text Markup Language.
 HTML is not a programming language, it is a markup language.
 A markup language is a collection of markup tags.
 HTML uses markup tags to describe Web pages.
What are Tags?
 HTML markup tags are usually called HTML tags or just tags.
 HTML tags are keywords surrounded by angle brackets like <html>.
 HTML tags normally come in pairs, like <b> and </b>.
 Start and end tags are also called opening tags and closing tags.
HTML BASICS
What You Need?
 You don’t need an HTML editor.
 You don’t need a Web server.
 You don’t need a Web site.
 It’s simple to get started writing HTML.
HTML Editors
 We can use a plain text editor (like Notepad) to edit HTML.
File Extensions
 We can use either the .htm or the .html extension.
 But, it is perfectly safe to use .html.
HTML FUNDAMENTALS
HTML Headings
 HTML headings are defined with the <h1> to <h6> tags.
 The lower the number, the larger the heading size.
Example
<html>
<body>
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>
</body>
</html>
Output
Output
HTML Paragraphs
 HTML paragraphs are defined with the <p> tag.
Example
<html>
<body>
<p>This is paragraph 1</p>
<p>This is paragraph 2</p>
<p>This is paragraph 3</p>
</body>
</html>
NOTE: Most browsers automatically add an empty line before and after paragraphs.
Output
HTML Links
 HTML links are defined with the <a> tag.
 If you click the underlined text it takes you to the link given in the <a> tag.
Example
<html>
<body>
<a href="https://www.google.co.in">GOOGLE</a>
</body>
</html>
HTML Images
 HTML images are defined with the <img> tag.
 The <img> tag tells the browser where to find the image file and what size to display it.
Example
<html>
<body>
<img src="C:/Users/Administrator/Desktop/Q.jpg" width="100" height="100"/> </img>
</body>
</html>
Output
HTML ELEMENTS
HTML Elements
 An HTML element is everything between the opening tag and the ending tag.
HTML Element Syntax
 An HTML element starts with a opening tag.
 An HTML element ends with a closing tag.
 The <p> element is among the most common of elements.
 The <body> element defines the body of the HTML document.
 The <html> element defines the entire HTML document.
OPENING TAG ELEMENT CONTENT CLOSING TAG
<p> This is Paragraph </p>
<h1> This is Heading </h1>
Empty HTML Elements
 HTML elements without content are called empty elements.
 <br> is an empty element without a closing tag.
 It defines a line break.
 Adding a slash to the end of start tag, like <br/>, is the proper way of closing empty elements.
Use Lowercase Tags
 HTML tags are not case sensitive.
 <P> means the same as <p>.
 But it’s recommended to use lowercase tags.
HTML Rules (Lines)
 The <hr/> tag is used to create a horizontal rule (line).
 The lines are often used to separate sections of a document.
Example
<html>
<body>
<p>This is paragraph 1</p>
<hr />
<p>This is paragraph 2</p>
<hr />
<p>This is paragraph 3</p>
</body>
</html>
Output
Output
HTML Comments
 Comments can be inserted in the HTML code to make it more readable and understandable.
 Comments are ignored by the browser and are not displayed.
Example
<html>
<body>
<p>This is paragraph 1</p> <!-- Heading 1 -->
<p>This is paragraph 2</p> <!-- Heading 2 -->
<p>This is paragraph 3</p> <!-- Heading 3 -->
</body>
</html>
NOTE: There is an exclamation point after the opening bracket, but not before the closing bracket.
Output
HTML Line Breaks
 Use the <br /> tag if you want a line break (a new line) without starting a new paragraph.
 The <br /> element is an empty HTML element. It has no end tag
Example
<html>
<body>
<p>This is <br /> a paragraph 1</p>
</body>
</html>
TEXT FORMATTING TAGS
Text Formatting Tags
 HTML uses tags like <b> and <i> to modify the appearance of text, like bold or italic.
 These HTML tags are called formatting tags.
TAG DESCRIPTION
<b> Defines bold text
<big> Defines big text
<em> Defines emphasized text
<i> Defines italic text
<small> Defines small text
<strong> Defines strong text
<sub> Defines subscripted text
<sup> Defines superscripted text
<ins> Defines inserted text
<del> Defines deleted text
Text Formatting Tags
(Examples)
<!DOCTYPE html>
<html>
<head>
<title>HTML TEXT FORMATTING TAGS</title>
</head>
<body>
<b>Defines bold text</b> <br />
<big>Defines big text</big> <br />
<em>Defines emphasized text</em> <br />
<i>Defines italic text</i> <br />
<small>Defines small text</small> <br />
<strong>Defines strong text</strong> <br />
<sub>Defines subscripted text</sub> <br />
<sup>Defines superscripted text</sup> <br />
<ins>Defines inserted text</ins> <br />
<del>Defines deleted text</del> <br />
</body>
</html>
(Outputs)
HTML LISTS
TAG LISTS
<ul> Unordered List
<ol> Ordered List
<dl> Definition List
Nested List
Types of HTML Lists
 An unordered list starts with the <ul> tag. Each list item starts with the <li> tag.
 An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.
 A definition list starts with a <dl> tag (definition list).
Each term starts with a <dt> tag (definition term).
Each description starts with a <dd> tag (definition description).
Unordered List
(Examples)
<!DOCTYPE html>
<title>HTML UNORDERED LIST</title>
<body>
<h4>Disc bullets list:</h4>
<ul type="disc">
<li>List 1</li>
<li>List 2</li>
<li>List 3</li> </ul>
<h4>Circle bullets list:</h4>
<ul type="circle">
<li>List 1</li>
<li>List 2</li>
<li>List 3</li> </ul>
<h4>Square bullets list:</h4>
<ul type="square">
<li>List 1</li>
<li>List 2</li>
<li>List 3</li> </ul>
</body>
</html>
(Outputs)
Ordered List
(Examples 1)
<!DOCTYPE html>
<title>HTML UNORDERED LIST</title>
<body>
<html>
<title>HTML ORDERED LIST</title>
<body>
<h4>An Ordered List:</h4>
<ol>
<li>List 1</li>
<li>List 2</li>
<li>List 3</li>
</ol>
</body>
</html></body>
</html>
(Outputs)
Ordered List
(Examples 2)
<html>
<body>
<h4>Letters list:</h4>
<ol type="A">
<li>List 1</li>
<li>List 2</li>
<li>List 3</li>
</ol>
<h4>Lowercase letters list:</h4>
<ol type="a">
<li>List 1</li>
<li>List 2</li>
<li>List 3</li>
</ol>
</body>
</html>
(Outputs)
Ordered List
(Examples 3)
<html>
<body>
<h4>Roman numbers list:</h4>
<ol type="I">
<li>List 1</li>
<li>List 2</li>
<li>List 3</li>
</ol>
<h4>Lowercase Roman numbers list:</h4>
<ol type="i">
<li>List 1</li>
<li>List 2</li>
<li>List 3</li>
</ol>
</body>
</html>
(Outputs)
Definition List
(Examples)
<html>
<body>
<html>
<body>
<h4>A Definition List:</h4>
<dl>
<dt>Coffee</dt>
<dd>Black hot drink</dd>
<dt>Milk</dt>
<dd>White cold drink</dd>
</dl>
</body>
</html>
</body>
</html>
(Outputs)
THANK YOU

More Related Content

What's hot

Html1
Html1Html1
Html1
learnt
 
Html Basic Tags
Html Basic TagsHtml Basic Tags
Html Basic Tags
Richa Singh
 
Html basics
Html basicsHtml basics
Html basics
Vjay Vijju
 
HTML Basics 1 workshop
HTML Basics 1 workshopHTML Basics 1 workshop
HTML Basics 1 workshop
John Allan
 
HTML
HTMLHTML
Html tags or elements
Html tags or elementsHtml tags or elements
Html tags or elements
Webtech Learning
 
HTML and DHTML
HTML and DHTMLHTML and DHTML
HTML and DHTML
SURBHI SAROHA
 
Session4
Session4Session4
Session4
Denise Garofalo
 
Html
HtmlHtml

What's hot (12)

LEARN HTML IN A DAY
LEARN HTML IN A DAYLEARN HTML IN A DAY
LEARN HTML IN A DAY
 
Html1
Html1Html1
Html1
 
Html Ppt
Html PptHtml Ppt
Html Ppt
 
Html Basic Tags
Html Basic TagsHtml Basic Tags
Html Basic Tags
 
Html basics
Html basicsHtml basics
Html basics
 
HTML Basics 1 workshop
HTML Basics 1 workshopHTML Basics 1 workshop
HTML Basics 1 workshop
 
HTML
HTMLHTML
HTML
 
Html tags or elements
Html tags or elementsHtml tags or elements
Html tags or elements
 
HTML and DHTML
HTML and DHTMLHTML and DHTML
HTML and DHTML
 
Session4
Session4Session4
Session4
 
Html
HtmlHtml
Html
 
Html - Tutorial
Html - TutorialHtml - Tutorial
Html - Tutorial
 

Similar to Learn HTML Easier

Basic Html Notes
Basic Html NotesBasic Html Notes
Basic Html Notes
NextGenr
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
Sayan De
 
Title, heading and paragraph tags
Title, heading and paragraph tagsTitle, heading and paragraph tags
Title, heading and paragraph tags
Sara Corpuz
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
Shehzad Yaqoob
 
TagsL1.pptx
TagsL1.pptxTagsL1.pptx
TagsL1.pptx
KrishRaj48
 
If you know nothing about HTML, this is where you can start !!
If you know nothing about HTML, this is where you can start !!If you know nothing about HTML, this is where you can start !!
If you know nothing about HTML, this is where you can start !!
Dr Sukhpal Singh Gill
 
Html tags
Html tagsHtml tags
Html tags
Noble Anshu
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
aneebkmct
 
Html basics-auro skills
Html basics-auro skillsHtml basics-auro skills
Html basics-auro skills
BoneyGawande
 
Html presentation
Html presentationHtml presentation
Html presentation
limon ahmed
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
vardanyan99
 
Html basics 1
Html basics 1Html basics 1
Html basics 1
google
 
Html basics
Html basicsHtml basics
Html basics
Adityaroy110
 
Html basics
Html basicsHtml basics
Html basics
Vivek Khandelwal
 
HTML_Basics.pdf
HTML_Basics.pdfHTML_Basics.pdf
HTML_Basics.pdf
Bhavani Testone
 
Html BASICS
Html BASICSHtml BASICS
Html basics
Html basicsHtml basics
Html basics
Adityaroy110
 
Html basics
Html basicsHtml basics
Html basic file
Html basic fileHtml basic file
Html basic file
Md Mozaddidul Karim
 

Similar to Learn HTML Easier (20)

Basic Html Notes
Basic Html NotesBasic Html Notes
Basic Html Notes
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
Title, heading and paragraph tags
Title, heading and paragraph tagsTitle, heading and paragraph tags
Title, heading and paragraph tags
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
TagsL1.pptx
TagsL1.pptxTagsL1.pptx
TagsL1.pptx
 
If you know nothing about HTML, this is where you can start !!
If you know nothing about HTML, this is where you can start !!If you know nothing about HTML, this is where you can start !!
If you know nothing about HTML, this is where you can start !!
 
Html tags
Html tagsHtml tags
Html tags
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
 
Html basics-auro skills
Html basics-auro skillsHtml basics-auro skills
Html basics-auro skills
 
Html presentation
Html presentationHtml presentation
Html presentation
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
 
Html basics 1
Html basics 1Html basics 1
Html basics 1
 
Html basics
Html basicsHtml basics
Html basics
 
Html basics
Html basicsHtml basics
Html basics
 
HTML_Basics.pdf
HTML_Basics.pdfHTML_Basics.pdf
HTML_Basics.pdf
 
Html BASICS
Html BASICSHtml BASICS
Html BASICS
 
Html basics
Html basicsHtml basics
Html basics
 
Html basics
Html basicsHtml basics
Html basics
 
Html basics
Html basicsHtml basics
Html basics
 
Html basic file
Html basic fileHtml basic file
Html basic file
 

Recently uploaded

The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 

Recently uploaded (20)

The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 

Learn HTML Easier

  • 3. What is HTML?  HTML stands for Hyper Text Markup Language.  HTML is not a programming language, it is a markup language.  A markup language is a collection of markup tags.  HTML uses markup tags to describe Web pages. What are Tags?  HTML markup tags are usually called HTML tags or just tags.  HTML tags are keywords surrounded by angle brackets like <html>.  HTML tags normally come in pairs, like <b> and </b>.  Start and end tags are also called opening tags and closing tags.
  • 5. What You Need?  You don’t need an HTML editor.  You don’t need a Web server.  You don’t need a Web site.  It’s simple to get started writing HTML. HTML Editors  We can use a plain text editor (like Notepad) to edit HTML. File Extensions  We can use either the .htm or the .html extension.  But, it is perfectly safe to use .html.
  • 7. HTML Headings  HTML headings are defined with the <h1> to <h6> tags.  The lower the number, the larger the heading size. Example <html> <body> <h1>This is heading 1</h1> <h2>This is heading 2</h2> <h3>This is heading 3</h3> <h4>This is heading 4</h4> <h5>This is heading 5</h5> <h6>This is heading 6</h6> </body> </html> Output
  • 8. Output HTML Paragraphs  HTML paragraphs are defined with the <p> tag. Example <html> <body> <p>This is paragraph 1</p> <p>This is paragraph 2</p> <p>This is paragraph 3</p> </body> </html> NOTE: Most browsers automatically add an empty line before and after paragraphs.
  • 9. Output HTML Links  HTML links are defined with the <a> tag.  If you click the underlined text it takes you to the link given in the <a> tag. Example <html> <body> <a href="https://www.google.co.in">GOOGLE</a> </body> </html>
  • 10. HTML Images  HTML images are defined with the <img> tag.  The <img> tag tells the browser where to find the image file and what size to display it. Example <html> <body> <img src="C:/Users/Administrator/Desktop/Q.jpg" width="100" height="100"/> </img> </body> </html> Output
  • 12. HTML Elements  An HTML element is everything between the opening tag and the ending tag. HTML Element Syntax  An HTML element starts with a opening tag.  An HTML element ends with a closing tag.  The <p> element is among the most common of elements.  The <body> element defines the body of the HTML document.  The <html> element defines the entire HTML document. OPENING TAG ELEMENT CONTENT CLOSING TAG <p> This is Paragraph </p> <h1> This is Heading </h1>
  • 13. Empty HTML Elements  HTML elements without content are called empty elements.  <br> is an empty element without a closing tag.  It defines a line break.  Adding a slash to the end of start tag, like <br/>, is the proper way of closing empty elements. Use Lowercase Tags  HTML tags are not case sensitive.  <P> means the same as <p>.  But it’s recommended to use lowercase tags.
  • 14. HTML Rules (Lines)  The <hr/> tag is used to create a horizontal rule (line).  The lines are often used to separate sections of a document. Example <html> <body> <p>This is paragraph 1</p> <hr /> <p>This is paragraph 2</p> <hr /> <p>This is paragraph 3</p> </body> </html> Output
  • 15. Output HTML Comments  Comments can be inserted in the HTML code to make it more readable and understandable.  Comments are ignored by the browser and are not displayed. Example <html> <body> <p>This is paragraph 1</p> <!-- Heading 1 --> <p>This is paragraph 2</p> <!-- Heading 2 --> <p>This is paragraph 3</p> <!-- Heading 3 --> </body> </html> NOTE: There is an exclamation point after the opening bracket, but not before the closing bracket.
  • 16. Output HTML Line Breaks  Use the <br /> tag if you want a line break (a new line) without starting a new paragraph.  The <br /> element is an empty HTML element. It has no end tag Example <html> <body> <p>This is <br /> a paragraph 1</p> </body> </html>
  • 18. Text Formatting Tags  HTML uses tags like <b> and <i> to modify the appearance of text, like bold or italic.  These HTML tags are called formatting tags. TAG DESCRIPTION <b> Defines bold text <big> Defines big text <em> Defines emphasized text <i> Defines italic text <small> Defines small text <strong> Defines strong text <sub> Defines subscripted text <sup> Defines superscripted text <ins> Defines inserted text <del> Defines deleted text
  • 19. Text Formatting Tags (Examples) <!DOCTYPE html> <html> <head> <title>HTML TEXT FORMATTING TAGS</title> </head> <body> <b>Defines bold text</b> <br /> <big>Defines big text</big> <br /> <em>Defines emphasized text</em> <br /> <i>Defines italic text</i> <br /> <small>Defines small text</small> <br /> <strong>Defines strong text</strong> <br /> <sub>Defines subscripted text</sub> <br /> <sup>Defines superscripted text</sup> <br /> <ins>Defines inserted text</ins> <br /> <del>Defines deleted text</del> <br /> </body> </html> (Outputs)
  • 21. TAG LISTS <ul> Unordered List <ol> Ordered List <dl> Definition List Nested List Types of HTML Lists  An unordered list starts with the <ul> tag. Each list item starts with the <li> tag.  An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.  A definition list starts with a <dl> tag (definition list). Each term starts with a <dt> tag (definition term). Each description starts with a <dd> tag (definition description).
  • 22. Unordered List (Examples) <!DOCTYPE html> <title>HTML UNORDERED LIST</title> <body> <h4>Disc bullets list:</h4> <ul type="disc"> <li>List 1</li> <li>List 2</li> <li>List 3</li> </ul> <h4>Circle bullets list:</h4> <ul type="circle"> <li>List 1</li> <li>List 2</li> <li>List 3</li> </ul> <h4>Square bullets list:</h4> <ul type="square"> <li>List 1</li> <li>List 2</li> <li>List 3</li> </ul> </body> </html> (Outputs)
  • 23. Ordered List (Examples 1) <!DOCTYPE html> <title>HTML UNORDERED LIST</title> <body> <html> <title>HTML ORDERED LIST</title> <body> <h4>An Ordered List:</h4> <ol> <li>List 1</li> <li>List 2</li> <li>List 3</li> </ol> </body> </html></body> </html> (Outputs)
  • 24. Ordered List (Examples 2) <html> <body> <h4>Letters list:</h4> <ol type="A"> <li>List 1</li> <li>List 2</li> <li>List 3</li> </ol> <h4>Lowercase letters list:</h4> <ol type="a"> <li>List 1</li> <li>List 2</li> <li>List 3</li> </ol> </body> </html> (Outputs)
  • 25. Ordered List (Examples 3) <html> <body> <h4>Roman numbers list:</h4> <ol type="I"> <li>List 1</li> <li>List 2</li> <li>List 3</li> </ol> <h4>Lowercase Roman numbers list:</h4> <ol type="i"> <li>List 1</li> <li>List 2</li> <li>List 3</li> </ol> </body> </html> (Outputs)
  • 26. Definition List (Examples) <html> <body> <html> <body> <h4>A Definition List:</h4> <dl> <dt>Coffee</dt> <dd>Black hot drink</dd> <dt>Milk</dt> <dd>White cold drink</dd> </dl> </body> </html> </body> </html> (Outputs)