Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

HTML and the label


May 04, 2021 HTML Reference Manual


Table of contents


HTML -lt;frame?gt; Tags - HTML5 does not support

Let's take a look at the following specific examples of using the hashtag, and it's worth noting that HTML5 doesn't support the tag.

Simple three-frame page:

<frameset cols="25%,50%,25%">
<frame src="frame_a.htm">
<frame src="frame_b.htm">
<frame src="frame_c.htm">
</frameset>

Try it out . . .
(See bottom of page for more examples)

Browser support

HTML and the label HTML and the label HTML and the label HTML and the label HTML and the label

All major browsers support the hashtag.


Label definition and instructions for use

HTML5 does not support labeling.

The sub-windows (frames) in the label definition.

Each of the .lt;framesets can set different properties, such as border, scrolling, noresize, and so on.

Note: If you want to verify the page that contains the frame, make sure that the DOCTYPE is set to "HTML Frameset DTD" or "XHTML Frameset DTD".


The difference between HTML 4.01 and HTML5

HTML5 does not support labels, and HTML 4.01 does support labels.


The difference between HTML and XHTML

In HTML, the label does not end the label. In XHTML, the label must be turned off correctly.


Optional properties

属性 描述
frameborder 0
1
HTML5 不支持。 规定是否显示框架周围的边框。
longdesc URL HTML5 不支持。 规定一个包含有关框架内容的长描述的页面。
marginheight pixels HTML5 不支持。 规定框架的上方和下方的边距。
marginwidth pixels HTML5 不支持。 规定框架的左侧和右侧的边距。
name name HTML5 不支持。 规定框架的名称。
noresize noresize HTML5 不支持。 规定无法调整框架的大小。
scrolling yes
no
auto
HTML5 不支持。 规定是否在框架中显示滚动条。
src URL HTML5 不支持。 规定在框架中显示的文档的 URL。


The standard property

In HTML 4.01, the label supports the following standard properties:

属性 描述
class classname 规定元素的类名
id id 规定元素的唯一 id
style style_definition 规定元素的行内样式
title text 规定元素的额外信息

For a complete description, visit Standard Properties.


The event property

According to W3C standards, in HTML 4.01, the label does not support any time attributes.

However, all browsers support onload events.

For a complete description, visit Event Properties.


HTML and the label

Try it - instance

Horizontal frame
This example shows how to create a horizontal framework using three different documents.

Hybrid structure frame
This example shows how to create a frame structure with three documents and mix them into rows and columns.

The frame structure that contains the "noresize" property
This example demonstrates the noresize property. I n this case, the frame is not resized. Drag the mouse over the border between the frames and you'll notice that the border can't be moved.