Full width home advertisement

How To

Science

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>

<html>

<head>

<title>Align Attribute Example</title>

</head>

<body>

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

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

</body>

</html>

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]

| Designed by Colorlib