Home  >  Article  >  Web Front-end  >  Detailed explanation of the definition and use of tag in html

Detailed explanation of the definition and use of tag in html

黄舟
黄舟Original
2017-06-20 09:29:332511browse

In HTML, the function of the dffb6df3050986b6017c9efbd3b9bef7 tag is to specify the default font color and size on the page. Below are examples of abd1d7fe556b8a5c1c26946ca234394a, usage of abd1d7fe556b8a5c1c26946ca234394a, HTML5, etc., let everyone master the usage of the default font color and font size on HTML-specified pages.

The role of the abd1d7fe556b8a5c1c26946ca234394a tag in html: Specifies the default font color and size on the page

abd1d7fe556b8a5c1c26946ca234394a Tag usage:

abd1d7fe556b8a5c1c26946ca234394a Tag definition benchmark font. This tag defines the default font color, font size, and font family for all text in the document.

abd1d7fe556b8a5c1c26946ca234394a tag application example:

Specify the default font color and font size on the page:

<head>
<basefont color="red" size="5" />
</head>

<body>
<h1>This is a header</h1>
<p>This is a paragraph</p>
</body>

Which browsers support the abd1d7fe556b8a5c1c26946ca234394a tag?

Only Internet Explorer supports the abd1d7fe556b8a5c1c26946ca234394a tag. This label should be avoided.

Note

This element can only be used within the body element or head element. BASEFONT should appear before any display text in the document body.

This element is available in HTML in Internet Explorer 3.0 and above, and in script in Internet Explorer 4.0 and above.

This element does not change the content display format.

This element does not require a closing tag.

Element sample code

The following example uses the BASEFONT element to set the base font size, and the FONT element is used to temporarily override this setting.

<!-- No BASEFONT size specified yet. -->
<BASEFONT SIZE=4> Set the BASEFONT size.
<FONT SIZE=2> Temporarily override the BASEFONT size.</FONT>
<!-- Resume the BASEFONT size. -->

The above is the detailed content of Detailed explanation of the definition and use of tag in html. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn