tag defines the title for the fieldset element."/> tag defines the title for the fieldset element.">

Home  >  Article  >  Web Front-end  >  Detailed explanation of the usage of html

tag

Detailed explanation of the usage of html
tag

黄舟
黄舟Original
2017-06-21 16:53:046772browse

The

2b5469ab79cf842344327415c3b3bb95 tag packages part of the form content to generate a set of related form fields. Two levels of meaning are extracted from it:
1. The fieldset exists in the form (this is not accurate);
2. The function of grouping and packaging. field: [fiːld] field; pasture; wilderness; battlefield; sports ground. The meaning of fieldset is obvious, that is, "my territory listens to me." I label you this series.
The e911751791aa3ba95dc724e2fb905976 tag defines the title for the fieldset element.

<form> 
<fieldset> 
<legend>health information</legend> 
height: <input type="text" /> 
weight: <input type="text" /> 
</fieldset> 
</form>

10:31:44fieldset is an uncommon HTML tag, which is very interesting. Its syntax is as follows:

<fieldset> 
<legend>fieldset名称</legend> 
<!-- 加入你的内容 --> 
</fieldset>

In IE, if you do not add The effect of css and fieldset is rounded corners, but after adding css, it becomes square corners.
The effects in Firefox are all square corners.

Examples are as follows:
The following are code snippets:

<fieldset><legend>本站公告</legend>  
欢迎光临本站!soking’s desk.  
</fieldset>  

<fieldset style="width:300px; border : 1px solid #ff9900;text-align:left;COLOR:#ff9900;FONT-SIZE:   
12px;font-family: Verdana;padding:5px;">  
<legend>本站公告</legend>  
欢迎光临本站!soking’s desk.  
</fieldset>

Please tell me how to use the fieldset tag in Html language, and why fieldset is not commonly used? Is it because the label itself has some flaws?

<html>
	<head>
		<meta http-equiv=content-type content="text/html;charset=GBK">
	</head>
	<body>
		<FIELDSET>
    <LEGEND ACCESSKEY=I>Contact Information</LEGEND>
    <TABLE>
      <TR>
        <TD>
          <LABEL FOR=name ACCESSKEY=N>Name:</LABEL>
        </TD>
        <TD>
          <INPUT TYPE=text NAME=name ID=name>
        </TD>
      </TR>
      <TR>
        <TD>
          <LABEL FOR=email ACCESSKEY=E>E-mail Address:</LABEL>
        </TD>
        <TD>
          <INPUT TYPE=text NAME=email ID=email>
        </TD>
      </TR>
      <TR>
        <TD>
          <LABEL FOR=addr ACCESSKEY=A>Mailing Address:</LABEL>
        </TD>
        <TD>
          <TEXTAREA NAME=address ID=addr ROWS=4 COLS=40></TEXTAREA>
        </TD>
      </TR>
    </TABLE>
  </FIELDSET>
	</body>
</html>

This tag is mainly used for grouping page elements, because the popular page layout method is div + css, so there are very few opportunities to apply these traditional HTML tags

The above is the detailed content of Detailed explanation of the usage of html

tag. 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