SlideShare une entreprise Scribd logo
1  sur  15
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

Contenu connexe

Tendances

Tendances (20)

Html5 and-css3-overview
Html5 and-css3-overviewHtml5 and-css3-overview
Html5 and-css3-overview
 
Html images syntax
Html images syntaxHtml images syntax
Html images syntax
 
How to learn HTML in 10 Days
How to learn HTML in 10 DaysHow to learn HTML in 10 Days
How to learn HTML in 10 Days
 
HTML and CSS crash course!
HTML and CSS crash course!HTML and CSS crash course!
HTML and CSS crash course!
 
Html Ppt
Html PptHtml Ppt
Html Ppt
 
HTML (Web) basics for a beginner
HTML (Web) basics for a beginnerHTML (Web) basics for a beginner
HTML (Web) basics for a beginner
 
Html
HtmlHtml
Html
 
Html forms
Html formsHtml forms
Html forms
 
Web html table tags
Web html  table tagsWeb html  table tags
Web html table tags
 
Html
HtmlHtml
Html
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
jQuery for beginners
jQuery for beginnersjQuery for beginners
jQuery for beginners
 
Basic Html Knowledge for students
Basic Html Knowledge for studentsBasic Html Knowledge for students
Basic Html Knowledge for students
 
HTML
HTMLHTML
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)
 
cascading style sheet ppt
cascading style sheet pptcascading style sheet ppt
cascading style sheet ppt
 
HTML Text formatting tags
HTML Text formatting tagsHTML Text formatting tags
HTML Text formatting tags
 
Advanced Cascading Style Sheets
Advanced Cascading Style SheetsAdvanced Cascading Style Sheets
Advanced Cascading Style Sheets
 
Hyperlinks in HTML
Hyperlinks in HTMLHyperlinks in HTML
Hyperlinks in HTML
 
HTML5 - Forms
HTML5 - FormsHTML5 - Forms
HTML5 - Forms
 

Similaire à Introduction to html

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.pdfBagHarki
 
BITM3730Week1.pptx
BITM3730Week1.pptxBITM3730Week1.pptx
BITM3730Week1.pptxMattMarino13
 
HTML introduction for beginners Slides .pptx
HTML introduction for beginners Slides .pptxHTML introduction for beginners Slides .pptx
HTML introduction for beginners Slides .pptxwewit44414
 
HTML : INTRODUCTION TO WEB DESIGN Presentation
HTML : INTRODUCTION TO WEB DESIGN PresentationHTML : INTRODUCTION TO WEB DESIGN Presentation
HTML : INTRODUCTION TO WEB DESIGN Presentationsurajsutar467
 
Computer fundamentals-internet p2
Computer fundamentals-internet p2Computer fundamentals-internet p2
Computer fundamentals-internet p2Leo Mark Villar
 
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 & AngularJSDeepak Upadhyay
 
SEO Training in Noida- Skyinfotech.in
SEO Training in Noida- Skyinfotech.inSEO Training in Noida- Skyinfotech.in
SEO Training in Noida- Skyinfotech.inSky Infotech
 
Learning html. (Part- 1)
Learning html. (Part- 1)Learning html. (Part- 1)
Learning html. (Part- 1)manya abrol
 

Similaire à 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
 
HTML & CSS.ppt
HTML & CSS.pptHTML & CSS.ppt
HTML & CSS.ppt
 
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
 
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
 
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
 

Plus de Himanshu Pathak

Plus de Himanshu Pathak (17)

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

Dernier

Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
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
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 

Dernier (20)

Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
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
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 

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