Professional Documents
Culture Documents
<hr> , <br>
<h2>Welcome </h2>
ex.
Tag Syntax -
input - tag
type - attribute i.e. specify the behaviour
text - value
ex. of placeholder
ex. of ReadOnly
TextBox = txt
Radio - opt
CheckBox - chk
button - btn
image - img
dropdown - drp
listbox - lst
panel - pnl
Hyperlink - hyp
style - to provide styling related information i.e. color, size, width, height etc.
ex.
ex.
<body style="background-color:cyan;">
ex.
ex.
[ - ] - [a-z]
[A-Z]
[0-9]
[a-zA-Z]
[A-Za-z0-9]
HTML 5
Default.aspx code -
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body style="background-color:cyan;">
<marquee> <h2>50% discount of Electronic Items </h2></marquee>
<form id="form1" runat="server">
<div>
</div>
<asp:TextBox ID="txtusername" runat="server" required="true"
placeholder="enter username" OnTextChanged="TextBox1_TextChanged" pattern="[a-z]
{3,10}" title="enter only a-z" MaxLength="10" Style="background-
color:yellow;"></asp:TextBox>
<p>
<input id="txtpassword" type="password" placeholder="enter
password" /></p>
<asp:Button ID="btnsubmit" runat="server" OnClick="Button1_Click"
Text="Submit" style="background-color:blue;color:white;padding:5px;border-
radius:10px;" />
<p>
<asp:TextBox ID="TextBox2" runat="server" readonly="true" Text="email"
placeholder="enter username" OnTextChanged="TextBox1_TextChanged"
MaxLength="10"></asp:TextBox>
</p>
<p>
</p>
<p>
</p>
<asp:Image ID="Image1" runat="server" ImageUrl="~/12.jpg"
style="height:250px;width:250px;border:double;" />
</form>
</body>
</html>