SlideShare a Scribd company logo
COMPUTER APPLICATIONS
CLASS X (Code 165)
TOPIC:
UNIT 2: Introduction to HTML
By
HIMANSHU PATHAK
Contents
• Introduction
• Building blocks of HTML
• Basic Structure of HTML
• <HEAD> tag attributes
• <Body> tag attributes
• HTML Text Editors
Introduction
• HTML stands for HyperText Markup Language.
• HyperText simply means "Text within Text." A
text has a link within it, is a hypertext.
• Markup means to structure it in a specific
format.
• So, HTML is called hypertext markup language
because it is a language that allows users to
organize, improve the appearance of, and link
text with data on the internet.
Cont…
• HTML was invented in November 1990 by a
scientist called Tim Berners Lee.
• The purpose was to make it easier for scientists at
different universities to gain access to each
other’s research documents.
• HTML is a format that tells a computer how to
display a web page.
• It consists of different elements which we use to
structure a web page.
Building Blocks of HTML
• Tags: A tag tells the browser to perform an action
as asked by the special word. It is written
between < and > brackets.
• HTML tags are like keywords which defines that
how web browser will format and display the
content.
• When a web browser reads an HTML document,
browser reads it from top to bottom and left to
right.
<p> This is paragraph Tag </p>
Cont…
• Attribute: The features of a tag are defined by an
attribute, and it is applied within the start tag.
• An HTML attribute contains two fields: name &
value.
• The Attributes name and values are case sensitive,
and it is recommended by W3C that it should be
written in Lowercase only.
• We can add multiple attributes in one HTML
element, but need to give space between two
attributes.
• Syntax–
<tagname attribute_name= " attr_value"> content </ tagname>
Cont…
• Elements: An HTML element is defined by a start
tag, some content, and an end tag (Container Tag).
<p> This is paragraph Tag </p>
• Everything inside the opening and closing tags is the content.
But not all elements follow this pattern.
• They only consist of a single tag or an opening tag that
cannot have any content. Example –
<img src=“him.jpg" width="50“ />
• HTML elements with no content are called empty elements.
<br> Tag: br stands for break line.
Tags Vs Elements Vs Attributes
TAGS ELEMENTS ATTRIBUTES
HTML tags are used to hold
the HTML element.
HTML element holds the
content.
HTML attributes are used to
describe the characteristic of
an HTML element in detail.
HTML tags are almost like
keywords.
HTML elements specifies the
general content.
HTML attributes specify
various additional properties
to the existing HTML
element.
Basic Structure
• <!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<p>My first paragraph.</p>
</body>
</html>
Cont…
• The <!DOCTYPE html> declaration defines that this
document is an HTML5 document
• The <html> element is the root element of an HTML page
• The <head> element contains meta information about the
HTML page
• The <title> element specifies a title for the HTML page
(which is shown in the browser's title bar or in the page's
tab)
• The <body> element defines the document's body, and is
a container for all the visible contents, such as headings,
paragraphs, images, hyperlinks, tables, lists, etc.
<HEAD> Tag Attributes
• The <title> tag defines the title of a web page
(required).
• The <style> tag contains CSS code.
• The <link> tag contains a link to an external style
sheet. It can have two attributes : rel =
"stylesheet" and href.
• The <meta> tag provides additional information
(metadata) about HTML document.
• The <script> tag contains a script (generally
JavaScript).
• The <noscript> tag defines an alternate text, which
is displayed, if the browser doesn’t support scripts.
<BODY> Tag Attributes
• background: It contains the URL of the background image.
It is used to set the background image.
<body background="URL">
• bgcolor: It is used to specify the background color of an
image.
<body bgcolor =“Value”>
– Attribute Values:
• color_name: It sets the background color by using the color
name. For example “red”.
• hex_number: It sets the background color by using the
color hex code. For example “#0000ff”.
• rgb_number: It sets the background color by using the RGB
code. For example: “RGB(0, 153, 0)” .
Cont…
• alink: It is used to specify the color of the active
link.
<body alink="color_name|hex_number|rgb_number">
• link: It is used to specify the color of visited links.
<body link="color_name | hex_number | rgb_number">
• text: It specifies the color of the text in a
document.
<body text="color_name | hex_number | rgb_number">
• vlink: It specifies the color of visited links.
<body vlink="color_name | hex_number | rgb_number">
HTML Text Editors
• An HTML file is a text file, so to create an HTML file we can
use any text editors.
• After learning the basics, you can easily use other
professional text editors which are, Notepad++, Sublime
Text, Vim, etc.
• Note: You can execute HTML file in any browser, but there
are some tags which are not supported by Some Web
browser.
• HTML Code with Notepad:
– Open Notepad (Windows)
– Write code in HTML
– Save the HTML file with .htm or .html extension.
– Open the HTML page in your web browser.
Today we learn
• Basics of HTML
• In the next class, we will start Unit II – HTML
Tags in detail.
•Thanks

