SlideShare a Scribd company logo
1 of 23
Download to read offline
Introduction to
html
Professional Guru
BY
WHAT IS HTML
HTML(Hypertext Markup language) is the language used to
create web pages. 
HTML language uses tags to create the web pages. 
Browsers read these tags to display the output to the user.
Note that html is interpreted browsers and hence we don't
need to compile it.
Professional Guru
TAGS
Tags are Predefined keywords inside angular brackets.
Example : To represent body tag in html, we need to put it inside
angular brackets like <body> . Now this is how we write body tag
inside html page.
Example of other tags are <html>, <p> <h1> etc.
Let's consider the example of a building. So how we create a
building. We add bricks, tiles, pillars and other materials in a prope
order, and then we use cement and create a building. Similarly for
a web page we add materials like different tags and finally add
them up to create a web page.
Professional Guru
HTML FILE
STRUCTURE
The root tag is <html> 
It has two child tags as <head>
and <body>
Professional Guru
DOCTYPE 
TAG
Document Type Declaration or DOCTYPE declares which version of
html is being followed by the document. Note that doctype is not a
html tag, it is just used to tell the browser about the version of
the html to follow for the current code. Note that <!Doctype>
should be the first tag in html code. 
In html version, there are three types of DOCTYPES can be used :
                       Strict, Transitional, Frameset.
Example:
This is an example of Transitional type doc type.
Professional Guru
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML4.01 Transitional
//EN""http://www.w3.org/TR/html4/loose.dtd">
HEAD
TAG
The head tag contains the header information, link to scripts and
metadata about the web page. The <head> tag is placed outside
the body tag. Let's look at a code snippet having doctype, head
and body tag included. The <title> tag is contained inside head
tag. It is used to show the title of the web page.
1. title - specifies the title for a web page
2. meta - specifies the content type
3. link - used to call an external CSS page
4. style - specifies that CSS is written inside this tag
5. script - specifies that JavaScript is written inside this tag
Professional Guru
Head Tags has Child Tags
META
TAGS
keywords attribute defines keywords for search engines:
<meta name="keywords" content="clothes, fashion, fashion
accessories">
Description attribute describes your web page:
<meta name="description" content="Buy fashin clothes and
accessories online" >
Revised attribute define the last revision of your page:
<meta name="revised" content="Hege Refsnes, 23/10/2011" >
http-equiv attribute Refreshes document every 10 seconds:
<meta http-equiv="refresh" content="10">
Professional Guru
FIRST
HTML
Open any editor of your choice or use notepad and type in the
code shown below. After typing it save it as first.html file and
open it in a web browser. Hey..! you have created first web page.
<html>
    <body>
        <h1> Hi .. I am a heading</h1>
    </body>
</html>
Professional Guru
HTML
BASICS
Lets now dissect the code. The first tag is the root tag which is <html>. 
All html files need to have <html> as the starting tag. 
The body tag contains the tags that display the output to the browser. We
have <h1> tag which is the headline tag. We have <h1> to <h6> tags
where <h1> has the largest font size and <h6> has the smallest.
Whatever content we write inside the h1 tag, it will become a headline
with bold and increased font size. Next is the closing </body> tag
followed by the closing </html> tag.
Note that we add a slash in the beginning to close it. So if the beginning is
<body> tag, to end the tag we add a slash and it becomes </body>.
Lets understand other html tags in the next section.
Professional Guru
TYPES OF
TAGS
Professional Guru
Standard tags : Standard HTML tags have opening and closing tag.
Ex : <body></body>, <h1></h1>
Self closing tags: These are tags which don't have a closing pair of
tags. 
Ex: <br> tag which is line break.
BLOCK ELEMENTS 
                   VS
