SlideShare a Scribd company logo
1 of 14
Basic HTML Tags
 HTML is a fairly straightforward programming
language. Each tag starts with a < and ends with a >.
For example the paragraph tag is <p>
 There is a range of HTML tags, they help you to
design your web page. There are four required tags in
HTML. These are html, title, head and body. The table
below shows you the opening and closing tag, a
description and an example.
Start HTML Tag End HTML Tag Description
<html> </html>
These are the
tags you put at
the beginning and
end of an HTML
file.
<head> </head>
This includes information
including title, meta tags,
content type, links to
external pages like CSS
and JavaScript.
<title> </title>
This is the text that
goes in the title bar or
the browser window.
<body> </body>
This contains the
contents of the
document
Open tag Close tag Description Example
<p> </p>
This tag allows you to
create paragraphs
My name is Fred.
I live in Medway
<h1> </h1>
This is the largest
heading
Heading 1
<h2> </h2>
This is second biggest
heading
Heading 2
<h3> </h3> This is the next heading Heading 3
<h4> </h4> This is another heading Heading 4
<h5> </h5>
This is the second
smallest heading
Heading 5
<h6> </h6>
This is the smallest
heading
Heading 6
<hr > n/a
This is a horizontal line.
You can use width and
size attributes
<b> </b> This makes text bold Bold text
<i> </i> This makes text italic Italic text
<br /> n/a
This tag allows you to
insert line breaks
abc
def
Special Characters
In order to be able to display < and > escape symbols need to be used so that the browser
doesn't misinterpret the code. A character entity is used so that special characters can be
displayed. These consist of an ampersand(&), an entity name of a # and an entity code
number and a semicolon(;). Examples of special characters include:-
Greater than
>
&gt
Less than
<
&lt
Ampersand
&
&amp
Space
&nbsp
Quotation mark
"
&quot
Copyright
©
&copy
Accent Marks
 Accent marks in HTML also use the escape symbol. Like the special
characters accent marks start off with an ampersand & and then is followed
by a letter. If the letter is uppercase then the symbol is going to be
uppercase, if the symbol is lowercase then the symbol is going to be
lowercase.
Symbol
HTML
Code
Symbol
HTML
Code
Symbol
HTML
Code
Symbol
HTML
Code
à &agrave; á &aacute; â &acirc; ã &atilde;
ä &auml; å &aring; ç &ccedil; è &egrave;
é &eacute; ê &ecirc; ë &euml; ì &igrave;
í &iacute; î &icirc; ï &iuml; ñ &ntilde;
ò &ograve; ó &oacute; ô &ocirc; õ &otilde;
ö &ouml; ø &oslash; ù &ugrave; ú &uacute;
û &ucirc; ü &uuml;
Attributes
 Key terms and abbreviation are used for most text properties. However some
properties need more information like aligning text
 An example of this is justifying text. You need to say whether the text is going to be
left, right or centred. To be able to do this you need to use text attributes.
This text has been justified to the left
Left
To justify a paragraph to the left the HTML code is:- <p align="left"> Text you
want justified to the left </p>
This text has been centred using the align centre tagged
Center
To centre align a paragraph the HTML code is:- <p align="center"> Text you
want centred goes here </p>
This text has been justified to the right
Right
To justify a paragraph to the right the HTML code is:- <p align="right"> Text
you want justified to the right </p
Horizontal lines
The code below shows a horizontal line which takes up 75% of the
page and has a thickness of 3.
<hr width="75%" size="3"/>
If you don't specify a size of the horizontal line then the default size is 2.
<!– Comment –>
The comment tag helps programmers to understand the HTML source code. The comments are not visible on the web page in a browser.
Syntax:
<!-- Write your comments here -->
<a></a>
The <a> tag or the anchor tag allows us to link one web page to another
page or a section of the same page. The <a> tag has an href attribute that
holds the destination URL. Using the anchor tag, we can create a hyperlink
to web pages, files, email addresses, segments on the same page, etc.
<a href="https://www.naukri.com/learning/">This is a link</a>
What is the largest header tag?
< h5 >
< h8 >
< h6 >
< h1 >
What is the special character for >?
&gt;
&nbsp;
&copy;
&quot;
What are the 4 required HTML tags?
HTML, Head, Title, Body
P, B, H1, H2
HTML, Body, P, H1
Html,Meta, Head, Body
What attribute is used to centre a
paragraph?
span
font
align
justify
What would you use to link to a specific part of the page
within the document?
image
anchor
table
css
To get an image to sit on the right side of the window with text filling the area
to the left of the image, what would your tag need to look like?
<img src align="mountains.jpg" "right"/>
<img src="mountains.jpg" align="right"/>
<img="mountains.jpg" src align="right"/>
<img " mountains.jpg" align src="right"/>
<img>
The image tag allows us to insert images into a web page. It has no closing tag. The attributes of the image tag include:
•src: the source file (src)
•alt: alternative text
•width
•height
Example:
<img src="naukrilearning.jpg" alt="naukri learning" width="100" height="100">
<meta>
These meta tags are used inside the head tag and they making describe the metadata i.e data about data. These
tags are useful in search engine optimization which means when users search for our websites the chances that
the browser recommends our webpage becomes high which leads to an increase in traffic over the webpage. A
single HTML document can contain multiple tags.
Syntax:
<meta attribute-name=”value”>
<link rel =”stylesheet” href=”file.css “>
This tag is used to include external style sheets. Use this tag when you don’t want to include CSS in the HTML
document. To make it more simple we make a CSS file with the code and include this file in the link tag.
Syntax:
<link rel =”stylesheet” href=”file.css “>
Lecture-2.pptx

