SlideShare uma empresa Scribd logo
1 de 32
HTML(Hyper Text Markup Language)
MN. Sofna(BSc in MIT)
Lecturer: IT cum Management
BCAS Kalmunai.
©sofna@bcas.lk
What is HTML?
HTML is the standard markup language for creating Web pages.
•HTML stands for Hyper Text Markup Language
•HTML describes the structure of a Web page
•HTML consists of a series of elements
•HTML elements tell the browser how to display the content
•HTML elements are represented by tags
•HTML tags label pieces of content such as "heading", "paragra
ph", "table", and so on
•Browsers do not display the HTML tags, but use them to render
the content of the page©sofna@bcas.lk
A Simple HTML Document
Example
•The <!DOCTYPE html> declaration defines this doc
ument to be HTML5
•The <html> element is the root element of an HTML
page
•The <head> element contains meta information abou
t the document
•The <title> element specifies a title for the document
•The <body> element contains the visible page conten
t
•The <h1> element defines a large heading
•The <p> element defines a paragraph
©sofna@bcas.lk
HTML Tags
•HTML tags normally come in pairs like <p> and </p>
•The first tag in a pair is the start tag(Opening Tag), the seco
nd tag is the end tag(Closing Tag
•The end tag is written like the start tag, but with a forward sl
ash inserted before the tag name
©sofna@bcas.lk
Web Browsers
The purpose of a web browser (Chrome, Edge, Firefox, Safari) i
s to read HTML documents and display them.
The browser does not display the HTML tags, but uses them to
determine how to display the document:
©sofna@bcas.lk
HTML Page Structure
Below is a visualization of an HTML page structure:
©sofna@bcas.lk
HTML Editors
Write HTML Using Notepad or TextEdit.
Web pages can be created and modified by using profession
al HTML editors.
However, for learning HTML we recommend a simple text e
ditor like Notepad (PC) or TextEdit (Mac).
©sofna@bcas.lk
Step 1: Open Notepad (PC)
Windows 8 or later:
Open the Start Screen (the window symbol at the bottom left on
your screen). Type Notepad.
Windows 7 or earlier:
Open Start > Programs > Accessories > Notepad
Step 2: Write Some HTML
©sofna@bcas.lk
Step 3: Save the HTML Page
Save the file on your computer. Select File > Save as in the Notep
ad menu.
Name the file "index.html" and set the encoding to UTF-8(whic
h is the preferred encoding for HTML files).
©sofna@bcas.lk
Step 4: View the HTML Page in Your Browser
Open the saved HTML file in your favorite browser (double click
on the file, or right-click - and choose "Open with").
The result will look much like this:
©sofna@bcas.lk
HTML Documents
All HTML documents must start with a document type declaratio
n: <!DOCTYPE html>.
The HTML document itself begins with <html> and ends with </h
tml>.
The visible part of the HTML document is between <body> and <
/body>.
©sofna@bcas.lk
HTML Headings
HTML headings are defined with the <h1> to <h6> tags.
<h1> defines the most important heading. <h6> defines the least i
mportant heading:
Example:
©sofna@bcas.lk
HTML Paragraphs
HTML paragraphs are defined with the <
p> tag
Example:
HTML Links
HTML links are defined with the <a> tag:
The link's destination is specified in the href attribute.
Attributes are used to provide additional information about HTM
L elements.
©sofna@bcas.lk
HTML Images
HTML images are defined with the <img> tag.
The source file (src), alternative text (alt), width, and height are
provided as attributes:
Example:
HTML Buttons
HTML buttons are defined with the <button> tag:
Example
©sofna@bcas.lk
HTML Lists
HTML lists are defined with the <ul> (unordered/bullet list) or th
e <ol> (ordered/numbered list) tag, followed by <li> tags (list ite
ms):
Example
©sofna@bcas.lk
HTML Elements
An HTML element usually consists of a start tag and an end tag,
with the content inserted in between:
<tagname>Content goes here...</tagname>
The HTML element is everything from the start tag to the end ta
g:
<p>My first paragraph.</p>
©sofna@bcas.lk
Nested HTML Elements
HTML elements can be nested (elements can contain elements).
All HTML documents consist of nested HTML elements.
This example contains four HTML elements:
Example
©sofna@bcas.lk
Attributes provide additional information about HTML elements
•All HTML elements can have attributes
•Attributes provide additional information about an element
•Attributes are always specified in the start tag
•Attributes usually come in name/value pairs like: name="value
"
HTMLAttributes
©sofna@bcas.lk
• All HTML elements can have attributes
• The title attribute provides additional "tool-tip" information
• The href attribute provides address information for links
• The width and height attributes provide size information for
images
• The alt attribute provides text for screen readers
• At W3Schools we always use lowercase attribute names
• At W3Schools we always quote attribute values
©sofna@bcas.lk
The href Attribute
HTML links are defined with the <a> tag. The link address is spe
cified in the href attribute:
Example:
The src Attribute
HTML images are defined with the <img> tag.
The filename of the image source is specified in the src attribute:
©sofna@bcas.lk
The width and height Attributes
HTML images also have width and height attributes, which spec
ifies the width and height of the image:
Example:
The style Attribute
The style attribute is used to specify the styling of an element,
like color, font, size etc.
Example:
©sofna@bcas.lk
HTML Line Breaks
The HTML <br> element defines a line break.
Use <br> if you want a line break (a new line) without starting a
new paragraph:
Example:
©sofna@bcas.lk
Background Color
The CSS background-color property defines the background col
or for an HTML element.
This example sets the background color for a page to powder bl
ue:
HTML Styles
Text Color
The CSS color property defines the text color for an HTML elem
ent:
Example:
©sofna@bcas.lk
Fonts
The CSS font-family property defines the font to be used for an
HTML element:
Text Size
The CSS font-size property defines the text size for an HTML
element:
©sofna@bcas.lk
Text Alignment
The CSS text-align property defines the horizontal text alignmen
t for an HTML element:
Chapter Summary
•Use the style attribute for styling HTML elements
•Use background-color for background color
•Use color for text colors
•Use font-family for text fonts
•Use font-size for text sizes
•Use text-align for text alignment ©sofna@bcas.lk
HTML Formatting Elements
In the previous chapter, you learned about the HTML style attrib
ute.
HTML also defines special elements for defining text with a spe
cial meaning.
HTML uses elements like <b> and <i> for formatting output, lik
e bold or italic text.
Formatting elements were designed to display special types of te
xt:
©sofna@bcas.lk
HTML Comment Tags
You can add comments to your HTML source by using t
he following syntax:
<!-- Write your comments here -->
•<b> - Bold text
•<strong> - Important text
•<i> - Italic text
•<em> - Emphasized text
•<mark> - Marked text
•<small> - Small text
•<del> - Deleted text
•<ins> - Inserted text
•<sub> - Subscript text
•<sup> - Superscript text
©sofna@bcas.lk
HTML Colors
Background Color
©sofna@bcas.lk
©sofna@bcas.lk
©sofna@bcas.lk
HTML Images Syntax
In HTML, images are defined with the <img> tag.
The <img> tag is empty, it contains attributes only, and does not
have a closing tag.
The src attribute specifies the URL (web address) of the image:
<img src="url">
©sofna@bcas.lk
HTML Tables
An HTML table is defined with the <table> tag.
Each table row is defined with the <tr> tag. A table header is defi
ned with the <th> tag. By default, table headings are bold and ce
ntered. A table data/cell is defined with the <td> tag.
©sofna@bcas.lk

Mais conteúdo relacionado

Mais procurados

Html Intro2
Html Intro2Html Intro2
Html Intro2
mlackner
 
Clase 1 - Comandos HTML.PDF
Clase 1 - Comandos HTML.PDFClase 1 - Comandos HTML.PDF
Clase 1 - Comandos HTML.PDF
nicolasmolinach
 

Mais procurados (20)

Html Intro2
Html Intro2Html Intro2
Html Intro2
 
Web Page Designing
Web Page DesigningWeb Page Designing
Web Page Designing
 
Introduction to html 5
Introduction to html 5Introduction to html 5
Introduction to html 5
 
HTML Introduction, HTML History, HTML Uses, HTML benifits
HTML Introduction, HTML History, HTML Uses, HTML benifitsHTML Introduction, HTML History, HTML Uses, HTML benifits
HTML Introduction, HTML History, HTML Uses, HTML benifits
 
Cascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) helpCascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) help
 