INLINE ELEMENTS
Professional Guru
BLOCK LEVEL
TAGS
Professional Guru
Block level tags: Block level tags add a line break for the content
Ex: <h1>, <p> for paragraph tags.
A block element will take the complete horizontal area of the web page. So,
you add a block element, the next element will be placed in next line only.
INLINE
TAGS
Professional Guru
Inline tags: Inline tags don't add a line break. Ex: bold(<b>) tag
which makes the content in bold letters.
IMPORTANT
TAGS
Professional Guru
Paragraphs: For paragraph we use <p> tag.
Note that closing this tag is optional, but it's good to have the
opening and closing tag.
Ex: <p> Hello, i am a text inside paragraph</p> . Note that
paragraph is a block level tag.
Links: To display a link we use the <a> tag.
Ex: <a href = “http://google.com ”>Click to Google</a>.
Professional Guru
Here href is the source of the link. Notice that we have added a
property to the tag using a href keyword. We call these
properties as attributes.
<b> is for making text bold, <i> is for making text italic ,<em>
for emphasizing a text and <u> is for underline.
<img> tag is used to display an image. Note that it is a self
closing tag. Means we don't need to close it.
For <img> tag we have attributes namely width and height to
adjust the height and width of the image. Let’s create a snippet
of code to display an image, with a link and some text
formatting!
IMPORTANT
TAGS
Professional Guru
Create a file with the name mypage.html and write the code below. To add a comment
enclose the comment like this <!-- this is a comment→
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
      <head>
             <title>This is the title</title>
      </head>
   <body>
          <p> I am text inside a paragraph</p>
          <em> I am a emphasized comment and see the two line break below me!</em>
          <br/>
          <i>I will be italicised</i>
 <pre>maintains the content written as such </pre>
                  <u>I will have an underline</u>
                  <img src = “myimage.jpg” width = “200” height = “150”>
                  <hr/>
                  <a href = “http://google.com”>Google me</a>
                  <!-- I am a comment and will not be visible in the page →
                  <h1> I am the bigges heading</h1>
                  <h2> I am the smaller heading</h2>
                  <h6> I am the smalles heading</h6>
     </body>
</html>
TRY 
EXAMPLE
Professional Guru
HTML table can be considered as group of rows where each of them contains a group
of cells.
A table can be created using the below tags
<table> element which acts as main container
<tr> element which acts as row container
<td> element which defines a single cell.
Let's look at an example of creating table in the next slide
CREATE
TABLES
<table>
     <tr>
         <td>Cell 1</td>
         <td>Cell 2</td>
         <td>Cell 3</td>
      </tr>
      <tr>
          <td>Cell 4</td>
          <td>Cell 5</td>
          <td>Cell 6</td>
      </tr>
</table>
Professional Guru
LISTS
<OL TYPE="1">
     <LI> Item one </LI>
     <LI> Item two </LI>
     <OL TYPE="I" >
            <LI> Sublist item No
one </LI>
            <LI> Sublist item No
two </LI>
            <OL TYPE="i">
                       <LI> Sub-sublist
item No one </LI>
                       <LI> Sub-sublist
item No two </LI>
            </OL>
      </OL>
</OL>
<UL>
    <LI> Item One </LI>
    <LI> Item Two </LI>
    <UL TYPE="circle">
           <LI> Item Three </LI>
           <LI> Item Four </LI>
           <UL TYPE="square">
                  <LI> Item Five
</LI>
                  <LI> Item Six</LI>
           </UL>
     </UL>
</UL>
Ordered Lists Unordered Lists
Professional Guru
HTML
FORMS
Forms are used to enter data and send the data to the server. Let's have a look at a
simple form example.
<form name = “myform.html” action = “submit.php” method = “GET”>
First Name <input type = “text” name =“first name”>
 <input type = “submit” value = “submit me” name = “submit”>
</form>
In the above example we have a form tag. The attribute name represents name of
the form tag, action represent the page to which the form data is sent and method
represent the way of data transfer. We have GET and POST methods.
Inside the form tag we have nested the input tag which creates a text box . Again
the input tag needs to have a name and type attribute to represent name and type
respectively.
Then we have the input with type as submit which creates a submit button. Now go
ahead and write this form to test it yourself.
Professional Guru
INPUT
TYPES
There are many input types available for forms. Some important input
types are text input, text area, select, checkbox and radio buttons.
input  
     a. text
     b. password
     c. radio
     d. checkbox
     e. submit
     f. reset
