2011-05-18 13 views
0
<form method="get" action="index.php" target="abc" name="SearchForm" id="SearchForm"> 

クリック時submit私たちはGETメソッドを使用して型付き情報にアクセスできるindex.phpにアクセスします。 target,nameidの意味は?彼らは何をしていますか?これらのフォーム属性は何を意味しますか?

答えて

0
<form 
    method="get"  -- submit method (post|get) 
    action="index.php" -- page to submit form to 
    target="abc"  -- frame id to target. ex: <iframe id="abc" src="myframe.html"> 
    name="SearchForm" -- name of the form, used with client-side scripting 
    id="SearchForm"  -- CSS id of the form. ex: #SearchForm { font-size: large; } 
          - used for client-side scripting (javascript) 
          - must be unique. <div id="abc"><p id="abc"> = invalid 
/> 
+3

idはCSS用ではありません。ページ上の要素を一意に識別します。あるページには複数の名前があり、あるページには複数のクラスがありますが、idは1つだけです。 – dtbarne

1

すばやくGoogle検索でその質問に回答します。

+2

私は検索のヒントをサポートしていますが、[W3Schoolsはコミュニティに不正確な情報を与えています。](http://w3fools.com/) – drudge

+2

うわー。どのような面白い読書。私は一般的にそれを素早く説明したり、いくつかの要素の属性をリフレッシュするために使ってきました。その場合:http://reference.sitepoint.com/html/form – LeeR

関連する問題