TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Select Element Control
Carlos Fernández
Dec 07
2014
Code
1.1
k
0
1
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>
<html xmlns=
"http://www.w3.org/1999/xhtml"
>
<head>
<meta http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<title>Documento sin título</title>
<style type=
"text/css"
>
/*
style css to the body and div #browser
*/
body
{
margin-top:0px;
margin-bottom:0px;
margin-left:0px;
margin-right:0px;
background:#FFFBF0;
}
#browser
{
top:0px;
left:auto;
height:15%;
width:100%;
position:absolute;
background:#2A1FAA;
}
#down
{
top:25%;
left:20%;
position:absolute;
font-family:Verdana, Geneva, sans-serif;
font-size:20px;
color:#FFFBF0;
}
</style>
</head>
<body>
<!--The div tag
for
a section
in
a document-->
<div id=
"browser"
>
<!--A div tag inside other div, attribute
"hidden"
is tag
for
like a name elements,
"selected"
it is first element -->
<div id=
"down"
>
Downloads <select name=
"down"
>
<option value=
"windows7"
>Windows 7</option>
<option value=
"windows8"
>Windows 8</option>
<option selected=
"selected"
hidden=
"windows"
value=
"windows"
>Windows</option>
</select>
</div>
</div>
</body>
</html>
control for selecting in HTML
HTML
Select Element