HTML tag, Element and Attribute in English
What are the HTML Tags, Attributes and Elements
HTML Tags, Attributes and Elements क्या हैं
HTML Tags
When a web browser reads an HTML document, browser reads it from top to bottom and left to right. HTML tags are used to create HTML documents and render their properties. Each HTML tags have different properties.
An HTML file must have some essential tags so that web browser can differentiate between a simple text and HTML text. You can use as many tags you want as per your code requirement.
Example:
<h1
> </h1
>
Where, <h1> is the starting tag and </h1> is the ending tag.
HTML Elements
Example:
< b >This is the content.</ b > |
This is the content.
HTML Attributes
HTML Attributes: Attribute is used to define the character of an HTML element. It always placed in the opening tag of an element. It generally provides additional styling (attribute) to the element.
Each element or tag can have attributes, which defines the behaviour of that element.
The Attributes name and values are case sensitive, and it is recommended by W3C that it should be written in Lowercase only.
You can add multiple attributes in one HTML element, but need to give space between two attributes.
Example:
< p align = "center" >This is paragraph.</ p > |
This is paragraph.
टिप्पणियाँ
एक टिप्पणी भेजें