Tags_with_Attributes

While many tags can be as simple as a single letter (e.g., ), very often you will want to give a bit more information in others. One very good example of this is the  tag. By itself, it isn't much use. The  tag, however, is intended for making hyperlinks. It follows a format like the following: code format="html4strict"  code where the attributes and values always come in pairs, and you can have any number of combinations. Each type of tag has its own special attributes, so what works in one tag might not make sense in another one. If you add extra attribute/value pairs that don't make any sense, the browser will likely ignore them.

So here are some examples for a few common tags, which we'll introduce properly somewhere else. code format="html4strict" home code This is an  tag with one attribue/value pair. The "href" attributes is assigned to the URL of the school. Here's another one: code format="html4strict" stuff goes here code This one has two attributes, "name" and "id," but we are assigning the word "area" to both of them.

You should also notice that the closing tag doesn't ever have attributes. Ever.