banner
Welcome to HTML.co.uk, the number one resource for all news, information, and happenings regarding HTML.

Updates: HTML.co.uk has just been relaunched. Subscribe to our RSS Feed to stay on top of HTML news and techniques.
Oct
5th

Using HTML Tag Attributes: How to Correctly Use Attributes and Tags in HTML

Author: Editor | Files under HTML Basics, HTML Tutorials
Tags for this article: , , , , ,

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.


Oct
5th

Create a Web page using HTML: Covering the Basics and Bare Minimum

This article describes how to create a web page using HTML (Hypertext Markup Language). You can use the steps outlined here with a simple Web browser and Windows Notepad. However, make sure you register with HTML files. “HTML”. Notepad appends. “Txt” extension

The HTML files contain structures known as tags. Tags, text, particularly left and right hooks around like <html> or </ html>. Note: Normally, there is no space between a colon and the text. However, the rooms will be used in this article. In this way, the tags appear as text and not executed as code from a browser.

<html> mark the beginning of the code and HTML </ html> indicates the end. They can also add tags to add an additional structure. Generally, the “head” and then “body” are mentioned in the section between the tags. Thus, our single file can be written as <html> <head> </ head> <body> </ body> </ html>.

1. Add a title to the HTML file. In general, the HTML files containing a title (Note: This is not the same as the header. “Head will be presented below in step 3). Title defines the text in the “title bar” of the browser display when you make a specific page. Titles are placed in the “head” (that is, between the header and </ head>). For example, one could simply file contains the following titles: <title> this is the title </ title>

2. Add content to the site. In step 1, we set the text in the title bar of the browser window appears. However, to display text in the browser window itself, we need (this text in the body section of the file In other words, between <body> and </ body>) tag. This can be done with the paragraph tag, <p>. For example, for “HTML Web Design is an interesting area. The developer shall install a functional and useful website,” We have <p> HTML Web Design is an interesting area. The developer is required to install a site functional and useful web </ p> in the body section.

3. Add a header. Then we add header content of the paragraph. Text header is usually larger than paragraphs of text. Use the “real” size can be defined by CSS (Cascading Style Sheets). Although not covered here, will be CSS in the Learning mentioned HTML – Part 3 – Basic CSS formatting “section. A header can be added to the lineup <h1>. Thus we can write the following headings : <h1> HTML Web Design </ h1>

4. See code page. In general, sites on the Internet containing the constructs above (together) with a number of other encoding functions. To see the HTML used to generate a page, go for it and the View “> Select Source” or “View>” Source option menu. Using the menu, try <title> research <h1> <p> and tags on a page.

The above are the simple steps to create a webpage with the use of notepad and browser.