HTML TRAINING
Session 1
1
Agenda
Day 1 - Topics
1. Introduction to HTML
âť– Why HTML?
âť– Structure of HTML
2. Formatting Tags
âť– Basic Formatting Tags
âť– Setting Fonts
3. Lists and Links
âť– Unordered, Ordered and Definition List
âť– Links
âť– Mailto
4. Images
âť– Adding Images
âť– Hyper linking Images
2
Introduction to HTML
HTML is the language you use to create WebPages.
Left to themselves, web browsers would take the text
and images in your web pages and wrap them up into
what looks like a single paragraph without any line
breaks.
With HTML, you act as an editor, marking up a
page to indicate its format, telling the web browser
where you want a new line to begin or how you want
text or images aligned.
In short HTML is all about specifying the
structure and format of your Web page.
3
What is markup language?
The HTML includes a collection of markup elements and
attributes that describe the letter’s contents:
The <html> element defines the document as an HTML
document.
The <head> element creates a header section for the
document, and the <title> element inside of it
defines a document title that will be displayed in the browser’s
title bar.
The <body> element holds the actual text that will display in
the browser window.
4
Structure of HTML
<HTML>
<HEAD>
<TITLE>
Web Page number one!
</TITLE>
</HEAD>
<BODY>
Welcome to HTML
</BODY>
</HTML>
Title is
reflected here.
Body is
reflected here.
5
Tags And Attributes
Tags:
Anything enclosed in angle brackets i.e. < and > are called tags.
Example: <HTML> tag is used to indicate that this webpage is written
in HTML. Every opening tag <HTML> should have an ending tag as
well </HTML>.
Collectively, a starting tag, an ending tag and everything
between them make up an HTML element.
Attributes:
HTML tags tell web browsers how to format and organize web pages,
but there’s more to tell i.e. you can customize most tags using
attributes.
An Attributes is a keyword that you use in an opening tag to
give more information to the web browser.
<TAGNAME ATTRIBUTE = VALUE>
Formatting Tags
7
Basic Formatting Tags
1) Headings:
There is a special tag for specifying headings in HTML. There are 6
levels of headings in HTML ranging from h1 for the most important,
to h6 for the least important.
Code for this would be :
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
OUTPUT
8
2) Bold:
You specify bold text with the <b> or <Strong> tag.
Code:
<b>This text is bold.</b>
OR
<Strong> This text is bold </strong>
Output
9
3) Italics:
You specify italic text with the <i> tag or <em> tag.
Code:
<i>This text is italicized.</i>
OR
<em>This text is italicized using emphasize tag</em>
10
3) Underline:
You specify underline text with the <u> tag.
Code:
<u>This text needs importance.</u>
Example:
<u>This text needs importance.</u>
11
4) Line Breaks
You specify line break with the <br> tag.
Code:
<p>Here is a...<br />line break.</p>
12
5) Horizontal Rule
Code:
Here's a horizontal rule... <hr size="2"
color="#FF0000"/> ...that was a horizontal rule :)
13
6) Center:
This tag aligns the text in center
Code:
<Center> Welcome to HTML Basics </center>
14
6) Paragraph:
When you want to set paragraphs on our WebPages, use
paragraph tag.
Code:
<p> Welcome to HTML Basics </p>
<p> Introduction</p>
15
7) Fonts:
You use FONT tag to set text color, font face and size.
Code:
<Font face=“Verdana” color="maroon" size =4>If you notice, we
have used attributes for the font tag. <em>Attributes</em> are
nothing but properties added to the respective tags.</font>
16
Aligning of Text:
<p><Font face=“Verdana” color="maroon" size =4>If you notice, we have
used attributes for the font tag. <em>Attributes</em> are nothing but
properties added to the respective tags.</font></p>
<p align="right">If you notice, we have used attributes for the font tag.</p>
<p align="left">If you notice, we have used attributes for the font tag</p>
<p align="center">If you notice, we have used attributes for the font tag</p>
Lists
18
Creating lists:
How would you display a list in a Web page?
Simply by using ordered or unordered lists.
➢ Unordered list display a bullet in front of each list items.
Tag: <UL>
<LI></LI>
</UL>
➢ Ordered list display the items in numerical or alphabetical terms.
Tag : <OL>
<LI></LI>
</OL>
➢ Other type of list is Definition list, though not used much.
Purpose: Organizes terms and their definitions in pairs.
Tag: <DL>
<DT>MBA</DT>
<DD>Masters in Business Administration</DD>
</DL>
19
Code for Ordered list
<Center>Basics of HTML</Center>
<ol type="A"> (Other types 1, A, a, i, I)
<li> Introduction to HTML</li>
<li>Formatting Tags</li>
<li>Lists and Links</li>
<li>Images</li>
</ol>
20
Unordered List
<Center>Basics of HTML</Center>
<ul type="circle"> (other types are square, disc)
<li> Introduction to HTML</li>
<li>Formatting Tags</li>
<li>Lists and Links</li>
<li>Images</li>
</ul>
21
Definition List
<DL>
<DT>M.B.A</DT>
<DD> Masters Of Business Administration</DD><br>
<DT>HTML</DT>
<DD> HyperText Markup Language</DD>
</DL>
Adding Images and Links
23
Creation of Links:
Links, otherwise known as hyperlinks, are defined using the <a> tag - otherwise
known as the anchor element.
To create a hyperlink, you use the a tag in conjunction with the href
attribute (href stands for Hypertext Reference). The value of the href attribute is
the URL, or, location of where the link is pointing to.
Types of links:
1) External Links: Links which take us to another webpage/site.
2) Internal Links: Links which take us to a particular section within a
webpage/website.
3) Graphical Links: Images which are linked instead of text (will be covered in next
topic).
Hypertext references can use absolute URLS, relative URLs:
Absolute :This refers to a URL where the full path is provided.
Relative: This refers to a URL where only the path, relative to the current location, is
provided.
24
External Links:
Code:
Visit the <a href
="https://deloittenet.deloitte.com/PC/PracticeComm/Industries/
CIP/PIP/Pages/home.aspx"> Process & Industrial Products
Site</a>
25
Internal Links:
1. Identify and mark the places in your document that you want to link
to.
For example, mark the top of your page or its major headings.
2. Link to those spots.
When you create a link from one Web page to another, you use URLs
to define the location of the page you want to link to. However, URLs
apply to a whole page, not segments of a page. If you want to direct
your links to a specific place on the page, you first have to mark the
spot you want to link to. You use the anchor element with the name
attribute to make your mark:
<a name="top"></a>
Notice that there isn't any text between the opening and closing tags.
That's because an anchor tag that marks a spot doesn't need text to
hang the spot on. Instead, you simply create an empty anchor tag
and you've created a spot in your document that you can link to. To
link to this spot, you use a slightly different URL than you've seen
before:
<a href="#top">Back to top</a>
The pound sign (#) indicates that you're pointing to a spot on the
page, rather than another page.
26
Place a named anchor
tag here i.e. <a
name="TOP"></a>
(We have identified the
spot)
Add a hyperlink here in
order to click and go to
the top of the page
<a href="#TOP">Back
to Top</a>
27
Mailto Links:
You can specify subject line and also add users in the cc and bcc fields.
Code:
<a href="mailto:<email id>?
cc=mailto:<email id>&
bcc=mailto:<email id>&
subject=summer party&
body=you are invited to a big summer party!">
Send Mail
</a>
28
Adding Images to a Webpage:
Images are stored in files outside your WebPages, which means you
will need to upload them to your Internet Service Provider as files
separate from your WebPages.
Tag: <IMG>
<body>
<center>
<h3> Working with images</h3>
<img src=“url" alt="HTML" width =252 height=252 />
</center>
</body>
29
Graphical Link:
You can also add a link to an image.
Code:
<body>
<center>
<h3> Hyper linking an image</h3>
<a href= "http://www.google.co.in/">
<img src="../images.jpg" alt="HTML" width =152 height=100/></a>
</center>
</body>

More Related Content

PDF
Chapter 2 Notes, MCQs, and QA (HTML and CSS).pdf
PPTX
How to learn HTML in 10 Days
PPTX
Grade 6-Hyper Text Markup Language .pptx
PDF
PPTX
Ict html
PDF
INTERNSHIP PROJECT PPT RAJ HZL.pdf
PPTX
Html
Chapter 2 Notes, MCQs, and QA (HTML and CSS).pdf
How to learn HTML in 10 Days
Grade 6-Hyper Text Markup Language .pptx
Ict html
INTERNSHIP PROJECT PPT RAJ HZL.pdf
Html

Similar to HTML Basic Training for beginners - Learn HTML coding (20)

PPTX
HTML Basic Tags
PPTX
HTML.pptx
PPTX
Html Workshop
PDF
Web Development 1 (HTML & CSS)
PPTX
Web_Devp_HTML_CSS00jfhfghhdf0000000.pptx
PDF
WEB PROGRAMMING bharathiar university bca unitII
PPTX
Chapter-5.pptx introduction to HTML and CSS
PPTX
PPTX
PPTX
BVK_PTT_HTML-Unit - III (1).pptx
PDF
IGCSE ICT (0417/0983) - Website Authoring - Ajiro Tech
PPTX
WEB TECHNOLOGY SLIDE 2 coe35mgfdggdh.pptx
PPTX
WEB AUTHORING PRESENTATION FOR IGCSEpptx
PPTX
WEB AUTHORING PRESENTATION FOR IGCSEpptx
PDF
HTML.pdf
PDF
Tm 1st quarter - 1st meeting
PPT
intro-to-html
PPTX
Presentation on HTML
PPTX
INTRODUCTION CODING - THE HTML AND CSS.pptx
HTML Basic Tags
HTML.pptx
Html Workshop
Web Development 1 (HTML & CSS)
Web_Devp_HTML_CSS00jfhfghhdf0000000.pptx
WEB PROGRAMMING bharathiar university bca unitII
Chapter-5.pptx introduction to HTML and CSS
BVK_PTT_HTML-Unit - III (1).pptx
IGCSE ICT (0417/0983) - Website Authoring - Ajiro Tech
WEB TECHNOLOGY SLIDE 2 coe35mgfdggdh.pptx
WEB AUTHORING PRESENTATION FOR IGCSEpptx
WEB AUTHORING PRESENTATION FOR IGCSEpptx
HTML.pdf
Tm 1st quarter - 1st meeting
intro-to-html
Presentation on HTML
INTRODUCTION CODING - THE HTML AND CSS.pptx
Ad

Recently uploaded (20)

PDF
Empowerment Technology for Senior High School Guide
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PPTX
Introduction to pro and eukaryotes and differences.pptx
PDF
MICROENCAPSULATION_NDDS_BPHARMACY__SEM VII_PCI .pdf
PDF
Race Reva University – Shaping Future Leaders in Artificial Intelligence
PDF
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
PDF
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 1).pdf
DOCX
Cambridge-Practice-Tests-for-IELTS-12.docx
PDF
Journal of Dental Science - UDMY (2021).pdf
PDF
Hazard Identification & Risk Assessment .pdf
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PPTX
What’s under the hood: Parsing standardized learning content for AI
PDF
HVAC Specification 2024 according to central public works department
PDF
Uderstanding digital marketing and marketing stratergie for engaging the digi...
PPTX
Computer Architecture Input Output Memory.pptx
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PPTX
Core Concepts of Personalized Learning and Virtual Learning Environments
PDF
Complications of Minimal Access-Surgery.pdf
Empowerment Technology for Senior High School Guide
Share_Module_2_Power_conflict_and_negotiation.pptx
Environmental Education MCQ BD2EE - Share Source.pdf
Introduction to pro and eukaryotes and differences.pptx
MICROENCAPSULATION_NDDS_BPHARMACY__SEM VII_PCI .pdf
Race Reva University – Shaping Future Leaders in Artificial Intelligence
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 1).pdf
Cambridge-Practice-Tests-for-IELTS-12.docx
Journal of Dental Science - UDMY (2021).pdf
Hazard Identification & Risk Assessment .pdf
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
What’s under the hood: Parsing standardized learning content for AI
HVAC Specification 2024 according to central public works department
Uderstanding digital marketing and marketing stratergie for engaging the digi...
Computer Architecture Input Output Memory.pptx
B.Sc. DS Unit 2 Software Engineering.pptx
Core Concepts of Personalized Learning and Virtual Learning Environments
Complications of Minimal Access-Surgery.pdf
Ad

