SlideShare a Scribd company logo
HTML – HYPER TEXT
MARKUP LANGUAGE
- JANANI. C
CONTENTS
• INTRODUCTION
• STRUCTURE OF HTML
• ELEMENTS AND ATTRIBUTES
• TAGS
• EXAMPLES
INTRODUCTION
• HTML is the standard markup
language for creating Web pages.
• HTML stands for Hyper Text Markup Language
• 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 are represented by tags
• Browsers do not display the HTML tags, but use
them to render the content of the page
STRUCTURE
<HTML>
<HEAD> <TITLE> </TITLE> </HEAD>
<BODY>
</BODY>
</HTML>
ELEMENTS AND ATTRIBUTES
An HTML element usually consists of a start
tag and an end tag, with the content
inserted in between:
<tagname>Content goes here...</tagname>
Nested HTML Elements
• HTML elements can be nested (elements can contain
elements).
• All HTML documents consist of nested HTML elements.
• Example:
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
Empty HTML Elements
• HTML elements with no content are called
empty elements.
• Example:
<br> is an empty element without a closing tag
HTML Attributes
• All HTML elements can have attributes
• Attributes provide additional information
about an element
• Attributes are always specified in the start tag
• Attributes usually come in name/value pairs
like: name="value“
• Example: <body bgcolor=“red”>
HTML TAGS
• Basic HTML
Tag Description
<!DOCTYPE> Defines the document type
<html> Defines an HTML document
<head>
Defines information about the
document
<title> Defines a title for the document
<body> Defines the document's body
<h1> to <h6> Defines HTML headings
<p> Defines a paragraph
<br> Inserts a single line break
<hr>
Defines a thematic change in the
content
<!--...--> Defines a comment
<font> Defines font, color, and size for text
EXAMPLE
<b> Defines bold text
<center> Defines centered text
<strong> Defines important text
<i>
Defines a part of text in an alternate voice or
mood
<strike> Defines strikethrough text
<em> Defines emphasized text
<sub> Defines subscripted text
<sup> Defines superscripted text
EXAMPLE
Reserved Characters in HTML
Character Description
&#34 Quotation Mark
&#39 Apostrophe
&#38 Ampersand
&#60 Lesser than
&#62 Greater than
Image tag
• <img>  Defines an image
• Attributes:
Attribute Function
Src Identify the location of the image
Align Specify the alignment of the image ( left, right, top and
bottom)
Border To give a border
Height To specify the height
Width To specify the width
Alt To place a pointer text
Example
Lists in HTML
Tag Description
<ul> Defines an unordered list
<ol> Defines an ordered list
<li> Defines a list item
<dir>
Not supported in HTML5. Use <ul>
instead.
Defines a directory list
<dl> Defines a description list
<dt> Defines a term/name in a description list
<dd>
Defines a description of a term/name in a
description list
Anchor Tag
• The <a> tag defines a hyperlink, which is used
to link from one page to another.
• Indicates the link's destination.
• By default, links will appear as follows in all
browsers:
An unvisited link is underlined and blue
A visited link is underlined and purple
An active link is underlined and red
Attribute name Values Notes
hreflang
Specifies the language of the
linked resource.
download
Directs the browser to
download the linked resource
rather than opening it.
target
_blank
_parent
_self
_top
frame name
Specifies the context in which
the linked resource will open.
title text
Defines the title of a link,
which appears to the user as a
tooltip.
href url
Specifies the linked document,
resource, or location.
name
Example
Table Tags
• The <table> tag defines an HTML table
• Elements
Tag Description
<table> Defines a table
<th> Defines a header cell in a table
<tr> Defines a row in a table
<td> Defines a cell in a table
<thead> Groups the header content in a table
Example
Marquee
• The <marquee> is a non-standard HTML tag
which was used to create a scrolling text or an
image.
• It was used to make the text/image scroll
horizontally across or vertically down the web
page.
Attributes
Attribute Value Description
behavior
scroll
slide
alternate
Defines the scrolling type.
bgcolor
rgb(x,x,x)
#xxxxxx
colorname
Is used to give a background color.
direction
up
down
left
right
Sets the direction for the scrolling
content.
height
pixels
%
Defines the marquee's height.
width
pixels
%
Defines the marquee's width.
Html Simple Tutorial
Html Simple Tutorial
Html Simple Tutorial

More Related Content

What's hot (20)

HTML
HTMLHTML
HTML
 
HTML
HTMLHTML
HTML
 
Html
HtmlHtml
Html
 
Html
HtmlHtml
Html
 
