Detailed explanation of the definition and use of tag in html

黄舟
Release: 2017-06-20 09:29:33
Original
2514 people have browsed it

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

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

Tag usage:

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

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>
Copy after login

Which browsers support the tag?

Only Internet Explorer supports the 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. -->
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!