</html><HTML> <HEAD> <STYLE> body { border-radius: 20px; border-style: double; border-color: black; position: absolute; width: 850px; height: 705px; top: 15px; left: 45px; padding: 30px 30px 50px 30px; background-color:#E30B5C; } #tbl,#tbl2 { border-collapse:collapse; font-size:18; font-family:Century Gothic; } .demo { position:absolute; left:35px; top:380px; font-size:17; font-family:Arial; font-weight:bold; margin-top:35px; border-collapse:collapse; } #demoname { font-size:15px } .btn { position:absolute; top:355px; left:720px; } </STYLE> <SCRIPT> function myFun() { var a=document.form1.txtname.value; document.getElementById("demoname").innerHTML=a; var b=document.form1.txtfname.value; document.getElementById("demofname").innerHTML=b; var c=document.form1.txtins.value; document.getElementById("demoins").innerHTML=c; var d=document.form1.txtbatch.value; document.getElementById("demobatch").innerHTML=d; var e=document.form1.txtoffice.value; document.getElementById("demooffice").innerHTML=e; var f=document.form1.txtweb.value; document.getElementById("demoweb").innerHTML=f; var g=document.form1.txtit.value; document.getElementById("demoit").innerHTML=g; var h=document.form1.txtc.value; document.getElementById("democ").innerHTML=h; var txt1=eval(parseFloat(document.form1.txtoffice.value)+parseFloat(document.form1.txtweb.value) +parseFloat(document.form1.txtit.value)+parseFloat(document.form1.txtc.value)); document.getElementById("demototal").innerHTML=txt1; var txt2=eval(parseFloat(txt1*100)/400); document.getElementById("demoper").innerHTML=txt2.toFixed(2)+"%"; switch(true) { case(txt2>=80): document.getElementById("demograde").innerHTML="A1"; break; case(txt2>=70): document.getElementById("demograde").innerHTML="A"; break; case(txt2>=60): document.getElementById("demograde").innerHTML="B"; break; case(txt2>=50): document.getElementById("demograde").innerHTML="C"; break; case(txt2>=40): document.getElementById("demograde").innerHTML="D"; break; case(txt2<40): document.getElementById("demograde").innerHTML="Fail"; break; } } </SCRIPT> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </HEAD> <BODY> <DIV class="color"> <H1 align="center"style="font-family:cambria;font-size:40";><U>STUDENT MARKSHEET</H1> <FIELDSET> <LEGEND> STUDENT INFORMATION </LEGEND> <TABLE align="center" id="tbl"> <FORM name="form1"> </TR> <TD width="140">Name:</TD> <TD><INPUT type="text" name="txtname"/></TD> <TD> Father Name:</TD><TD> <INPUT type="text" name="txtfname"/></TD> </TR> <TR> <TD width="140" > Institute Name:</TD><TD> <INPUT type="text" name="txtins"/></TD> <TD style="text-indent:16px">Batch:</TD><TD> <INPUT type="text" name="txtbatch"/></TD> </TR> </TABLE> </FIELDSET></BR> <FIELDSET> <LEGEND> SUBJECTS MARKS </LEGEND> <TABLE id="tbl2"> <TR> <TD> Office Automation:</TD><TD> <INPUT type="text" name="txtoffice" maxlength="2" size="10"/> Out of 100 </TD> </TR> <TR> <TD> Web Designing:</TD><TD> <INPUT type="text" name="txtweb" maxlength="2" size="10"/> Out of 100</TD> </TR> <TR> <TD> IT:</TD><TD> <INPUT type="text" name="txtit" maxlength="2" size="10"/> Out of 100</TD> </TR> <TR> <TD> C# Programing:</TD><TD> <INPUT type="text" name="txtc" maxlength="2" size="10" /> Out of 100</TD> </TR> <TR> <TD> </TD> </TR> </TABLE> </FIELDSET> <DIV class="btn"> <button style="font-size:17" type="button" onclick='myFun()'>Submit</button> <button style="font-size:17" type="Reset">Reset</button> </DIV> <DIV class="demo"> <TABLE border="1"> <TR> <TH colspan="8" width="240"> Student Information </TH> </TR> <TR> <TD width="135">Name:</TD><TD><FONT face="arial" id="demoname"></FONT></TD> </TR> <TR> <TD width="135">Father Name:</TD><TD><FONT face="arial" id="demofname"></FONT></TD> </TR> <TR> <TD width="135">Institute Name:</TD><TD><FONT face="arial" id="demoins"></FONT></TD> </TR> <TD width="135">Batch:</TD> <TD><FONT face="arial" id="demobatch"></FONT></TD> </TR> <TR> <TH colspan="8" width="240"> Subjects Marks </TH> </TR> <TR> <TD width="135">Office Automation:</TD> <TD><FONT face="arial" id="demooffice"></FONT></TD> </TR> <TR> <TD width="135">Web Designing:</TD><TD><FONT face="arial" id="demoweb"></FONT></TD> </TR> <TD width="135">IT:</TD><TD><FONT face="arial" id="demoit"></FONT></TD> </TR> <TR> <TD width="135">C# Programing:</TD><TD><FONT face="arial" id="democ"></FONT></TD> </TR> <TR> <TH colspan="8" width="240"> Marks Result </TH> </TR> <TR> <TD width="135">TOTAL:</TD><TD> <FONT face="arial" id="demototal"></FONT></TT></TD> </TR> <TR> <TD width="135">Percentage:</TD><TD><FONT face="arial" id="demoper"></FONT></TD> </TR> <TR> <TD width="135">Grade:</TD><TD><FONT face="arial" id="demograde"></FONT></TD> </TR> </TABLE> </DIV> </DIV> </BODY> </HTML>
Write, Run & Share HTML code online using OneCompiler's HTML online Code editor for free. It's one of the robust, feature-rich online Code editor for HTML language, running on the latest version HTML5. Getting started with the OneCompiler's HTML compiler is simple and pretty fast. The editor shows sample boilerplate code when you choose language as HTML
. You can also specify the stylesheet information in styles.css
tab and scripts information in scripts.js
tab and start coding.
HTML(Hyper Text Markup language) is the standard markup language for Web pages, was created by Berners-Lee in the year 1991. Almost every web page over internet might be using HTML.
<!DOCTYPE html>
<html>
and ends with </html>
<h1>
to <h6>
where <h1>
is the highest important heading and <h6>
is the least important sub-heading.<p>..</p>
tag.<a>
tag.
<a href="https://onecompiler.com/html">HTML online compiler</a>
<img>
tag, where src
attribute consists of image name.<button>..</button>
tag<ul>
for unordered/bullet list and <ol>
for ordered/number list, and the list items are defined in <li>
.<a href="https://onecompiler.com/html">HTML online compiler</a>
CSS(cascading style sheets) describes how HTML elements will look on the web page like color, font-style, font-size, background color etc.
Below is a sample style sheet which displays heading in green and in Candara font with padding space of 25px.
body{
padding: 25px;
}
.title {
color: #228B22;
font-family: Candara;
}
<table>
tag.<tr>
tag<th>
tag<td>
tag<caption>
tag<script>
is the tag used to write scripts in HTML<script src="script.js"></script>