select
textarea
button
We will cover these in our code section.
Professional Guru
META
TAGS                                 
Metadata is information about data.
The <meta> tag is kept inside the <head> element.
The <meta> tag provides metadata about the HTML document.
Metadata is not be displayed on the web page. It is used to
provide information about data to browsers, web services and
search Engines!
Meta elements are typically used to specify page description,
keywords and other metadata.
Professional Guru
<DIV>
TAGS
The <div> tag defines a section of a web page. It is a block level
tag.
You can use the DIV element to divide our web page into
sections and to give properties to the content using CSS(we will
discuss about CSS in the next section)
Example:
<div>
<p>This is a paragraph</p>
</div>
Professional Guru
<SPAN>
TAGS
Span tag is similar to div tag but it's a inline tag which means
the content will not go to next line if we classify it using span
tag.
The main use of span tag is to add properties to a content
using CSS.
Thank  You

More Related Content

What's hot (20)

Html
HtmlHtml
Html
 
Css
CssCss
Css
 
Intro to html
Intro to htmlIntro to html
Intro to html
 
Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)
 
Html tutorials
Html tutorialsHtml tutorials
Html tutorials
 
Div tag presentation
Div tag presentationDiv tag presentation
Div tag presentation
 
Learning HTML
Learning HTMLLearning HTML
Learning HTML
 
Css
CssCss
Css
 
html-table
html-tablehtml-table
html-table
 
CSS
CSSCSS
CSS
 
HTML (Web) basics for a beginner
HTML (Web) basics for a beginnerHTML (Web) basics for a beginner
HTML (Web) basics for a beginner
 
Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basics
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Css Ppt
Css PptCss Ppt
Css Ppt
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Css types internal, external and inline (1)
Css types internal, external and inline (1)Css types internal, external and inline (1)
Css types internal, external and inline (1)
 
CSS
CSSCSS
CSS
 
Lecture 2 introduction to html
Lecture 2  introduction to htmlLecture 2  introduction to html
Lecture 2 introduction to html
 
Html presentation
Html presentationHtml presentation
Html presentation
 
Eye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easilyEye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easily
 

Similar to Introduction to HTML

Title, heading and paragraph tags
Title, heading and paragraph tagsTitle, heading and paragraph tags
Title, heading and paragraph tagsSara Corpuz
 
HTML Basics 1 workshop
HTML Basics 1 workshopHTML Basics 1 workshop
HTML Basics 1 workshopJohn Allan
 
Learn HTML and CSS_ Learn to build a website with HTML and CSS
Learn HTML and CSS_ Learn to build a website with HTML and CSS Learn HTML and CSS_ Learn to build a website with HTML and CSS
Learn HTML and CSS_ Learn to build a website with HTML and CSS simodafire
 
Merging Result-merged.pdf
Merging Result-merged.pdfMerging Result-merged.pdf
Merging Result-merged.pdfsimodafire
 
Html for beginners part I
Html for beginners part IHtml for beginners part I
Html for beginners part IUnaib Aslam
 
Hyper text markup Language
Hyper text markup LanguageHyper text markup Language
Hyper text markup LanguageNaveeth Babu
 
3 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp023 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp02Aditya Varma
 
html complete notes
html complete noteshtml complete notes
html complete notesonactiontv
 
html compete notes basic to advanced
html compete notes basic to advancedhtml compete notes basic to advanced
html compete notes basic to advancedvirtualworld14
 
AttributesL3.pptx
AttributesL3.pptxAttributesL3.pptx
AttributesL3.pptxKrishRaj48
 
Html (hypertext markup language)
Html (hypertext markup language)Html (hypertext markup language)
Html (hypertext markup language)Anuj Singh Rajput
 

Similar to Introduction to HTML (20)

Title, heading and paragraph tags
Title, heading and paragraph tagsTitle, heading and paragraph tags
Title, heading and paragraph tags
 
HTML/HTML5
HTML/HTML5HTML/HTML5
HTML/HTML5
 
HTML Basics 1 workshop
HTML Basics 1 workshopHTML Basics 1 workshop
HTML Basics 1 workshop
 