More Related Content

Similar to Lecture-2.pptx (20)

Basic Html Notes
Basic Html NotesBasic Html Notes
Basic Html Notes
 
Html
HtmlHtml
Html
 
intro-to-html
intro-to-htmlintro-to-html
intro-to-html
 
AttributesL3.pptx
AttributesL3.pptxAttributesL3.pptx
AttributesL3.pptx
 
Html
HtmlHtml
Html
 
Html
HtmlHtml
Html
 
web development.pdf
web development.pdfweb development.pdf
web development.pdf
 
Class 1 handout (2) html exercises
Class 1 handout (2) html exercisesClass 1 handout (2) html exercises
Class 1 handout (2) html exercises
 
Html introduction
Html introductionHtml introduction
Html introduction
 
HTML Basic Tags
HTML Basic Tags HTML Basic Tags
HTML Basic Tags
 
INTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdfINTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdf
 
Html tags
Html tagsHtml tags
Html tags
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Html
HtmlHtml
Html
 
html for beginners
html for beginnershtml for beginners
html for beginners
 
html.pptx
html.pptxhtml.pptx
html.pptx
 
Html presentation
Html presentationHtml presentation
Html presentation
 
Html introduction
Html introductionHtml introduction
Html introduction
 
Html basics
Html basicsHtml basics
Html basics
 
Learning html. (Part- 1)
Learning html. (Part- 1)Learning html. (Part- 1)
Learning html. (Part- 1)
 

More from vishal choudhary (20)

SE-Lecture1.ppt
SE-Lecture1.pptSE-Lecture1.ppt
SE-Lecture1.ppt
 
SE-Testing.ppt
SE-Testing.pptSE-Testing.ppt
SE-Testing.ppt
 
SE-CyclomaticComplexityand Testing.ppt
SE-CyclomaticComplexityand Testing.pptSE-CyclomaticComplexityand Testing.ppt
SE-CyclomaticComplexityand Testing.ppt
 
SE-Lecture-7.pptx
SE-Lecture-7.pptxSE-Lecture-7.pptx
SE-Lecture-7.pptx
 
Se-Lecture-6.ppt
Se-Lecture-6.pptSe-Lecture-6.ppt
Se-Lecture-6.ppt
 
SE-Lecture-5.pptx
SE-Lecture-5.pptxSE-Lecture-5.pptx
SE-Lecture-5.pptx
 
XML.pptx
XML.pptxXML.pptx
XML.pptx
 
SE-Lecture-8.pptx
SE-Lecture-8.pptxSE-Lecture-8.pptx
SE-Lecture-8.pptx
 
SE-coupling and cohesion.ppt
SE-coupling and cohesion.pptSE-coupling and cohesion.ppt
SE-coupling and cohesion.ppt
 
SE-Lecture-2.pptx
SE-Lecture-2.pptxSE-Lecture-2.pptx
SE-Lecture-2.pptx
 
SE-software design.ppt
SE-software design.pptSE-software design.ppt
SE-software design.ppt
 
SE1.ppt
SE1.pptSE1.ppt
SE1.ppt
 
SE-Lecture-4.pptx
SE-Lecture-4.pptxSE-Lecture-4.pptx
SE-Lecture-4.pptx
 
SE-Lecture=3.pptx
SE-Lecture=3.pptxSE-Lecture=3.pptx
SE-Lecture=3.pptx
 
Multimedia-Lecture-Animation.pptx
Multimedia-Lecture-Animation.pptxMultimedia-Lecture-Animation.pptx
Multimedia-Lecture-Animation.pptx
 
MultimediaLecture5.pptx
MultimediaLecture5.pptxMultimediaLecture5.pptx
MultimediaLecture5.pptx
 
Multimedia-Lecture-7.pptx
Multimedia-Lecture-7.pptxMultimedia-Lecture-7.pptx
Multimedia-Lecture-7.pptx
 
MultiMedia-Lecture-4.pptx
MultiMedia-Lecture-4.pptxMultiMedia-Lecture-4.pptx
MultiMedia-Lecture-4.pptx
 
Multimedia-Lecture-6.pptx
Multimedia-Lecture-6.pptxMultimedia-Lecture-6.pptx
Multimedia-Lecture-6.pptx
 
Multimedia-Lecture-3.pptx
Multimedia-Lecture-3.pptxMultimedia-Lecture-3.pptx
Multimedia-Lecture-3.pptx
 

Recently uploaded

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 

Recently uploaded (20)

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 

