icon
icon(1)
icon
icon
logoForum - HTML class - BODY tag attributes
HTML Codes | HTML class - BODY tag attributes
icon icon Admin icon *
Creator: * Admin icon
* Created by: July 22, 2022 - Friday, 03:28 AM
Name: HTML class - BODY tag attributes
Attributes are additions that allow the tag to be displayed more widely. In the first article, we got acquainted with the structure of HTML, in this structure, there was a tag called "body", the article is dedicated to the attributes of the tag "body".

Html tags have certain attributes.

Attributes in this tag serve as the initial configuration of the page, that is, if these attributes are not changed in the codes or are not entered at all, the browser will open the page based on the attributes entered in the "body" tag.

If we don't include the "body" tag attributes, the browser will open the page in any form based on its settings. So get acquainted with the attributes:

1. Setting the background color of the page.

<body bgcolor=»black»>…</body> or <body bgcolor=»#000000″>…</body>

The page is displayed on a black background. When assigning a color, the name of the color or its number in the hexadecimal system is entered.

This number can be found through a special utility (Pixie utility).

2. Using an image as a page background.

<body background=»logo.png»>…</body>

Create a page background using the specified image.

The picture must be in the same place as the address of the document, if it is in a different address, the full address must be written.

<body background=»images/logo.png»>…</body>

3. Specify text colors on the page.

<body text=» #008000″>…</body>

All entries on the page will be in green.

4. Setting the color of links on the page.

— link — if the link has not yet been entered;
— link — if the link is accessed at least once;
— a link — when hovering over a link.

<body link=»blue» vlink=»red»>…</body>

If a link has never been accessed, it will appear in blue, if it has been accessed, it will appear in red.

These are the main attributes of the "body" tag, you can use several of these attributes together, for example, write the following code in an Html document (for example, body.html) and run it through a browser and see the result.
Share (0)
*
* Forum | Webmasters | HTML Codes
* Home
© www.pak4m.com - 2024.
Online: 0 & 4 | Mobile version
About Us | Contact Us | Privacy Policy | Terms & Conditions
PGen: 0.02 Sec
© Pak4m.Com