如何创建和安排我的HTML表单?

时间:2015-06-04 08:12:34

标签: html forms html-table

我想在html中像这张图片一样创建一个表单。但是我不能像这张照片那样安排它。 enter image description here

到目前为止,这是我的代码。

 <form>
 <div>
 <br></br>
 <p><font size="2">Prepared and Submitted by: _________________           Reviewed & Validated by: __________________  Noted: ___________________  
</p>
<p> &nbsp;&nbsp;&nbsp;&nbsp;SCHOOL HEAD &nbsp;&nbsp;&nbsp;&nbsp; DIVISION    REPRESENTATIVE  SCHOOLS DIVISION SUPERINTENDENT </pr>
</font>

<p><strong><font size="3">Guidelines:</strong> </font> </pr>

 <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font size="1">1. After receiving and validating the Report for Promotion submitted by the class adviser, the School Head shall compute the grade level total and school total.</font></pr>
 <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font size="1">2. This report together with the copy of Report for Promotion submitted by the class adviser shall be forwarded to the Division Office by the end of the school year.</font>  </pr>
 <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font size="1">3. The Report on Promotion per grade level is reflected in the End of School Year Report of GESP/GSSP.</font></pr>
 <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font size="1">4. Protocols of validation & submission is under the discretion of the Schools Division Superintendent.</font></pr>

</div>
</form>

我是html的新手。请帮帮我....

2 个答案:

答案 0 :(得分:0)

作为html的新用户,您应该看一下css属性。

它将帮助您进行元素定位。

例如,使用margin和padding属性:

http://www.w3schools.com/css/tryit.asp?filename=trycss_margin_sides

还尝试使用div锚点拆分视图。 您可以将4个点放在一个div中,并使用css属性将div放在右侧。

答案 1 :(得分:0)

如果需要,可以使用Bootstrap。你可以在这里得到它:getbootstrap.com

然后可以使用以下内容:

<form class="form-horizontal">
<fieldset>

<!-- Form Name -->
<legend>Form Name</legend>

<!-- Text input-->
<div class="col-md-4">
<div class="control-group">
  <label class="control-label" for="textinput">Prepared and Submitted by:</label>
  <div class="controls">
    <input id="textinput" name="textinput" type="text" placeholder="placeholder" class="input-xlarge">
    <p class="help-block">SCHOOL HEAD</p>
  </div>
</div>
</div>

<!-- Text input-->
<div class="col-md-4">
<div class="control-group">
  <label class="control-label" for="textinput">Reviewed &amp; Validated by:</label>
  <div class="controls">
    <input id="textinput" name="textinput" type="text" placeholder="placeholder" class="input-xlarge">
    <p class="help-block">DIVISION    REPRESENTATIVE</p>
  </div>
</div>
</div>

<!-- Text input-->
<div class="col-md-4">
<div class="control-group">
  <label class="control-label" for="textinput">Noted: </label>
  <div class="controls">
    <input id="textinput" name="textinput" type="text" placeholder="placeholder" class="input-xlarge">
    </div>
  </div>
</div>
<div class="col-md-12">
<div class="control-group">
  <label class="control-label" for="textinput">Guidelines: </label>
  <ol class="list-unstyled"> 
       <li>After receiving and validating the Report for Promotion submitted by the class adviser, the School Head shall compute the grade level total and school total.</li>
       <li>This report together with the copy of Report for Promotion submitted by the class adviser shall be forwarded to the Division Office by the end of the school year.</li>
       <li>The Report on Promotion per grade level is reflected in the End of School Year Report of GESP/GSSP.</li>
       <li>Protocols of validation & submission is under the discretion of the Schools Division Superintendent.</li>
  </ol>
</div>
</div>
</fieldset>
</form>