SlideShare a Scribd company logo
Attributes
 HTML elements can have attributes
 Attributes provide additional
  information about an element
 Attributes are always specified in the
  start tag
 Attributes come in name/value pairs
  like: name="value"
   Attributes are used to amplify tags. What
    we mean by amplify is that when a web
    browser interprets a tag, it will also
    search for set attributes and then display
    the element (tags+attributes) in its
    entirety. At some point you may want to
    give your body element a background
    color or perhaps change the width of a
    table. All of these things and more can
    be achieved using Attributes.
 Id Attribute
 Class Attribute
 Style Attribute
 Title Attribute
   <font face="times new roman" size="4"
    color="green">This text is using the 'times
    new roman' font face. It's relative size is
    '4' and the color is 'green'.</font>
Attributes

More Related Content

PPT
N5 Computing Science HTML
PPTX
HTML Training Part1
PPTX
Android styles and themes
PPT
Android ListView and Custom ListView
PDF
HTML - part 1
PPT
Lecture 5
PPTX
Document type definitions part 2
PPTX
Module 14 properties and indexers
N5 Computing Science HTML
HTML Training Part1
Android styles and themes
Android ListView and Custom ListView
HTML - part 1
Lecture 5
Document type definitions part 2
Module 14 properties and indexers

What's hot (19)

PPTX
HTML Coding
PDF
HTML Foundations, pt 2
PPTX
Presentation1
PDF
CSS Selector in Selenium WebDriver | Edureka
PPTX
Heading Section in HTML - R.D.Sivakumar
PPTX
uptu web technology unit 2 html
PPT
Introduction to HTML
PDF
Class Intro / HTML Basics
PPT
Chen's first test slides
PPT
Chen test paper20abcdeftfdfd
PPTX
uptu web technology unit 2 Css
PPTX
Css3 Complete Reference
PPTX
Html tables
PDF
Intro to HTML, CSS & JS - Internship Presentation Week-3
PPTX
It8074 soa-unit i
PPT
How Cascading Style Sheets (CSS) Works
PDF
TM 1st quarter - 4th meeting
PDF
HTML CSS Basics
PDF
Web Layout
HTML Coding
HTML Foundations, pt 2
Presentation1
CSS Selector in Selenium WebDriver | Edureka
Heading Section in HTML - R.D.Sivakumar
uptu web technology unit 2 html
Introduction to HTML
Class Intro / HTML Basics
Chen's first test slides
Chen test paper20abcdeftfdfd
uptu web technology unit 2 Css
Css3 Complete Reference
Html tables
Intro to HTML, CSS & JS - Internship Presentation Week-3
It8074 soa-unit i
How Cascading Style Sheets (CSS) Works
TM 1st quarter - 4th meeting
HTML CSS Basics
Web Layout
Ad

Viewers also liked (8)

PPTX
Presentation1
PPT
10 Information Processing Part2
PPT
10 Information Processing Part1
PPT
10 Information Processing Part3
PPTX
PPTX
Module 4 information_attributes
PPTX
Gestalt’s approach on educational psychology
PPT
Information processing & cognitive theories of learning
Presentation1
10 Information Processing Part2
10 Information Processing Part1
10 Information Processing Part3
Module 4 information_attributes
Gestalt’s approach on educational psychology
Information processing & cognitive theories of learning
Ad

Similar to Attributes (20)

PPT
2. html attributes
PPTX
PPTX
PPTX
PPTX
Html5 attributes
PPTX
Empowerment Technologies Lecture 10 (Philippines SHS)
PPTX
new htmlppt in this we disscuded about basic html .pptx
PPTX
HTML 5 Topic 2
PPTX
Std 10 Computer Chapter 1- Introduction to HTML - Basic Formatting Tag in HT...
PDF
Html tutorials-infotech aus
PDF
Web Dev Workshop at GDG on Campus:MGMCOE
PPT
Higher Computing Science HTML
PPTX
Html n CSS
PPT
HTML Tags: HTML tags are the basic building blocks of any website. They are u...
PPTX
Html starting
PDF
Web day01 MOL.pdf
PPTX
Web Development - Lecture 4
PPTX
PPTX
2. html attributes
Html5 attributes
Empowerment Technologies Lecture 10 (Philippines SHS)
new htmlppt in this we disscuded about basic html .pptx
HTML 5 Topic 2
Std 10 Computer Chapter 1- Introduction to HTML - Basic Formatting Tag in HT...
Html tutorials-infotech aus
Web Dev Workshop at GDG on Campus:MGMCOE
Higher Computing Science HTML
Html n CSS
HTML Tags: HTML tags are the basic building blocks of any website. They are u...
Html starting
Web day01 MOL.pdf
Web Development - Lecture 4

Recently uploaded (20)

PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Machine learning based COVID-19 study performance prediction
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Getting Started with Data Integration: FME Form 101
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PPTX
Machine Learning_overview_presentation.pptx
PDF
August Patch Tuesday
PPTX
1. Introduction to Computer Programming.pptx
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PPTX
A Presentation on Artificial Intelligence
PPT
Teaching material agriculture food technology
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
cloud_computing_Infrastucture_as_cloud_p
PPTX
Spectroscopy.pptx food analysis technology
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
OMC Textile Division Presentation 2021.pptx
PPTX
Tartificialntelligence_presentation.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Machine learning based COVID-19 study performance prediction
Assigned Numbers - 2025 - Bluetooth® Document
Getting Started with Data Integration: FME Form 101
SOPHOS-XG Firewall Administrator PPT.pptx
Machine Learning_overview_presentation.pptx
August Patch Tuesday
1. Introduction to Computer Programming.pptx
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
Univ-Connecticut-ChatGPT-Presentaion.pdf
A Presentation on Artificial Intelligence
Teaching material agriculture food technology
A comparative analysis of optical character recognition models for extracting...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
cloud_computing_Infrastucture_as_cloud_p
Spectroscopy.pptx food analysis technology
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
NewMind AI Weekly Chronicles - August'25-Week II
OMC Textile Division Presentation 2021.pptx
Tartificialntelligence_presentation.pptx

Attributes

  • 2.  HTML elements can have attributes  Attributes provide additional information about an element  Attributes are always specified in the start tag  Attributes come in name/value pairs like: name="value"
  • 3. Attributes are used to amplify tags. What we mean by amplify is that when a web browser interprets a tag, it will also search for set attributes and then display the element (tags+attributes) in its entirety. At some point you may want to give your body element a background color or perhaps change the width of a table. All of these things and more can be achieved using Attributes.
  • 4.  Id Attribute  Class Attribute  Style Attribute  Title Attribute
  • 5. <font face="times new roman" size="4" color="green">This text is using the 'times new roman' font face. It's relative size is '4' and the color is 'green'.</font>