More Related Content

What's hot

Shadows Effects in CSS
Shadows Effects in CSSShadows Effects in CSS
Shadows Effects in CSS
Webtech Learning
 
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJSBasic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Deepak Upadhyay
 
Hyperlinks in HTML
Hyperlinks in HTMLHyperlinks in HTML
Hyperlinks in HTMLAarti P
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
veena parihar
 
Html n CSS
Html n CSSHtml n CSS
Html n CSS
Sukrit Gupta
 
Html ppt
Html pptHtml ppt
Html ppt
santosh lamba
 
HTML & CSS.ppt
HTML & CSS.pptHTML & CSS.ppt
HTML & CSS.ppt
vaseemshaik21
 
Html
HtmlHtml
Html tags
Html tagsHtml tags
Html tags
sotero66
 
html-css
html-csshtml-css
Css
CssCss
HTML (Web) basics for a beginner
HTML (Web) basics for a beginnerHTML (Web) basics for a beginner
HTML (Web) basics for a beginner
Jayapal Reddy Nimmakayala
 
Cascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) helpCascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) help
casestudyhelp
 
HTML
HTMLHTML
Html introduction
Html introductionHtml introduction
Html introduction
Dalia Elbadry
 
Html notes with Examples
Html notes with ExamplesHtml notes with Examples
Html notes with Examples
isha
 
Html
HtmlHtml

What's hot (20)

Shadows Effects in CSS
Shadows Effects in CSSShadows Effects in CSS
Shadows Effects in CSS
 
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJSBasic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
 
Hyperlinks in HTML
Hyperlinks in HTMLHyperlinks in HTML
Hyperlinks in HTML
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Html n CSS
Html n CSSHtml n CSS
Html n CSS
 
Html ppt
Html pptHtml ppt
Html ppt
 
HTML & CSS.ppt
HTML & CSS.pptHTML & CSS.ppt
HTML & CSS.ppt
 
Html
HtmlHtml
Html
 
Html tags
Html tagsHtml tags
Html tags
 
Html
HtmlHtml
Html
 
CSS
CSSCSS
CSS
 
html-css
html-csshtml-css
html-css
 
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
 
Cascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) helpCascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) help
 
HTML
HTMLHTML
HTML
 
Html introduction
Html introductionHtml introduction
Html introduction
 
Html notes with Examples
Html notes with ExamplesHtml notes with Examples
Html notes with Examples
 
Html
HtmlHtml
Html
 
Html presentation
Html presentationHtml presentation
Html presentation
 

Similar to Introduction to html

Presentation1.pdf
Presentation1.pdfPresentation1.pdf
Presentation1.pdf
shrutiindane
 
Web forms and html (lect 1)
Web forms and html (lect 1)Web forms and html (lect 1)
Web forms and html (lect 1)
Salman Memon
 
web development.pdf
web development.pdfweb development.pdf
web development.pdf
BagHarki
 
BITM3730Week1.pptx
BITM3730Week1.pptxBITM3730Week1.pptx
BITM3730Week1.pptx
MattMarino13
 
html
htmlhtml
html
tumetr1
 
