Using HTML Tag Attributes

Using HTML Tag Attributes

HTML tags provide the foundation for web page design. To provide more flexibility with HTML design, attributes have been defined for HTML tags to alter the behavior of any particular HTML tag. There are many instances while designing a web page when you will want to change the default behavior of the tag. For instance, you might want to change the background color of the whole page or some section of the page. You might want to change the alignment of a section of text or apply a unique style to a tag’s representation. There are many instances when you would want to identify an HTML tag by giving it a name to identify it so that it can be referred to elsewhere. Some tags, such as the one used to present an image () don’t do much of anything without having at least one attribute defined. In the case of the image tag, you would need to have an attribute that tells the browser where the find the image to be displayed.

Some Examples of HTML Attributes

Using bgcolor and background with the body tag
A very visible example of the effect of an attribute used in an HTML tag is changing the background color or image for the entire body of a web page. Browsers understand that the contents of the tag will be displayed on the main part of the web page. By default, the background used by browsers when they encounter the tag is white. If you want a background color other than white, you would use the bgcolor attribute. The following tag changes the background color of a web page from the default white to gray:
If you want to have an image comprise the background for a web page, you could use the following code:

This example assumes that you have a folder on your web server called images, and that inside that folder there is an image named background.gif. In the case of a background image, if the image isn’t large enough to fill the entire background of your web page, the browser will repeat the image vertically and horizontally to fill the background.

Linking using the anchor tag
The world wide web’s fundamental usefulness hinges on its ability to link documents, providing web users with a quick connection from one page to another related page. Linking documents in HTML is done using the anchor () tag. The anchor tag by itself doesn’t tell the browser where to link. Instead, you have to include the href attribute as in the following example:

Visit our sponsor
This piece of HTML code tells the browser that the text “Visit our sponsor” is the anchor text for a link. When the user clicks on the anchor text, he is taken to the url
Displaying a picture using the image tag
HTML pages would be pretty boring without the use of images. The need to tell the browser where to find an image is a good example of how to use HTML attributes. Images are included using . Similar to the anchor tag example above, using the tag alone wouldn’t suffice. The image tag attribute “src” is required to tell the browser where to find the image to be displayed, as in the following example:

This block of code tells the browser to place an image in the document. The browser is instructed to get the logo.gif image from the images folder located in the top level folder for the document. You also notice a width attribute defined in the tag. This constrains the image to be 150 pixels wide. Conveniently, the height of the image is constrained proportionally when the width attribute is defined.

HTML Attributes Reference
Don’t feel like you have to memorize all the HTML tags and their corresponding attributes. Instead, it is convenient to access a reference when trying to determine which attributes can be used with particular HTML tags. The official definition for HTML tags and attributes can be found at You can also find other resources for understanding the same information by using a search engine to search for “html tags” or “html attributes”

Beyond HTML Attributes
In the mid-1990’s, a methodology called Cascading Style Sheets (CSS) was developed for use in web pages to make them more streamlined. CSS is a standard for defining the layout and formatting for a web page. Many of the attributes that were commonly used with HTML tags before CSS came around are now handles by CSS definitions. For designers unfamiliar with CSS or who, for whatever reason, don’t choose to use CSS, HTML attributes that overlap with CSS definitions can still be used to change the behavior of HTML tags. However, to be considered vogue in the world of web design, it is recommended that you learn and use CSS.

Richard Robbins is one of the founders of, a resource for free blogger templates and free website templates

Learn HTML Tags By Examples

Learn HTML Tags By Examples
HTML is one of the markup languages that are used pre dominantly in the creation of the web pages by most of the web designers.This is most vital to exhibit the content available on the web page.It is quite essential for one to make use of the HTML tags for search engine optimization.These are used as the building blocks in search engine optimization and the proper use of these tags helps to fulfill the top research place.Thus it is vital that a web designer is conversant with writing the HTML codes.The users get exposure to all the HTML tags so that they know some part of this web language.It is due to this complete set of HTML tags that makes the process of learning of this language quite simple for the users.

The different established list of HTML tags are specified here:HTML-these are the tags which are used as gate ways and shutting tags used in the beginning and closing of the HTML information.HEAD-There is usage of these subsequent to every HTML tag and includes java scripts, style sheets and the Meta tags.TITLE- This one exists at all places where a heading is present along with the head tag.There are many other HTML tags than the ones that have been described here such as body, EM, STRONG tags that are sed in different areas of the web page.

Most of the people have a wrong notion about creating the web site as the complicate process, but it is not so.It hardly takes a few hours for even a novice to create a website by making use of all the HTML tags that have been specified here. The list of all HTML tags act as a manual not only for the new comers but also for the experts in this field which helps to refresh their knowledge. One can take the classes for learning the language of HTML irrespective of their being a beginner or a specialist.These HTML tutorials design the package keeping in mind the beginners and divide it into parts for convenience.The first part usually covers the basics and steps to code the first document.The second division consists of HTML tags, reference material and example HTML codes.The last part has usage of formatting with the help of tables.These step wise coaching of HTML assists a person to learn a lot along with the presentation of the illustrations much easily.

Find more information on list of all html tags and img tag in html.

Learn HTML Tags By Examples

Learn HTML Tags By Examples

Most of the web designers use the language HTML in order to create web pages.This is the one such language that tells the computer how to display the information contained in a page.The use of the HTML tags is vast and is significant in search engine optimization.The web page gets the topmost position in the search engines due to the jam it creates for the search engine optimization.So it becomes an important pre requisite for the web designer to learn how to write the HTML codes.There are list of all HTML tags that are made available which help the users to become comfortable with this language also provides learning at the same time.The users find it very comfortable to learn this language with the entire list of the HTML tags.

Given below is a list of the HTML tags that are most routinely used:HTML-These are the tags that are made use of to open and close a set of information.HEAD-These appear after the occurrence of every HTML tag and has things like java scripts, style sheets and the Meta tags.TITLE-This forms part of the head tag and is followed in every place that has a heading in the web page.Besides these HTML tags there are many tags like the body, EM, STRONG tags that are used for varied reasons.

Most of the people have a wrong presumption that creating a website is full of hurdles, while this is not true.In no time any person is capable of forming a website according to their specifications when using the HTML tags given above. These list of HTML tags are kind of a guiding factor not only for the newbies but also for the specialists. Any person can undertake the coaching classes for gaining knowledge about the HTML tags, be it a newcomer or a professional person.For ease of learning the HTML tutorials are segregated into various divisions for the freshers.At the outset there are codes that are taught along with some of the fundamentals.A complete reference to HTML tags, reference material and example HTML codes are enclosed in the second part.In the final part of the class there is introduction of document formatting using tables.It makes the process of learning HTML for the users very simple with the step by step guide which is given along with some demonstrations.

Find more information on td tag in html and ul tag in html.