SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

La actualidad más candente (20)

Html
HtmlHtml
Html
 
Lecture 2 introduction to html
Lecture 2  introduction to htmlLecture 2  introduction to html
Lecture 2 introduction to html
 
Html ppt
Html pptHtml ppt
Html ppt
 
Html
HtmlHtml
Html
 
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 ppt
Html pptHtml ppt
Html ppt
 
CSS
CSSCSS
CSS
 
Html coding
Html codingHtml coding
Html coding
 
Basic html tags
Basic html tagsBasic html tags
Basic html tags
 
Html basics
Html basicsHtml basics
Html basics
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
 
html tags
html tagshtml tags
html tags
 
Basic html
Basic htmlBasic html
Basic html
 
Html
HtmlHtml
Html
 
An Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java ScriptAn Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java Script
 
Css ppt
Css pptCss ppt
Css ppt
 
HTML
HTMLHTML
HTML
 
css.ppt
css.pptcss.ppt
css.ppt
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Html presentation
Html presentationHtml presentation
Html presentation
 

Similar a 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
 

Similar a 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
 

Más de Himanshu Pathak

Más 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
 
HTML Text formatting tags
HTML Text formatting tagsHTML Text formatting tags
HTML Text formatting 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?
 

Último

How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 

Último (20)

How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 

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