HTML Basic Training for beginners - Learn HTML coding

  • 2. 1 Agenda Day 1 - Topics 1. Introduction to HTML âť– Why HTML? âť– Structure of HTML 2. Formatting Tags âť– Basic Formatting Tags âť– Setting Fonts 3. Lists and Links âť– Unordered, Ordered and Definition List âť– Links âť– Mailto 4. Images âť– Adding Images âť– Hyper linking Images
  • 3. 2 Introduction to HTML HTML is the language you use to create WebPages. Left to themselves, web browsers would take the text and images in your web pages and wrap them up into what looks like a single paragraph without any line breaks. With HTML, you act as an editor, marking up a page to indicate its format, telling the web browser where you want a new line to begin or how you want text or images aligned. In short HTML is all about specifying the structure and format of your Web page.
  • 4. 3 What is markup language? The HTML includes a collection of markup elements and attributes that describe the letter’s contents: The <html> element defines the document as an HTML document. The <head> element creates a header section for the document, and the <title> element inside of it defines a document title that will be displayed in the browser’s title bar. The <body> element holds the actual text that will display in the browser window.
  • 5. 4 Structure of HTML <HTML> <HEAD> <TITLE> Web Page number one! </TITLE> </HEAD> <BODY> Welcome to HTML </BODY> </HTML> Title is reflected here. Body is reflected here.
  • 6. 5 Tags And Attributes Tags: Anything enclosed in angle brackets i.e. < and > are called tags. Example: <HTML> tag is used to indicate that this webpage is written in HTML. Every opening tag <HTML> should have an ending tag as well </HTML>. Collectively, a starting tag, an ending tag and everything between them make up an HTML element. Attributes: HTML tags tell web browsers how to format and organize web pages, but there’s more to tell i.e. you can customize most tags using attributes. An Attributes is a keyword that you use in an opening tag to give more information to the web browser. <TAGNAME ATTRIBUTE = VALUE>
  • 8. 7 Basic Formatting Tags 1) Headings: There is a special tag for specifying headings in HTML. There are 6 levels of headings in HTML ranging from h1 for the most important, to h6 for the least important. Code for this would be : <h1>Heading 1</h1> <h2>Heading 2</h2> <h3>Heading 3</h3> <h4>Heading 4</h4> <h5>Heading 5</h5> <h6>Heading 6</h6> OUTPUT
  • 9. 8 2) Bold: You specify bold text with the <b> or <Strong> tag. Code: <b>This text is bold.</b> OR <Strong> This text is bold </strong> Output
  • 10. 9 3) Italics: You specify italic text with the <i> tag or <em> tag. Code: <i>This text is italicized.</i> OR <em>This text is italicized using emphasize tag</em>
  • 11. 10 3) Underline: You specify underline text with the <u> tag. Code: <u>This text needs importance.</u> Example: <u>This text needs importance.</u>
  • 12. 11 4) Line Breaks You specify line break with the <br> tag. Code: <p>Here is a...<br />line break.</p>
  • 13. 12 5) Horizontal Rule Code: Here's a horizontal rule... <hr size="2" color="#FF0000"/> ...that was a horizontal rule :)
  • 14. 13 6) Center: This tag aligns the text in center Code: <Center> Welcome to HTML Basics </center>
  • 15. 14 6) Paragraph: When you want to set paragraphs on our WebPages, use paragraph tag. Code: <p> Welcome to HTML Basics </p> <p> Introduction</p>
  • 16. 15 7) Fonts: You use FONT tag to set text color, font face and size. Code: <Font face=“Verdana” color="maroon" size =4>If you notice, we have used attributes for the font tag. <em>Attributes</em> are nothing but properties added to the respective tags.</font>
  • 17. 16 Aligning of Text: <p><Font face=“Verdana” color="maroon" size =4>If you notice, we have used attributes for the font tag. <em>Attributes</em> are nothing but properties added to the respective tags.</font></p> <p align="right">If you notice, we have used attributes for the font tag.</p> <p align="left">If you notice, we have used attributes for the font tag</p> <p align="center">If you notice, we have used attributes for the font tag</p>
  • 18. Lists
  • 19. 18 Creating lists: How would you display a list in a Web page? Simply by using ordered or unordered lists. ➢ Unordered list display a bullet in front of each list items. Tag: <UL> <LI></LI> </UL> ➢ Ordered list display the items in numerical or alphabetical terms. Tag : <OL> <LI></LI> </OL> ➢ Other type of list is Definition list, though not used much. Purpose: Organizes terms and their definitions in pairs. Tag: <DL> <DT>MBA</DT> <DD>Masters in Business Administration</DD> </DL>
  • 20. 19 Code for Ordered list <Center>Basics of HTML</Center> <ol type="A"> (Other types 1, A, a, i, I) <li> Introduction to HTML</li> <li>Formatting Tags</li> <li>Lists and Links</li> <li>Images</li> </ol>
  • 21. 20 Unordered List <Center>Basics of HTML</Center> <ul type="circle"> (other types are square, disc) <li> Introduction to HTML</li> <li>Formatting Tags</li> <li>Lists and Links</li> <li>Images</li> </ul>
  • 22. 21 Definition List <DL> <DT>M.B.A</DT> <DD> Masters Of Business Administration</DD><br> <DT>HTML</DT> <DD> HyperText Markup Language</DD> </DL>
  • 24. 23 Creation of Links: Links, otherwise known as hyperlinks, are defined using the <a> tag - otherwise known as the anchor element. To create a hyperlink, you use the a tag in conjunction with the href attribute (href stands for Hypertext Reference). The value of the href attribute is the URL, or, location of where the link is pointing to. Types of links: 1) External Links: Links which take us to another webpage/site. 2) Internal Links: Links which take us to a particular section within a webpage/website. 3) Graphical Links: Images which are linked instead of text (will be covered in next topic). Hypertext references can use absolute URLS, relative URLs: Absolute :This refers to a URL where the full path is provided. Relative: This refers to a URL where only the path, relative to the current location, is provided.
  • 25. 24 External Links: Code: Visit the <a href ="https://deloittenet.deloitte.com/PC/PracticeComm/Industries/ CIP/PIP/Pages/home.aspx"> Process & Industrial Products Site</a>
  • 26. 25 Internal Links: 1. Identify and mark the places in your document that you want to link to. For example, mark the top of your page or its major headings. 2. Link to those spots. When you create a link from one Web page to another, you use URLs to define the location of the page you want to link to. However, URLs apply to a whole page, not segments of a page. If you want to direct your links to a specific place on the page, you first have to mark the spot you want to link to. You use the anchor element with the name attribute to make your mark: <a name="top"></a> Notice that there isn't any text between the opening and closing tags. That's because an anchor tag that marks a spot doesn't need text to hang the spot on. Instead, you simply create an empty anchor tag and you've created a spot in your document that you can link to. To link to this spot, you use a slightly different URL than you've seen before: <a href="#top">Back to top</a> The pound sign (#) indicates that you're pointing to a spot on the page, rather than another page.
  • 27. 26 Place a named anchor tag here i.e. <a name="TOP"></a> (We have identified the spot) Add a hyperlink here in order to click and go to the top of the page <a href="#TOP">Back to Top</a>
  • 28. 27 Mailto Links: You can specify subject line and also add users in the cc and bcc fields. Code: <a href="mailto:<email id>? cc=mailto:<email id>& bcc=mailto:<email id>& subject=summer party& body=you are invited to a big summer party!"> Send Mail </a>
  • 29. 28 Adding Images to a Webpage: Images are stored in files outside your WebPages, which means you will need to upload them to your Internet Service Provider as files separate from your WebPages. Tag: <IMG> <body> <center> <h3> Working with images</h3> <img src=“url" alt="HTML" width =252 height=252 /> </center> </body>
  • 30. 29 Graphical Link: You can also add a link to an image. Code: <body> <center> <h3> Hyper linking an image</h3> <a href= "http://www.google.co.in/"> <img src="../images.jpg" alt="HTML" width =152 height=100/></a> </center> </body>