This tutorial is about HTML Attributes. I will tell you in details that Why we used these attributes. And How you can use them in your document. This tutorial is important to move forward. You must know about the HTML Attributes. If you will not know this then you can’t take a step forward.
There are a lot of HTML Tags. You can also said them Elements. And you there are some HTML attributes which you can use with HTML tags/Elements. HTML Attributes provides additional information about that tag. You also ful about attributes to specify in HTML Starting tag. you can specify the attribute with name and value like this name=”value”.
HTML Attributes Examples
Here I want to discuss some example with you. You can see below code. I will make bold to HTML Attributes. So that you can know which is HTML Attributes. I will discuss Attributes in those tags until we read.
<a href=”link/filename_with_fileformat” id=”hyper_link”>
<img src=”name.format”>
<p class=”posts”></p>
<p class=”featured”></p>
<h2 id=”post_title”></h2>
You can easily see that with HTML tags the value which comes called attributes of that Element. And Here I want to tell you that Attributes will always comes in Quotes. Hey let me explain that HTML Attributes are also case-insensitive.
HTML Attributes Reference
Here I will tell you about some important attributes that you will use commonly. I will make bold those attributes below with detail. And I will give you a fever that you should use the name & value of attribute always in lower case.
class – It specifies one or more classes of an element. You can make multiple classes of an element.
id – It specifies a unique id for an element.
style – It specifies inline CSS Style for elements.
title – It specifies the extra information of an element.
Here I would like to tell you about title attribute. When you will give title of an element and write some text into it. See Below code for an example :
<a href=”link” title=”This is Homepage”>Homepage</a>
When you will run this code. And take mouse over Homepage text then you will see some description on hover. It’s about title. If you didn’t understand anything then you can contact us. We will help you and give better guidelines to you. SO that you can work efficiently. Ask your questions frankly. Keep visiting our website For Latest Tutorials. Hope you will like these. You should know about HTML Global Attributes from other website yourself. And We decide to give video tutorials after ending HTML Tutorials. Hope you will wait for it.
Similar Threads:
Nice
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks