04. HTML Attributes

HTML Attributes


  • Attributes provide additional information about the element.
  • Attributes are always specified in the start tag.
  • Attributes come in name/value pairs like: name="value".


Defining Attribute values

Attribute values are always be enclosed within quotation marks

Ex:  name='john "shotgun" Nelson'
Ex:  <a href="http://www.w3schools.com">This is a link</a> to the w3schools web site.

Attributes names and values are not case sensitive.

HTML Attributes reference

Attribute  :   class                                    id                style                      title

Value       :   class_rule or style_rule      id_name    style_definition    tooltip_text

A specific id may only appear once in a web page, while class refers to a class elements that may appear many times in the same page


No comments:

My Favorite Books

  • C and Data Structures by Ashok N. kamthane
  • Web Technologies by A. A. Puntambekar
  • Learn HTML and CSS with W3Schools
  • Learn JavaScript and Ajax with W3Schools
  • HTML5 Black Book: Covers Css3, Javascript,XML, XHTML, Ajax, PHP And Jquery
  • HTML5 Application Development Fundamentals: MTA Exam 98-375
  • .NET 4.0 Programming 6-In-1, Black Book
  • SQL Server 2008 R2 Black Book
  • Asp.net 4.0 Projects Covers: net 3.5 And .net 4.0 Codes, Black Book
  • UNIX Shell Programming 1 Edition by Yashavant Kanetkar
  • UNIX and Shell Programming 1 Edition by Richard F. Gilberg, Behrouz A. Forouzan
  • Computer Networks by Andrew S. Tanenbaum
  • Multiple Choice questions in computer science by Timothy J Williams