Web Application and HTML Summary
Web Application and HTML SummaryWeb Application and HTML Summary
Web Application and HTML Summary
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Html
HtmlHtml
Html
 
Html training part1
Html training part1Html training part1
Html training part1
 
Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3
 
1. HTML
1. HTML1. HTML
1. HTML
 
HTML
HTMLHTML
HTML
 
WEB PAGE DESIGN USING HTML
WEB PAGE DESIGN USING HTMLWEB PAGE DESIGN USING HTML
WEB PAGE DESIGN USING HTML
 
SEO Training in Noida- Skyinfotech.in
SEO Training in Noida- Skyinfotech.inSEO Training in Noida- Skyinfotech.in
SEO Training in Noida- Skyinfotech.in
 
HTML - LinkedIn
HTML - LinkedInHTML - LinkedIn
HTML - LinkedIn
 
Html 1
Html 1Html 1
Html 1
 
HTML By K.Sasidhar
HTML By K.SasidharHTML By K.Sasidhar
HTML By K.Sasidhar
 
Chapter 6 html
Chapter 6 htmlChapter 6 html
Chapter 6 html
 
Web development using html 5
Web development using html 5Web development using html 5
Web development using html 5
 
Html Basic Tags
Html Basic TagsHtml Basic Tags
Html Basic Tags
 
Html
HtmlHtml
Html
 

Similar to Html Simple Tutorial (20)

html
htmlhtml
html
 
HTML5 2019
HTML5 2019HTML5 2019
HTML5 2019
 
FEWDD Lec 1 web development presentation
FEWDD Lec 1 web development presentationFEWDD Lec 1 web development presentation
FEWDD Lec 1 web development presentation
 
Learning html. (Part- 1)
Learning html. (Part- 1)Learning html. (Part- 1)
Learning html. (Part- 1)
 
Basic Html Knowledge for students
Basic Html Knowledge for studentsBasic Html Knowledge for students
Basic Html Knowledge for students
 
Html (1)
Html (1)Html (1)
Html (1)
 
learnhtmlbyvipuladissanayake-170516061515 (1).pptx
learnhtmlbyvipuladissanayake-170516061515 (1).pptxlearnhtmlbyvipuladissanayake-170516061515 (1).pptx
learnhtmlbyvipuladissanayake-170516061515 (1).pptx
 
Hyper Text Mark-up Language
Hyper Text Mark-up Language Hyper Text Mark-up Language
Hyper Text Mark-up Language
 
web development.pdf
web development.pdfweb development.pdf
web development.pdf
 
Learn html Basics
Learn html BasicsLearn html Basics
Learn html Basics
 
intro-to-html
intro-to-htmlintro-to-html
intro-to-html
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
 
How to learn HTML in 10 Days
How to learn HTML in 10 DaysHow to learn HTML in 10 Days
How to learn HTML in 10 Days
 
Presentation1.pdf
Presentation1.pdfPresentation1.pdf
Presentation1.pdf
 
Html
HtmlHtml
Html
 
Introduction to Html and Css.pdf
Introduction to Html and Css.pdfIntroduction to Html and Css.pdf
Introduction to Html and Css.pdf
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
HTML Comprehensive Overview
HTML Comprehensive OverviewHTML Comprehensive Overview
HTML Comprehensive Overview
 
HTML for Education
HTML for EducationHTML for Education
HTML for Education
 
Html2
Html2Html2
Html2
 

More from Janani Satheshkumar (9)

Web 2.0 tools
Web 2.0 toolsWeb 2.0 tools
Web 2.0 tools
 
Stykz1
Stykz1Stykz1
Stykz1
 
Cryptography and network_security
Cryptography and network_securityCryptography and network_security
Cryptography and network_security
 
Flash
FlashFlash
Flash
 
Photoshop basics
Photoshop basicsPhotoshop basics
Photoshop basics
 
Wap & WML
Wap & WMLWap & WML
Wap & WML
 
Introduction to C
Introduction to CIntroduction to C
Introduction to C
 
Proble, Solving & Automation
Proble, Solving & AutomationProble, Solving & Automation
Proble, Solving & Automation
 
Fucntions & Pointers in C
Fucntions & Pointers in CFucntions & Pointers in C
Fucntions & Pointers in C
 

Recently uploaded

MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxbennyroshan06
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxEduSkills OECD
 
Accounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfAccounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfYibeltalNibretu
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptSourabh Kumar
 
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...Denish Jangid
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxPavel ( NSTU)
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...Sayali Powar
 
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptxSolid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptxDenish Jangid
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfQucHHunhnh
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfVivekanand Anglo Vedic Academy
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleCeline 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.pdfPo-Chuan Chen
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfbu07226
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXMIRIAMSALINAS13
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxRaedMohamed3
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonSteve Thomason
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePedroFerreira53928
 