Lab1_HTML.pptx
Lab1_HTML.pptxLab1_HTML.pptx
Lab1_HTML.pptx
IslamGhonimi1
 
Html
HtmlHtml
HTML introduction for beginners Slides .pptx
HTML introduction for beginners Slides .pptxHTML introduction for beginners Slides .pptx
HTML introduction for beginners Slides .pptx
wewit44414
 
HTML : INTRODUCTION TO WEB DESIGN Presentation
HTML : INTRODUCTION TO WEB DESIGN PresentationHTML : INTRODUCTION TO WEB DESIGN Presentation
HTML : INTRODUCTION TO WEB DESIGN Presentation
surajsutar467
 
Computer fundamentals-internet p2
Computer fundamentals-internet p2Computer fundamentals-internet p2
Computer fundamentals-internet p2
Leo Mark Villar
 
SEO Training in Noida- Skyinfotech.in
SEO Training in Noida- Skyinfotech.inSEO Training in Noida- Skyinfotech.in
SEO Training in Noida- Skyinfotech.in
Sky Infotech
 
Learning html. (Part- 1)
Learning html. (Part- 1)Learning html. (Part- 1)
Learning html. (Part- 1)
manya abrol
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
vardanyan99
 
Html
HtmlHtml
Html5
Html5 Html5
Html5
Shiva RamDam
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
eShikshak
 

Similar to Introduction to html (20)

Presentation1.pdf
Presentation1.pdfPresentation1.pdf
Presentation1.pdf
 
Web forms and html (lect 1)
Web forms and html (lect 1)Web forms and html (lect 1)
Web forms and html (lect 1)
 
web development.pdf
web development.pdfweb development.pdf
web development.pdf
 
Batch -25 PPT.pptx
Batch -25 PPT.pptxBatch -25 PPT.pptx
Batch -25 PPT.pptx
 
BITM3730Week1.pptx
BITM3730Week1.pptxBITM3730Week1.pptx
BITM3730Week1.pptx
 
html
htmlhtml
html
 
Lab1_HTML.pptx
Lab1_HTML.pptxLab1_HTML.pptx
Lab1_HTML.pptx
 
Presentation html
Presentation   htmlPresentation   html
Presentation html
 
Html
HtmlHtml
Html
 
Learn html from www
Learn html from wwwLearn html from www
Learn html from www
 
HTML introduction for beginners Slides .pptx
HTML introduction for beginners Slides .pptxHTML introduction for beginners Slides .pptx
HTML introduction for beginners Slides .pptx
 
HTML : INTRODUCTION TO WEB DESIGN Presentation
HTML : INTRODUCTION TO WEB DESIGN PresentationHTML : INTRODUCTION TO WEB DESIGN Presentation
HTML : INTRODUCTION TO WEB DESIGN Presentation
 
Computer fundamentals-internet p2
Computer fundamentals-internet p2Computer fundamentals-internet p2
Computer fundamentals-internet p2
 
Html
HtmlHtml
Html
 
SEO Training in Noida- Skyinfotech.in
SEO Training in Noida- Skyinfotech.inSEO Training in Noida- Skyinfotech.in
SEO Training in Noida- Skyinfotech.in
 
Learning html. (Part- 1)
Learning html. (Part- 1)Learning html. (Part- 1)
Learning html. (Part- 1)
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
 
Html
HtmlHtml
Html
 
Html5
Html5 Html5
Html5
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 

More from Himanshu Pathak

Introduction to E commerce
Introduction to E commerceIntroduction to E commerce
Introduction to E commerce
Himanshu Pathak
 
Digital property rights
Digital property rightsDigital property rights
Digital property rights
Himanshu Pathak
 
Intellectual property rights
Intellectual property rightsIntellectual property rights
Intellectual property rights
Himanshu Pathak
 
An Introduction to Cyber Ethics
An Introduction to Cyber EthicsAn Introduction to Cyber Ethics
An Introduction to Cyber Ethics
Himanshu Pathak
 
Cascading style sheet part 2
Cascading style sheet   part 2Cascading style sheet   part 2
Cascading style sheet part 2
Himanshu Pathak
 
