Full width home advertisement

Welcome Home

Post Page Advertisement [Top]

What is HTML Attributes?

HTML attribute is used to classify the characteristics of an HTML element and is located inside the element's opening tag. Any where attributes appears, they are made up a name and a value:

1. The name: is the property you are allowed to set.

2. The value is what you want the value of the property to be set and always put within quotations. 

See below example using align attribute
<!DOCTYPE html>



<title>Align Attribute Example</title>



<p align="left">This is left aligned</p>

<p align="right">This is right aligned</p>



Note: <p align = a name and "left" = a value

See result:

This is left aligned

                                                    This is right aligned

No comments:

Post a Comment

Bottom Ad [Post Page]