Introduction of HTML Elements and Atrributes

HTML Elements:
HTML documents are identified by their html elements and html tags. An HTML element is everything from the Start or Open tag to the End or Close tag. Most of HTML elements has both tags but some are single tags. We will discuss it later.

Example: <house's door open>Go for shopping</house's door close>
Single Tags Elements:
In this type, element has only one side tag.

Example:
<br> or <br/> = This element is used for giving line breakup.

HTML Attributes:

An HTML attribute is a modifier of an HTML element. HTML attributes generally appear as name-value pairs, separated by "=", and are written within the start tag of an element, after the element's name:

<tag attribute="value">(content to be modified by the tag)</tag>

Where tag names the HTML element, attribute is the name of the attribute, set to the provided value.


No comments:

Post a Comment