_ASP.NET
PRACTICAL-7
AIM:-Create a web page using the concept of cascading style sheets in ASP.NET
.aspx code
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm1.aspx.vb"
Inherits="WebApplication3.WebForm1" %>
<!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 runat="server">
<title></title>
<link rel="Stylesheet" type="text/css" href="StyleSheet1.css" />
<style type="text/css">
h1
{
color:Green;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<input type="text" style="background-color:Purple; border:2px solid red;"
placeholdre="inline CSS" />
<h1>Inernal CSS</h1>
</div>
</form>
</body>
</html>
.CSS code
body
{
background:Gray;
}
div
{
background:Maroon;
}
Output:--
0 Comments