Posts

Showing posts with the label How Add Attributes In HTML

Basic Elements - Learn HTML - Free Interactive HTML Tutorial

Image
Basic Elements The use of basic HTML Tags.. Coding.... <!DOCTYPE html> <html> <head> <title>Example page</title> </head> <body> <h1>Heading 1</h1> <h2>Heading 1</h2> <h3>Heading 1</h3> <h4>Heading 1</h4> <h5>Heading 1</h5> <h6>Heading 1</h6> <p>This is peragraph.</p> <p>Horizontal Line Below</p> <hr /> </body> </html> Output Of Above Code... Output

How Add Attributes In HTML

Image
How Add Attributes In HTML The  name  is the property you want to set. For example, the paragraph  <p>  element in the example carries an attribute whose name is  align , which you can use to indicate the alignment of paragraph. The  value  is what you want the value of the property to be set and always put within quotations. The below example shows three possible values of align attribute:  left, center  and  right . Attribute names and attribute values are case-insensitive. Example <html> <head> <title>Attribute Example</title> </head> <body> <p align = "left">This is left alignement</p> <p align = "center">This is center alignement</p> <p align = "right">This is right alignement</p> </body> </html> OutPut Screen Basic Attributes The four Basic attributes that can be used on the majority of HTML ar...