January 18, 2016
Attributes in HTML5
Attributes in HTML give additional information about an element. An element can have one or more attributes. These attributes are placed inside a starting tag. These attributes can also be seen as additional feature of an element. For example, a body tag can have bgcolor attribute which will change the entire background of an HTML document and can make your web page look more attractive to a user. Example is given below.
<!DOCTYPE html> <html> <head> <title>HTML5 Tutorials</title> </head> <body bgcolor="red"> Hello World! </body> </html>