Tags for this article: html attributes, HTML Basics, html image, html link, HTML Tag Attributes, HTML Tags
HTML tags are the basis for web page design. For more flexibility in designing HTML were defined attributes for HTML tags to change the behaviour of a specific HTML tags. There are many cases when designing a web page if you want to change the default behaviour of tags. For example, you could change the background colour of the entire page or a section of the page. You can change the alignment of some text or a unique style for the representation of a tag.
Here are some examples of HTML attributes
HTML tag is used to change the background colour or image for the whole body from a website. Understand that browser displays the contents of the body tag on the greater part of the site. By default, the background of browsers used when the tag <body Begegnung> is white. If you want a background colour other than white, use the bgcolour attribute. The following day will change the background colour of a Web page from the default white to gray <body bgcolour = “gray”>
If you want a picture, including the background to a web page, you can use the following code:
<body Background = / images / background.gif>
This example assumes that you have specified a folder on your Web server images, and in this case, there is an image called background.gif. In the case of an image in the background when the image is not large enough to fill the entire bottom of your Web site, the browser displays the image repeated vertically and horizontally to fill the background.
Link with anchor tag
The World Wide Web, the basic benefit depends on their ability to integrate documents and on the Internet so that users with a fast connection from one side to the other side. Linking documents to HTML via the anchor (<a>) tag. The anchor tag is not in itself sufficient to say, a link to the browser, too.
<a href = http://oursponsorssite.com> Visit our Sponsors </a>
This specific HTML code intimates the browser that the text “Please you should visit our sponsors” is the anchor text of a link. When the user clicks on the anchor text, it is referred to oursponsorswebsite.com URL.
Displaying an image using the image tag
HTML pages would be pretty boring without the use of images. The need to tell the browser to find where an image is a good example of how to use the HTML attributes. The images are included. Insufficient Similar to the anchor tag above example, the tag would be alone. The attribute image tag “src” is necessary to tell the browser where to display the image, as in the following example:
“/ <img src = images / logo.gif” width = “150″>
this block of code tells the browser to place an image in the document. The browser will be directed to the image file logo.gif from the images reach the top level folder for the document. You can also specify the width attribute defined in the day.