HTML Attribute

We have many attribute in HTML.

We have seen few HTML tags and their usage like heading tags <h1>, <h2>, paragraph tag <p> and other tags. We used them so far in their simplest form, but most of the HTML tags can also have attributes, which are extra bits of information.

An attribute is used to define the characteristics of an HTML element and is placed inside the element’s opening tag. All attributes are made up of two parts: a name and a value:

we have <id>, <form>, <ul> ,<ol>, <name>, <label>, <image>, <iframe>,<hr>, <html>, <head>, <form>, <lable> , <cols>, <rows>, <input> , <caption>, <del>, <border>, <lable>, <pre>,<p>, <small>, <ins>, <kbd>, and many more…

The HEADER Element:-

The HEADER element is newly introduced in HTML5 and is used to provide the introductory content on an HTML page. The HEADER element can contain headings, paragraphs, links and other content. The following code snippet shows an example for the HEADER element:

<H1>Heading level 1</h1>
<A HERF=””> section Elements</A></DD>
<LI><A HERF=”/articles”>Articles</A>
<LI><A HERF=”/discussions”>Discussions</A>
<LI><A HERF=”/download”>Download</A>


The FOOTER Element:-

The FOOTER element is newly introduced in HTML5 and is used to represent the footer, which contains various types of information, such as links and copyright data related to a document or a section of the document. The following code snippet shows an example of the FOOTER element:

<LI>Links </LI>
<LI>About </LI>





The ADDRESS element is normally defined at the header or footer of the HTML page and is used to display the contact information for a document or part of a document. Such contact information may include the names of the document’s owners, maintainers, e-mail addresses feedback, postal addresses, and phone numbers. The content of this element appears in italic on the Web browser. The following code snippet shows an example of the ADDRESS element:


<A HERF=””> Mathew Anderson</A>
<A HERF=””>Matt Dave M</A>
Contact person for the <A HERF=”Activity”> HTML Activity </A>


Heading Elements:-

Heading elements are used to provide different heading levels in the HTML document. These elements are used to create headlines of a text. For example, if you want to display an article in your HTML page, the article is written in normal plain text, but its title is written in bold and large text. In this case, you can use the heading elements to make the title distinct from the remaining text. A heading element is defined as <Hn>, where n ranges from 1 to 6. You can also group all your heading elements with the help of the HGROUP element, which has been introduced in HTML5.


Follow Us

Contact Us

Back to Top