Learn HTML and CSS_ Learn to build a website with HTML and CSS
Learn HTML and CSS_ Learn to build a website with HTML and CSS Learn HTML and CSS_ Learn to build a website with HTML and CSS
Learn HTML and CSS_ Learn to build a website with HTML and CSS
 
Merging Result-merged.pdf
Merging Result-merged.pdfMerging Result-merged.pdf
Merging Result-merged.pdf
 
Html for beginners part I
Html for beginners part IHtml for beginners part I
Html for beginners part I
 
Hyper text markup Language
Hyper text markup LanguageHyper text markup Language
Hyper text markup Language
 
IT Unit III.pptx
IT Unit III.pptxIT Unit III.pptx
IT Unit III.pptx
 
HTML Fundamentals
HTML FundamentalsHTML Fundamentals
HTML Fundamentals
 
3 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp023 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp02
 
html complete notes
html complete noteshtml complete notes
html complete notes
 
html compete notes basic to advanced
html compete notes basic to advancedhtml compete notes basic to advanced
html compete notes basic to advanced
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Learn HTML Easier
Learn HTML EasierLearn HTML Easier
Learn HTML Easier
 
Week 2-intro-html
Week 2-intro-htmlWeek 2-intro-html
Week 2-intro-html
 
AttributesL3.pptx
AttributesL3.pptxAttributesL3.pptx
AttributesL3.pptx
 
Introduction to HTML.pptx
Introduction to HTML.pptxIntroduction to HTML.pptx
Introduction to HTML.pptx
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
 
Intodcution to Html
Intodcution to HtmlIntodcution to Html
Intodcution to Html
 
Html (hypertext markup language)
Html (hypertext markup language)Html (hypertext markup language)
Html (hypertext markup language)
 

More from Professional Guru (20)

introduction to AWs
introduction to AWsintroduction to AWs
introduction to AWs
 
introduction to AWs
introduction to AWsintroduction to AWs
introduction to AWs
 
Introduction to JAVA
Introduction to JAVAIntroduction to JAVA
Introduction to JAVA
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
 
Introduction to Big Data
Introduction to Big DataIntroduction to Big Data
Introduction to Big Data
 
Introduction to Azure
Introduction to AzureIntroduction to Azure
Introduction to Azure
 
introduction to DEVOPS
introduction to DEVOPSintroduction to DEVOPS
introduction to DEVOPS
 
Introduction to Azure
Introduction to AzureIntroduction to Azure
Introduction to Azure
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
 
Introduction to Angular Js
Introduction to Angular JsIntroduction to Angular Js
Introduction to Angular Js
 
Dev ops concept
Dev ops conceptDev ops concept
Dev ops concept
 
Robotic Process Automation
Robotic Process AutomationRobotic Process Automation
Robotic Process Automation
 
Dev ops concept
Dev ops conceptDev ops concept
Dev ops concept
 
Introduction to AWS
Introduction to AWSIntroduction to AWS
Introduction to AWS
 
introduction to hadoop
introduction to hadoopintroduction to hadoop
introduction to hadoop
 
Introduction to SQL SERVER
Introduction to  SQL SERVERIntroduction to  SQL SERVER
Introduction to SQL SERVER
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
 
Introduction to Azure
Introduction to AzureIntroduction to Azure
Introduction to Azure
 
Introduction to Angular Js
Introduction to Angular JsIntroduction to Angular Js
Introduction to Angular Js
 
Rpa developer resume
Rpa developer resumeRpa developer resume
Rpa developer resume
 

Recently uploaded

Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
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
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 

Recently uploaded (20)

Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
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
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 

