HTM Form & Tables
HTM Form & Tables
Autocomplete Turns autocomplete on or off on the Novalidate Defines whether the form should
form. be validated when submitted.
<legend> .... A caption for the fieldset element. The input attribute shows what
<input/>
type of field information to receive
</legend>
from users.
HTML5 INPUTTYPEATTRIBUTES
type="" Specifies field input type, including text, name="" The name of the form
password, date-time, checkbox. etc.
value="" The value of input field information. size="" The input element width in characters
maxlength="" Maximum input element characters Required Tag used to ensure the <input> element
allowed. is completed before submitting the form.
step="'' The number intervals for an input width="" Width in pixels of an <input> element.
field.
height="" Height in pixels of an <input> element. placeholder="" A hint for users showing what the
<input> element value should be.
pattern="" Checks the input against a defined min='"' The minimum value of an <input>
value to ensure the information is element.
correct.
Autofocus Ensures the <input> element comes
max="" The maximum value of an <input>
into focus once a page loads.
element.
Disabled Disables an <input> element on the <textarea> Specifies a large text input for longer
form. . .. </textarea> messages.
-~"
A""IO.-- I
----
ft.., II zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPO
,,.,...--
zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
,.. e-.
-·--
-T•ot
--
---
..........
....,.c_
.,.
®i...•q,,i
@•
'" (i)*
GJ•
a~ ......
'" zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLK
'"" <il• zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONM
'"
Em
HTML5 SELECT ATTRIBUTES
(To be Used in </select> Tags)
name="" The title for a drop-down combination size=" The number of options in a drop-down
box. box.
Multiple Allows multiple sections to be made at Required Requires a value to be selected before
onetime. a user can submit a form.
<optgroup> Specifies can entire grouping of <option> Defines one of the available options in
available options. the drop-down list.
</optgroup> </option>
Option Attributes
value='"' Explains an option's value available for Selected Shows the default selection option for
selection. users.
Example of Form
<table> These tags define all the content related <caption> A description of the table's
... </table> to a table. ... </caption> purpose and the information
it contains.
<the/ahd>d The headers that label the content in <tbody> The body of the table data or
··· < t ea >each column. ... </tbody> information.
<tfoot> Describes all footer content. <tr> Content within a single row.
... <tfoot> ... </tr>
<table>
<colgroup>
<col span="2" style="background-color:
#182afb">
<col style="background-color: #2f1475b">
</colgroup>
<tr>
<th>Blog title</th>
<th>URL</th>
<th>DA</th>
</tr>
<tr>
<td>On Blast Blog</td>
<td>www.onblastblog.com</td>
<td>S2</td>
</tr>
</table>
HTMLS OBJECTS AND IFRAMES
Objects
<object> ··· Describes a file type to be height="" The height of the object.
</object> embedded (audio, video, PDFs, etc.).
width="" Width of the object. type=?" The type of media the object contains.
iFrames formatting
src="" The source URL for the object within the srcdoc=?" The HTML content within the frame.
<iframe>.
Width="" The width of the <iframe>. <param /> Adds extra parameters to help
customize the iframe's content.
Examples
<header> The header block for a document. <footer> The footer block for a document
... </header> ... </footer> or section.
<details> Additional facts or information that <dialog> A box or window for dialog.
... </details> users can view/hide. ... </dialog>
<figcaption> A <figure> element caption that <figure> A content block featuring diagrams,
... </figcaption> describes the figure. ... </figure> photos.illustrations, and more .
<mark> Displays highlighted text within the <nav> Navigation links for users.
... </mark> content. ... </nav>
<menuitem> The menu item a user can raise <meter> The scalar measurement within a
from a popup menu. . .. </meter> known array.
</menu item>
<progress> The progress of a task, usually <rp> ... </rp> Display text in browsers that don't
used for a progress bar. support ruby annotations.
</progress>
<rt> ... </rt> Display East Asian typography <ruby> ... A Ruby annotation for East Asian
character details. </ruby> typography.
<time> ... Identifies time and date. <wbr> A line break within content.
</time>