Lecture-2.pptx

  • 2.  HTML is a fairly straightforward programming language. Each tag starts with a < and ends with a >. For example the paragraph tag is <p>  There is a range of HTML tags, they help you to design your web page. There are four required tags in HTML. These are html, title, head and body. The table below shows you the opening and closing tag, a description and an example.
  • 3. Start HTML Tag End HTML Tag Description <html> </html> These are the tags you put at the beginning and end of an HTML file.
  • 4. <head> </head> This includes information including title, meta tags, content type, links to external pages like CSS and JavaScript.
  • 5. <title> </title> This is the text that goes in the title bar or the browser window. <body> </body> This contains the contents of the document
  • 6. Open tag Close tag Description Example <p> </p> This tag allows you to create paragraphs My name is Fred. I live in Medway <h1> </h1> This is the largest heading Heading 1 <h2> </h2> This is second biggest heading Heading 2 <h3> </h3> This is the next heading Heading 3 <h4> </h4> This is another heading Heading 4 <h5> </h5> This is the second smallest heading Heading 5 <h6> </h6> This is the smallest heading Heading 6 <hr > n/a This is a horizontal line. You can use width and size attributes <b> </b> This makes text bold Bold text <i> </i> This makes text italic Italic text <br /> n/a This tag allows you to insert line breaks abc def
  • 7. Special Characters In order to be able to display < and > escape symbols need to be used so that the browser doesn't misinterpret the code. A character entity is used so that special characters can be displayed. These consist of an ampersand(&), an entity name of a # and an entity code number and a semicolon(;). Examples of special characters include:- Greater than > &gt Less than < &lt Ampersand & &amp Space &nbsp Quotation mark " &quot Copyright © &copy
  • 8. Accent Marks  Accent marks in HTML also use the escape symbol. Like the special characters accent marks start off with an ampersand & and then is followed by a letter. If the letter is uppercase then the symbol is going to be uppercase, if the symbol is lowercase then the symbol is going to be lowercase. Symbol HTML Code Symbol HTML Code Symbol HTML Code Symbol HTML Code à &agrave; á &aacute; â &acirc; ã &atilde; ä &auml; å &aring; ç &ccedil; è &egrave; é &eacute; ê &ecirc; ë &euml; ì &igrave; í &iacute; î &icirc; ï &iuml; ñ &ntilde; ò &ograve; ó &oacute; ô &ocirc; õ &otilde; ö &ouml; ø &oslash; ù &ugrave; ú &uacute; û &ucirc; ü &uuml;
  • 9. Attributes  Key terms and abbreviation are used for most text properties. However some properties need more information like aligning text  An example of this is justifying text. You need to say whether the text is going to be left, right or centred. To be able to do this you need to use text attributes. This text has been justified to the left Left To justify a paragraph to the left the HTML code is:- <p align="left"> Text you want justified to the left </p> This text has been centred using the align centre tagged Center To centre align a paragraph the HTML code is:- <p align="center"> Text you want centred goes here </p> This text has been justified to the right Right To justify a paragraph to the right the HTML code is:- <p align="right"> Text you want justified to the right </p
  • 10. Horizontal lines The code below shows a horizontal line which takes up 75% of the page and has a thickness of 3. <hr width="75%" size="3"/> If you don't specify a size of the horizontal line then the default size is 2. <!– Comment –> The comment tag helps programmers to understand the HTML source code. The comments are not visible on the web page in a browser. Syntax: <!-- Write your comments here --> <a></a> The <a> tag or the anchor tag allows us to link one web page to another page or a section of the same page. The <a> tag has an href attribute that holds the destination URL. Using the anchor tag, we can create a hyperlink to web pages, files, email addresses, segments on the same page, etc. <a href="https://www.naukri.com/learning/">This is a link</a>
  • 11. What is the largest header tag? < h5 > < h8 > < h6 > < h1 > What is the special character for >? &gt; &nbsp; &copy; &quot; What are the 4 required HTML tags? HTML, Head, Title, Body P, B, H1, H2 HTML, Body, P, H1 Html,Meta, Head, Body What attribute is used to centre a paragraph? span font align justify
  • 12. What would you use to link to a specific part of the page within the document? image anchor table css To get an image to sit on the right side of the window with text filling the area to the left of the image, what would your tag need to look like? <img src align="mountains.jpg" "right"/> <img src="mountains.jpg" align="right"/> <img="mountains.jpg" src align="right"/> <img " mountains.jpg" align src="right"/>
  • 13. <img> The image tag allows us to insert images into a web page. It has no closing tag. The attributes of the image tag include: •src: the source file (src) •alt: alternative text •width •height Example: <img src="naukrilearning.jpg" alt="naukri learning" width="100" height="100"> <meta> These meta tags are used inside the head tag and they making describe the metadata i.e data about data. These tags are useful in search engine optimization which means when users search for our websites the chances that the browser recommends our webpage becomes high which leads to an increase in traffic over the webpage. A single HTML document can contain multiple tags. Syntax: <meta attribute-name=”value”> <link rel =”stylesheet” href=”file.css “> This tag is used to include external style sheets. Use this tag when you don’t want to include CSS in the HTML document. To make it more simple we make a CSS file with the code and include this file in the link tag. Syntax: <link rel =”stylesheet” href=”file.css “>