0% found this document useful (0 votes)
26 views1 page

WD12

The document provides examples of HTML code for various form elements, including drop-down boxes, file upload controls, and buttons. It explains the attributes associated with these elements, such as 'name' and 'accept', and discusses hidden form controls for data management. Additionally, it covers how to embed multimedia content like audio and video using specific HTML tags.

Uploaded by

nallamaniartsbca
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views1 page

WD12

The document provides examples of HTML code for various form elements, including drop-down boxes, file upload controls, and buttons. It explains the attributes associated with these elements, such as 'name' and 'accept', and discusses hidden form controls for data management. Additionally, it covers how to embed multimedia content like audio and video using specific HTML tags.

Uploaded by

nallamaniartsbca
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Example Here is example HTML code for a form with one drop down box

Maths

This will produce the following result: Maths Attributes Following is the list of important
attributes of element but type attribute is set to file. Example Here is example
HTML code for a form with one file upload box:
This will produce the following result: Attributes Following is the list of important attributes
of file upload box: Attribute Description name Used to give a name to the control which is
sent to the server to be recognized and get the value. HTML 116 accept Specifies the types of
files that the server accepts. Button Controls There are various ways in HTML to create
clickable buttons. You can also create a clickable button using tag by setting its
type attribute to button. The type attribute can take the following values: Type Description
submit This creates a button that automatically submits a form. reset This creates a button
that automatically resets form controls to their initial values. button This creates a button that
is used to trigger a client-side script when the user clicks that button. image This creates a
clickable button but we can use an image as background of the button. Example Here is
example HTML code for a form with three types of buttons:

Submit Reset

HTML 117 This will produce the following result: Submit Reset Hidden Form Controls
Hidden form controls are used to hide data inside the page which later on can be pushed to
the server. This control hides inside the code and does not appear on the actual page. For
example, following hidden form is being used to keep current page number. When a user will
click next page then the value of hidden control will be sent to the web server and there it will
decide which page will be displayed next based on the passed current page. Example Here is
example HTML code to show the usage of hidden control:
This is page 10
10 Submit Reset

This will produce the following result: Top of Form This is page 10 Submit Reset HTML 118
Sometimes you need to add music or video into your web page. The easiest way to add video
or sound to your web site is to include the special HTML tag called . This tag causes the
browser itself to include controls for the multimedia automatically provided browser supports
tag and given media type. You can also include a tag for the browsers which don't recognize
the tag. You could, for example, use to display a movie of your choice, and to display a single
JPG image if browser does not support tag. Example Here is a simple example to play an
embedded midi file:

You might also like