2013-04-05 179 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" 
/>