2013-04-05 177 views
0

我試圖在文本上添加文字來描述一些沒有任何輸入框的步驟。是否有可能做到這一點?應該只是文本的行是:將文本添加到html表格

<p>For a new location please add an entry</p> 

我試過沒有<p>標記,但又沒有成功。道歉,如果這看起來很簡單,但我在w3schools,這個網站或只是一個谷歌搜索,沒有看到這一點。

<form action="insert.php" method="post"> 
Name <input name="name" type="text"> 
<br> 
Email address of user <input name="email" type="text"> 
<br> 
Phone Number <input name="phone" type="text"> 
<br> 
Town <input name="town" type="text"> 
<br> 
County <select name="county"> 
<option> Outside Ireland </option> 
<option> Antrim </option> 
<option> Armagh </option> 
<br> 
<p>For a new location please add an entry</p> 
<br> 
Name of New Location <input name="newlocation" type="text"> 
<br> 
Name of Location <input name="location" type="text"> 
<br> 
Link in Google Maps <input name="gmapslink" type="text"> 
<br> 
<input type="submit"> 
</form> 
+0

你在問 – wilco 2013-04-05 18:01:38

+0

我道歉,我一個?傻瓜編輯代碼我刪除了關閉聲明,這可以關閉,爲浪費人們的時間道歉。 – 2013-04-05 18:05:34

回答

0

你的意思是說,有一個預設的文本框輸入?我相信這將是值=「所需的值:

input name="town" value="Text Desired" type="text"

0

可以使用placeholder屬性來完成這個

<input 
    type="text" 
    name="ds_email" 
    placeholder="Please, enter your e-mail here" 
/>