Cascading style sheet an introduction
Cascading style sheet   an introductionCascading style sheet   an introduction
Cascading style sheet an introduction
Himanshu Pathak
 
Html multimedia
Html multimediaHtml multimedia
Html multimedia
Himanshu Pathak
 
Html forms
Html formsHtml forms
Html forms
Himanshu Pathak
 
Html tables
Html tablesHtml tables
Html tables
Himanshu Pathak
 
Html link and list tags
Html link and list tagsHtml link and list tags
Html link and list tags
Himanshu Pathak
 
HTML Text formatting tags
HTML Text formatting tagsHTML Text formatting tags
HTML Text formatting tags
Himanshu Pathak
 
Basic html tags
Basic html tagsBasic html tags
Basic html tags
Himanshu Pathak
 
Mobile technologies
Mobile technologiesMobile technologies
Mobile technologies
Himanshu Pathak
 
Web services
Web servicesWeb services
Web services
Himanshu Pathak
 
Remote Login and File Transfer Protocols
Remote Login and File Transfer ProtocolsRemote Login and File Transfer Protocols
Remote Login and File Transfer Protocols
Himanshu Pathak
 
Internet protocol
Internet protocolInternet protocol
Internet protocol
Himanshu Pathak
 
Introduction to internet
Introduction to internetIntroduction to internet
Introduction to internet
Himanshu Pathak
 
What is Computer?
What is Computer?What is Computer?
What is Computer?
Himanshu Pathak
 

More from Himanshu Pathak (18)

Introduction to E commerce
Introduction to E commerceIntroduction to E commerce
Introduction to E commerce
 
Digital property rights
Digital property rightsDigital property rights
Digital property rights
 
Intellectual property rights
Intellectual property rightsIntellectual property rights
Intellectual property rights
 
An Introduction to Cyber Ethics
An Introduction to Cyber EthicsAn Introduction to Cyber Ethics
An Introduction to Cyber Ethics
 
Cascading style sheet part 2
Cascading style sheet   part 2Cascading style sheet   part 2
Cascading style sheet part 2
 
Cascading style sheet an introduction
Cascading style sheet   an introductionCascading style sheet   an introduction
Cascading style sheet an introduction
 
Html multimedia
Html multimediaHtml multimedia
Html multimedia
 
Html forms
Html formsHtml forms
Html forms
 
Html tables
Html tablesHtml tables
Html tables
 
Html link and list tags
Html link and list tagsHtml link and list tags
Html link and list tags
 
HTML Text formatting tags
HTML Text formatting tagsHTML Text formatting tags
HTML Text formatting tags
 
Basic html tags
Basic html tagsBasic html tags
Basic html tags
 
Mobile technologies
Mobile technologiesMobile technologies
Mobile technologies
 
Web services
Web servicesWeb services
Web services
 
Remote Login and File Transfer Protocols
Remote Login and File Transfer ProtocolsRemote Login and File Transfer Protocols
Remote Login and File Transfer Protocols
 
Internet protocol
Internet protocolInternet protocol
Internet protocol
 
Introduction to internet
Introduction to internetIntroduction to internet
Introduction to internet
 
What is Computer?
What is Computer?What is Computer?
What is Computer?
 

Recently uploaded

The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
DhatriParmar
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
Kartik Tiwari
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
goswamiyash170123
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 

Recently uploaded (20)

The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 