Recently uploaded (20)

MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
Accounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfAccounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdf
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
 
B.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdfB.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdf
 
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
 
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptxSolid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
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
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 

Html Simple Tutorial

  • 1. HTML – HYPER TEXT MARKUP LANGUAGE - JANANI. C
  • 2. CONTENTS • INTRODUCTION • STRUCTURE OF HTML • ELEMENTS AND ATTRIBUTES • TAGS • EXAMPLES
  • 3. INTRODUCTION • HTML is the standard markup language for creating Web pages. • HTML stands for Hyper Text Markup Language • 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 are represented by tags • Browsers do not display the HTML tags, but use them to render the content of the page
  • 4. STRUCTURE <HTML> <HEAD> <TITLE> </TITLE> </HEAD> <BODY> </BODY> </HTML>
  • 5. ELEMENTS AND ATTRIBUTES An HTML element usually consists of a start tag and an end tag, with the content inserted in between: <tagname>Content goes here...</tagname>
  • 6. Nested HTML Elements • HTML elements can be nested (elements can contain elements). • All HTML documents consist of nested HTML elements. • Example: <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body>
  • 7. Empty HTML Elements • HTML elements with no content are called empty elements. • Example: <br> is an empty element without a closing tag
  • 8. HTML Attributes • All HTML elements can have attributes • Attributes provide additional information about an element • Attributes are always specified in the start tag • Attributes usually come in name/value pairs like: name="value“ • Example: <body bgcolor=“red”>
  • 9. HTML TAGS • Basic HTML Tag Description <!DOCTYPE> Defines the document type <html> Defines an HTML document <head> Defines information about the document <title> Defines a title for the document <body> Defines the document's body
  • 10. <h1> to <h6> Defines HTML headings <p> Defines a paragraph <br> Inserts a single line break <hr> Defines a thematic change in the content <!--...--> Defines a comment <font> Defines font, color, and size for text
  • 12.
  • 13.
  • 14. <b> Defines bold text <center> Defines centered text <strong> Defines important text <i> Defines a part of text in an alternate voice or mood <strike> Defines strikethrough text <em> Defines emphasized text <sub> Defines subscripted text <sup> Defines superscripted text
  • 16.
  • 17.
  • 18. Reserved Characters in HTML Character Description &#34 Quotation Mark &#39 Apostrophe &#38 Ampersand &#60 Lesser than &#62 Greater than
  • 19. Image tag • <img>  Defines an image • Attributes: Attribute Function Src Identify the location of the image Align Specify the alignment of the image ( left, right, top and bottom) Border To give a border Height To specify the height Width To specify the width Alt To place a pointer text
  • 21.
  • 22.
  • 23. Lists in HTML Tag Description <ul> Defines an unordered list <ol> Defines an ordered list <li> Defines a list item <dir> Not supported in HTML5. Use <ul> instead. Defines a directory list <dl> Defines a description list <dt> Defines a term/name in a description list <dd> Defines a description of a term/name in a description list
  • 24.
  • 25.
  • 26.
  • 27. Anchor Tag • The <a> tag defines a hyperlink, which is used to link from one page to another. • Indicates the link's destination. • By default, links will appear as follows in all browsers: An unvisited link is underlined and blue A visited link is underlined and purple An active link is underlined and red
  • 28. Attribute name Values Notes hreflang Specifies the language of the linked resource. download Directs the browser to download the linked resource rather than opening it. target _blank _parent _self _top frame name Specifies the context in which the linked resource will open. title text Defines the title of a link, which appears to the user as a tooltip. href url Specifies the linked document, resource, or location. name
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35. Table Tags • The <table> tag defines an HTML table • Elements Tag Description <table> Defines a table <th> Defines a header cell in a table <tr> Defines a row in a table <td> Defines a cell in a table <thead> Groups the header content in a table
  • 37.
  • 38.
  • 39. Marquee • The <marquee> is a non-standard HTML tag which was used to create a scrolling text or an image. • It was used to make the text/image scroll horizontally across or vertically down the web page.
  • 40. Attributes Attribute Value Description behavior scroll slide alternate Defines the scrolling type. bgcolor rgb(x,x,x) #xxxxxx colorname Is used to give a background color. direction up down left right Sets the direction for the scrolling content. height pixels % Defines the marquee's height. width pixels % Defines the marquee's width.