, paragraph tag
and other tags
We utilized him or her to date within their greatest setting, but the majority of HTML labels may features properties, which happen to be most items of information.
An attribute is employed to help you identify the advantages regarding an HTML function that is placed inside the element’s starting tag. All properties are made up from two-fold ? a name and you will a regard
The name is the property you want to set. For example, the paragraph
element in the newest example carries an attribute whose name is fall into line, which can be used to suggest new positioning out of paragraph towards the the latest page.
The value is exactly what you need the value of the house to get lay and constantly put within this quotations. The less than example reveals three you’ll thinking from line-up characteristic: kept, cardiovascular system and you will proper.
Characteristic names and feature beliefs try situation-insensitive. not, the world wide web Consortium (W3C) recommends lowercase features/trait viewpoints in their HTML 4 testimonial.
Brand new Id Attribute
The new id characteristic away from an HTML level are often used to exclusively choose one feature inside a keen Html code. There’s two major reasons that you need to have to utilize an id characteristic for the a feature ?
In the event that an element carries a keen id feature while the an alternative identifier, you can choose just that function and its own posts.
When you yourself have a couple of elements of a comparable identity inside a Webpage (otherwise layout sheet), you can use the fresh new id trait to acknowledge anywhere between aspects you to definitely have the same title.
We are going to talk about build layer for the independent lesson. For now, let’s utilize the id characteristic to identify anywhere between two part elements while the shown lower than. (more…)