Introduction to HTML

  • 2. WHAT IS HTML HTML(Hypertext Markup language) is the language used to create web pages.  HTML language uses tags to create the web pages.  Browsers read these tags to display the output to the user. Note that html is interpreted browsers and hence we don't need to compile it. Professional Guru
  • 3. TAGS Tags are Predefined keywords inside angular brackets. Example : To represent body tag in html, we need to put it inside angular brackets like <body> . Now this is how we write body tag inside html page. Example of other tags are <html>, <p> <h1> etc. Let's consider the example of a building. So how we create a building. We add bricks, tiles, pillars and other materials in a prope order, and then we use cement and create a building. Similarly for a web page we add materials like different tags and finally add them up to create a web page. Professional Guru
  • 4. HTML FILE STRUCTURE The root tag is <html>  It has two child tags as <head> and <body> Professional Guru
  • 5. DOCTYPE  TAG Document Type Declaration or DOCTYPE declares which version of html is being followed by the document. Note that doctype is not a html tag, it is just used to tell the browser about the version of the html to follow for the current code. Note that <!Doctype> should be the first tag in html code.  In html version, there are three types of DOCTYPES can be used :                        Strict, Transitional, Frameset. Example: This is an example of Transitional type doc type. Professional Guru <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML4.01 Transitional //EN""http://www.w3.org/TR/html4/loose.dtd">
  • 6. HEAD TAG The head tag contains the header information, link to scripts and metadata about the web page. The <head> tag is placed outside the body tag. Let's look at a code snippet having doctype, head and body tag included. The <title> tag is contained inside head tag. It is used to show the title of the web page. 1. title - specifies the title for a web page 2. meta - specifies the content type 3. link - used to call an external CSS page 4. style - specifies that CSS is written inside this tag 5. script - specifies that JavaScript is written inside this tag Professional Guru Head Tags has Child Tags
  • 7. META TAGS keywords attribute defines keywords for search engines: <meta name="keywords" content="clothes, fashion, fashion accessories"> Description attribute describes your web page: <meta name="description" content="Buy fashin clothes and accessories online" > Revised attribute define the last revision of your page: <meta name="revised" content="Hege Refsnes, 23/10/2011" > http-equiv attribute Refreshes document every 10 seconds: <meta http-equiv="refresh" content="10"> Professional Guru
  • 8. FIRST HTML Open any editor of your choice or use notepad and type in the code shown below. After typing it save it as first.html file and open it in a web browser. Hey..! you have created first web page. <html>     <body>         <h1> Hi .. I am a heading</h1>     </body> </html> Professional Guru
  • 9. HTML BASICS Lets now dissect the code. The first tag is the root tag which is <html>.  All html files need to have <html> as the starting tag.  The body tag contains the tags that display the output to the browser. We have <h1> tag which is the headline tag. We have <h1> to <h6> tags where <h1> has the largest font size and <h6> has the smallest. Whatever content we write inside the h1 tag, it will become a headline with bold and increased font size. Next is the closing </body> tag followed by the closing </html> tag. Note that we add a slash in the beginning to close it. So if the beginning is <body> tag, to end the tag we add a slash and it becomes </body>. Lets understand other html tags in the next section. Professional Guru
  • 10. TYPES OF TAGS Professional Guru Standard tags : Standard HTML tags have opening and closing tag. Ex : <body></body>, <h1></h1> Self closing tags: These are tags which don't have a closing pair of tags.  Ex: <br> tag which is line break.
  • 11. BLOCK ELEMENTS                     VS INLINE ELEMENTS Professional Guru
  • 12. BLOCK LEVEL TAGS Professional Guru Block level tags: Block level tags add a line break for the content Ex: <h1>, <p> for paragraph tags. A block element will take the complete horizontal area of the web page. So, you add a block element, the next element will be placed in next line only.
  • 13. INLINE TAGS Professional Guru Inline tags: Inline tags don't add a line break. Ex: bold(<b>) tag which makes the content in bold letters.
  • 14. IMPORTANT TAGS Professional Guru Paragraphs: For paragraph we use <p> tag. Note that closing this tag is optional, but it's good to have the opening and closing tag. Ex: <p> Hello, i am a text inside paragraph</p> . Note that paragraph is a block level tag. Links: To display a link we use the <a> tag. Ex: <a href = “http://google.com ”>Click to Google</a>.
  • 15. Professional Guru Here href is the source of the link. Notice that we have added a property to the tag using a href keyword. We call these properties as attributes. <b> is for making text bold, <i> is for making text italic ,<em> for emphasizing a text and <u> is for underline. <img> tag is used to display an image. Note that it is a self closing tag. Means we don't need to close it. For <img> tag we have attributes namely width and height to adjust the height and width of the image. Let’s create a snippet of code to display an image, with a link and some text formatting! IMPORTANT TAGS
  • 16. Professional Guru Create a file with the name mypage.html and write the code below. To add a comment enclose the comment like this <!-- this is a comment→ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html>       <head>              <title>This is the title</title>       </head>    <body>           <p> I am text inside a paragraph</p>           <em> I am a emphasized comment and see the two line break below me!</em>           <br/>           <i>I will be italicised</i>  <pre>maintains the content written as such </pre>                   <u>I will have an underline</u>                   <img src = “myimage.jpg” width = “200” height = “150”>                   <hr/>                   <a href = “http://google.com”>Google me</a>                   <!-- I am a comment and will not be visible in the page →                   <h1> I am the bigges heading</h1>                   <h2> I am the smaller heading</h2>                   <h6> I am the smalles heading</h6>      </body> </html> TRY  EXAMPLE
  • 17. Professional Guru HTML table can be considered as group of rows where each of them contains a group of cells. A table can be created using the below tags <table> element which acts as main container <tr> element which acts as row container <td> element which defines a single cell. Let's look at an example of creating table in the next slide CREATE TABLES <table>      <tr>          <td>Cell 1</td>          <td>Cell 2</td>          <td>Cell 3</td>       </tr>       <tr>           <td>Cell 4</td>           <td>Cell 5</td>           <td>Cell 6</td>       </tr> </table>
  • 18. Professional Guru LISTS <OL TYPE="1">      <LI> Item one </LI>      <LI> Item two </LI>      <OL TYPE="I" >             <LI> Sublist item No one </LI>             <LI> Sublist item No two </LI>             <OL TYPE="i">                        <LI> Sub-sublist item No one </LI>                        <LI> Sub-sublist item No two </LI>             </OL>       </OL> </OL> <UL>     <LI> Item One </LI>     <LI> Item Two </LI>     <UL TYPE="circle">            <LI> Item Three </LI>            <LI> Item Four </LI>            <UL TYPE="square">                   <LI> Item Five </LI>                   <LI> Item Six</LI>            </UL>      </UL> </UL> Ordered Lists Unordered Lists
  • 19. Professional Guru HTML FORMS Forms are used to enter data and send the data to the server. Let's have a look at a simple form example. <form name = “myform.html” action = “submit.php” method = “GET”> First Name <input type = “text” name =“first name”>  <input type = “submit” value = “submit me” name = “submit”> </form> In the above example we have a form tag. The attribute name represents name of the form tag, action represent the page to which the form data is sent and method represent the way of data transfer. We have GET and POST methods. Inside the form tag we have nested the input tag which creates a text box . Again the input tag needs to have a name and type attribute to represent name and type respectively. Then we have the input with type as submit which creates a submit button. Now go ahead and write this form to test it yourself.
  • 20. Professional Guru INPUT TYPES There are many input types available for forms. Some important input types are text input, text area, select, checkbox and radio buttons. input        a. text      b. password      c. radio      d. checkbox      e. submit      f. reset select textarea button We will cover these in our code section.
  • 21. Professional Guru META TAGS                                  Metadata is information about data. The <meta> tag is kept inside the <head> element. The <meta> tag provides metadata about the HTML document. Metadata is not be displayed on the web page. It is used to provide information about data to browsers, web services and search Engines! Meta elements are typically used to specify page description, keywords and other metadata.
  • 22. Professional Guru <DIV> TAGS The <div> tag defines a section of a web page. It is a block level tag. You can use the DIV element to divide our web page into sections and to give properties to the content using CSS(we will discuss about CSS in the next section) Example: <div> <p>This is a paragraph</p> </div>
  • 23. Professional Guru <SPAN> TAGS Span tag is similar to div tag but it's a inline tag which means the content will not go to next line if we classify it using span tag. The main use of span tag is to add properties to a content using CSS. Thank  You