Saturday, 10 June 2017

ATTRIBUTES

INTRODUCTION

HTML elements can have attributes. An attribute is a property that provides additional information about an HTML element. Attributes are always specified in the opening tag. All attributes consist of two parts: a name and a value , separated by "=". The name is the property you want to set, and the value is what you want for the respective property. It is always put within quotation marks.

Syntax :
                   < Tag attribute_name 1 = " value 1"                                                       attribute_name_n  = " value n " >

Examples :
  •     < HR width = "0.4 "color = "black"  size = "50%">



  • <P> tag attributes

  • <FONT> tag attributes

No comments:

Post a Comment