Introduction to html

  • 1. COMPUTER APPLICATIONS CLASS X (Code 165) TOPIC: UNIT 2: Introduction to HTML By HIMANSHU PATHAK
  • 2. Contents • Introduction • Building blocks of HTML • Basic Structure of HTML • <HEAD> tag attributes • <Body> tag attributes • HTML Text Editors
  • 3. Introduction • HTML stands for HyperText Markup Language. • HyperText simply means "Text within Text." A text has a link within it, is a hypertext. • Markup means to structure it in a specific format. • So, HTML is called hypertext markup language because it is a language that allows users to organize, improve the appearance of, and link text with data on the internet.
  • 4. Cont… • HTML was invented in November 1990 by a scientist called Tim Berners Lee. • The purpose was to make it easier for scientists at different universities to gain access to each other’s research documents. • HTML is a format that tells a computer how to display a web page. • It consists of different elements which we use to structure a web page.
  • 5. Building Blocks of HTML • Tags: A tag tells the browser to perform an action as asked by the special word. It is written between < and > brackets. • HTML tags are like keywords which defines that how web browser will format and display the content. • When a web browser reads an HTML document, browser reads it from top to bottom and left to right. <p> This is paragraph Tag </p>
  • 6. Cont… • Attribute: The features of a tag are defined by an attribute, and it is applied within the start tag. • An HTML attribute contains two fields: name & value. • The Attributes name and values are case sensitive, and it is recommended by W3C that it should be written in Lowercase only. • We can add multiple attributes in one HTML element, but need to give space between two attributes. • Syntax– <tagname attribute_name= " attr_value"> content </ tagname>
  • 7. Cont… • Elements: An HTML element is defined by a start tag, some content, and an end tag (Container Tag). <p> This is paragraph Tag </p> • Everything inside the opening and closing tags is the content. But not all elements follow this pattern. • They only consist of a single tag or an opening tag that cannot have any content. Example – <img src=“him.jpg" width="50“ /> • HTML elements with no content are called empty elements. <br> Tag: br stands for break line.
  • 8. Tags Vs Elements Vs Attributes TAGS ELEMENTS ATTRIBUTES HTML tags are used to hold the HTML element. HTML element holds the content. HTML attributes are used to describe the characteristic of an HTML element in detail. HTML tags are almost like keywords. HTML elements specifies the general content. HTML attributes specify various additional properties to the existing HTML element.
  • 9. Basic Structure • <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <p>My first paragraph.</p> </body> </html>
  • 10. Cont… • The <!DOCTYPE html> declaration defines that this document is an HTML5 document • The <html> element is the root element of an HTML page • The <head> element contains meta information about the HTML page • The <title> element specifies a title for the HTML page (which is shown in the browser's title bar or in the page's tab) • The <body> element defines the document's body, and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.
  • 11. <HEAD> Tag Attributes • The <title> tag defines the title of a web page (required). • The <style> tag contains CSS code. • The <link> tag contains a link to an external style sheet. It can have two attributes : rel = "stylesheet" and href. • The <meta> tag provides additional information (metadata) about HTML document. • The <script> tag contains a script (generally JavaScript). • The <noscript> tag defines an alternate text, which is displayed, if the browser doesn’t support scripts.
  • 12. <BODY> Tag Attributes • background: It contains the URL of the background image. It is used to set the background image. <body background="URL"> • bgcolor: It is used to specify the background color of an image. <body bgcolor =“Value”> – Attribute Values: • color_name: It sets the background color by using the color name. For example “red”. • hex_number: It sets the background color by using the color hex code. For example “#0000ff”. • rgb_number: It sets the background color by using the RGB code. For example: “RGB(0, 153, 0)” .
  • 13. Cont… • alink: It is used to specify the color of the active link. <body alink="color_name|hex_number|rgb_number"> • link: It is used to specify the color of visited links. <body link="color_name | hex_number | rgb_number"> • text: It specifies the color of the text in a document. <body text="color_name | hex_number | rgb_number"> • vlink: It specifies the color of visited links. <body vlink="color_name | hex_number | rgb_number">
  • 14. HTML Text Editors • An HTML file is a text file, so to create an HTML file we can use any text editors. • After learning the basics, you can easily use other professional text editors which are, Notepad++, Sublime Text, Vim, etc. • Note: You can execute HTML file in any browser, but there are some tags which are not supported by Some Web browser. • HTML Code with Notepad: – Open Notepad (Windows) – Write code in HTML – Save the HTML file with .htm or .html extension. – Open the HTML page in your web browser.
  • 15. Today we learn • Basics of HTML • In the next class, we will start Unit II – HTML Tags in detail. •Thanks