BasicHTML
BasicHTMLBasicHTML
BasicHTML
 
(Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS (Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS
 
Introduction to html course digital markerters
Introduction to html course digital markertersIntroduction to html course digital markerters
Introduction to html course digital markerters
 
Cascading Style Sheets (CSS)
Cascading Style Sheets (CSS)Cascading Style Sheets (CSS)
Cascading Style Sheets (CSS)
 
Php ppt
Php pptPhp ppt
Php ppt
 
HTML (Web) basics for a beginner
HTML (Web) basics for a beginnerHTML (Web) basics for a beginner
HTML (Web) basics for a beginner
 
Clase 1 - Comandos HTML.PDF
Clase 1 - Comandos HTML.PDFClase 1 - Comandos HTML.PDF
Clase 1 - Comandos HTML.PDF
 
Html
HtmlHtml
Html
 
Intro Html
Intro HtmlIntro Html
Intro Html
 
Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basics
 
Html and css presentation
Html and css presentationHtml and css presentation
Html and css presentation
 
Html and css
Html and cssHtml and css
Html and css
 
Intro to html
Intro to htmlIntro to html
Intro to html
 
CSS
CSSCSS
CSS
 
Html basic tags
Html basic tagsHtml basic tags
Html basic tags
 

Semelhante a Html

web development.pdf
web development.pdfweb development.pdf
web development.pdf
BagHarki
 

Semelhante a Html (20)

Html Workshop
Html WorkshopHtml Workshop
Html Workshop
 
Computer fundamentals-internet p2
Computer fundamentals-internet p2Computer fundamentals-internet p2
Computer fundamentals-internet p2
 
web development.pdf
web development.pdfweb development.pdf
web development.pdf
 
html
htmlhtml
html
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Introduction to HTML.pptx
Introduction to HTML.pptxIntroduction to HTML.pptx
Introduction to HTML.pptx
 
HTML? What is Hyper Text Mark Up Language
HTML? What is Hyper Text Mark Up  LanguageHTML? What is Hyper Text Mark Up  Language
HTML? What is Hyper Text Mark Up Language
 
HTML Comprehensive Overview
HTML Comprehensive OverviewHTML Comprehensive Overview
HTML Comprehensive Overview
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Html basics
Html basicsHtml basics
Html basics
 
Html
HtmlHtml
Html
 
Html
HtmlHtml
Html
 
Html tutorials by www.dmdiploma.com
Html tutorials by www.dmdiploma.comHtml tutorials by www.dmdiploma.com
Html tutorials by www.dmdiploma.com
 
Web Development 1 (HTML & CSS)
Web Development 1 (HTML & CSS)Web Development 1 (HTML & CSS)
Web Development 1 (HTML & CSS)
 
HTML & CSS.ppt
HTML & CSS.pptHTML & CSS.ppt
HTML & CSS.ppt
 
Lab1_HTML.pptx
Lab1_HTML.pptxLab1_HTML.pptx
Lab1_HTML.pptx
 
Presentation1.pdf
Presentation1.pdfPresentation1.pdf
Presentation1.pdf
 
Introduction to HTML- Week 3- HTMLSyntax
Introduction to HTML- Week 3- HTMLSyntaxIntroduction to HTML- Week 3- HTMLSyntax
Introduction to HTML- Week 3- HTMLSyntax
 
Html
HtmlHtml
Html
 

Último

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Último (20)

ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
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
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactistics
 
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
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
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
 
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
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 

Html

  • 1. HTML(Hyper Text Markup Language) MN. Sofna(BSc in MIT) Lecturer: IT cum Management BCAS Kalmunai. ©sofna@bcas.lk
  • 2. What is HTML? HTML is the standard markup language for creating Web pages. •HTML stands for Hyper Text Markup Language •HTML describes the structure of a Web page •HTML consists of a series of elements •HTML elements tell the browser how to display the content •HTML elements are represented by tags •HTML tags label pieces of content such as "heading", "paragra ph", "table", and so on •Browsers do not display the HTML tags, but use them to render the content of the page©sofna@bcas.lk
  • 3. A Simple HTML Document Example •The <!DOCTYPE html> declaration defines this doc ument to be HTML5 •The <html> element is the root element of an HTML page •The <head> element contains meta information abou t the document •The <title> element specifies a title for the document •The <body> element contains the visible page conten t •The <h1> element defines a large heading •The <p> element defines a paragraph ©sofna@bcas.lk
  • 4. HTML Tags •HTML tags normally come in pairs like <p> and </p> •The first tag in a pair is the start tag(Opening Tag), the seco nd tag is the end tag(Closing Tag •The end tag is written like the start tag, but with a forward sl ash inserted before the tag name ©sofna@bcas.lk
  • 5. Web Browsers The purpose of a web browser (Chrome, Edge, Firefox, Safari) i s to read HTML documents and display them. The browser does not display the HTML tags, but uses them to determine how to display the document: ©sofna@bcas.lk
  • 6. HTML Page Structure Below is a visualization of an HTML page structure: ©sofna@bcas.lk
  • 7. HTML Editors Write HTML Using Notepad or TextEdit. Web pages can be created and modified by using profession al HTML editors. However, for learning HTML we recommend a simple text e ditor like Notepad (PC) or TextEdit (Mac). ©sofna@bcas.lk
  • 8. Step 1: Open Notepad (PC) Windows 8 or later: Open the Start Screen (the window symbol at the bottom left on your screen). Type Notepad. Windows 7 or earlier: Open Start > Programs > Accessories > Notepad Step 2: Write Some HTML ©sofna@bcas.lk
  • 9. Step 3: Save the HTML Page Save the file on your computer. Select File > Save as in the Notep ad menu. Name the file "index.html" and set the encoding to UTF-8(whic h is the preferred encoding for HTML files). ©sofna@bcas.lk
  • 10. Step 4: View the HTML Page in Your Browser Open the saved HTML file in your favorite browser (double click on the file, or right-click - and choose "Open with"). The result will look much like this: ©sofna@bcas.lk
  • 11. HTML Documents All HTML documents must start with a document type declaratio n: <!DOCTYPE html>. The HTML document itself begins with <html> and ends with </h tml>. The visible part of the HTML document is between <body> and < /body>. ©sofna@bcas.lk
  • 12. HTML Headings HTML headings are defined with the <h1> to <h6> tags. <h1> defines the most important heading. <h6> defines the least i mportant heading: Example: ©sofna@bcas.lk
  • 13. HTML Paragraphs HTML paragraphs are defined with the < p> tag Example: HTML Links HTML links are defined with the <a> tag: The link's destination is specified in the href attribute. Attributes are used to provide additional information about HTM L elements. ©sofna@bcas.lk
  • 14. HTML Images HTML images are defined with the <img> tag. The source file (src), alternative text (alt), width, and height are provided as attributes: Example: HTML Buttons HTML buttons are defined with the <button> tag: Example ©sofna@bcas.lk
  • 15. HTML Lists HTML lists are defined with the <ul> (unordered/bullet list) or th e <ol> (ordered/numbered list) tag, followed by <li> tags (list ite ms): Example ©sofna@bcas.lk
  • 16. HTML Elements An HTML element usually consists of a start tag and an end tag, with the content inserted in between: <tagname>Content goes here...</tagname> The HTML element is everything from the start tag to the end ta g: <p>My first paragraph.</p> ©sofna@bcas.lk
  • 17. Nested HTML Elements HTML elements can be nested (elements can contain elements). All HTML documents consist of nested HTML elements. This example contains four HTML elements: Example ©sofna@bcas.lk
  • 18. Attributes provide additional information about HTML elements •All HTML elements can have attributes •Attributes provide additional information about an element •Attributes are always specified in the start tag •Attributes usually come in name/value pairs like: name="value " HTMLAttributes ©sofna@bcas.lk
  • 19. • All HTML elements can have attributes • The title attribute provides additional "tool-tip" information • The href attribute provides address information for links • The width and height attributes provide size information for images • The alt attribute provides text for screen readers • At W3Schools we always use lowercase attribute names • At W3Schools we always quote attribute values ©sofna@bcas.lk
  • 20. The href Attribute HTML links are defined with the <a> tag. The link address is spe cified in the href attribute: Example: The src Attribute HTML images are defined with the <img> tag. The filename of the image source is specified in the src attribute: ©sofna@bcas.lk
  • 21. The width and height Attributes HTML images also have width and height attributes, which spec ifies the width and height of the image: Example: The style Attribute The style attribute is used to specify the styling of an element, like color, font, size etc. Example: ©sofna@bcas.lk
  • 22. HTML Line Breaks The HTML <br> element defines a line break. Use <br> if you want a line break (a new line) without starting a new paragraph: Example: ©sofna@bcas.lk
  • 23. Background Color The CSS background-color property defines the background col or for an HTML element. This example sets the background color for a page to powder bl ue: HTML Styles Text Color The CSS color property defines the text color for an HTML elem ent: Example: ©sofna@bcas.lk
  • 24. Fonts The CSS font-family property defines the font to be used for an HTML element: Text Size The CSS font-size property defines the text size for an HTML element: ©sofna@bcas.lk
  • 25. Text Alignment The CSS text-align property defines the horizontal text alignmen t for an HTML element: Chapter Summary •Use the style attribute for styling HTML elements •Use background-color for background color •Use color for text colors •Use font-family for text fonts •Use font-size for text sizes •Use text-align for text alignment ©sofna@bcas.lk
  • 26. HTML Formatting Elements In the previous chapter, you learned about the HTML style attrib ute. HTML also defines special elements for defining text with a spe cial meaning. HTML uses elements like <b> and <i> for formatting output, lik e bold or italic text. Formatting elements were designed to display special types of te xt: ©sofna@bcas.lk
  • 27. HTML Comment Tags You can add comments to your HTML source by using t he following syntax: <!-- Write your comments here --> •<b> - Bold text •<strong> - Important text •<i> - Italic text •<em> - Emphasized text •<mark> - Marked text •<small> - Small text •<del> - Deleted text •<ins> - Inserted text •<sub> - Subscript text •<sup> - Superscript text ©sofna@bcas.lk
  • 31. HTML Images Syntax In HTML, images are defined with the <img> tag. The <img> tag is empty, it contains attributes only, and does not have a closing tag. The src attribute specifies the URL (web address) of the image: <img src="url"> ©sofna@bcas.lk
  • 32. HTML Tables An HTML table is defined with the <table> tag. Each table row is defined with the <tr> tag. A table header is defi ned with the <th> tag. By default, table headings are bold and ce ntered. A table data/cell is defined with the <td> tag. ©sofna@bcas.lk