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

web development.pdf
web development.pdfweb development.pdf
web development.pdf
BagHarki
 
Class 1 handout (2) html exercises
Class 1 handout (2) html exercisesClass 1 handout (2) html exercises
Class 1 handout (2) html exercises
Erin M. Kidwell
 

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

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

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Recently uploaded (20)

UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 

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 “>