<!DOCTYPE html> <html lang="en" dir="ltr">   <head>     <meta charset="utf-8">     &...

 

<!DOCTYPE html>

<html lang="en" dir="ltr">

  <head>

    <meta charset="utf-8">

    <title></title>

  </head>

  <body>

    <h3 align="center">Tables In Html</h3>

    <table border="2" align="center">

      <thead>

      <th>Eno</th>

      <th>Name</th>

      <th>City</th>

      <th colspan="2">Contact</th>

   </thead>

    <tr>

          <td>001</td><td>Mr.Jaiswal</td><td>Mumbai</td><td>9878765658</td><td>jaiswal12@gmail.com</td>

      </tr>

      <tr>

          <td>002</td><td>Mr.Arora</td><td>Goa</td><td>987545654</td><td>arora56@gmail.com</td>

      </tr>

      <tr>

          <td>003</td><td>Mr.Khan</td><td>Pune</td><td>98767654</td><td>khan34@gmail.com</td>

      </tr>

      <tr>

          <td>004</td><td>Mr.Bajaj</td><td>Aurangabad</td><td>8987656769</td><td>bajaj66@gmail.com</td>

      </tr>

    </table>

  </body>

</html>

Visit here to understand code line by line:https://youtu.be/S-aeyY2i7eA


  <!DOCTYPE html> <html lang="en" dir="ltr">   <head>     <meta charset="utf-8">     &...

 


<!DOCTYPE html>

<html lang="en" dir="ltr">

  <head>

    <meta charset="utf-8">

    <title></title>

  </head>

  <body>

    <ul>

        <li>C</li>

        <li>C++</li>

        <li>Java</li>

    </ul>


    <ul style="list-style-type: square;">

        <li>C</li>

        <li>C++</li>

        <li>Java</li>

    </ul>


    <ul style="list-style-type: circle;">

        <li>C</li>

        <li>C++</li>

        <li>Java</li>

    </ul>


    <ul style="list-style-type: none;">

        <li>C</li>

        <li>C++</li>

        <li>Java</li>

    </ul>


    <ol>

      <li>C</li>

      <li>C++</li>

      <li>Java</li>

    </ol>


    <ol type="A">

      <li>C</li>

      <li>C++</li>

      <li>Java</li>

    </ol>


    <ol type="I">

      <li>C</li>

      <li>C++</li>

      <li>Java</li>

    </ol>


    <ol type="i">

      <li>C</li>

      <li>C++</li>

      <li>Java</li>

    </ol>


    <ol type="a">

      <li>C</li>

      <li>C++</li>

      <li>Java</li>

    </ol>


    <ol start="21">

      <li>C</li>

      <li>C++</li>

      <li>Java</li>

    </ol>


    <ol type="A" reversed>

      <li>C</li>

      <li>C++</li>

      <li>Java</li>

    </ol>


    <dl type="circle">

      <dt>C</dt>

      <dd>C is Procedural Oriented Language</dd>

      <dt>C++</dt>

      <dd>C++ is Object Oriented Language</dd>

    </dl>


    <ul>

      <li>Programming Languages</li>

      <ol>

        <li>C</li>

        <li>Java</li>

        <li>Python</li>

      </ol>


      <li>Operating System</li>

      <ol>

        <li>Windows</li>

        <li>Linux</li>

        <li>Mac</li>

      </ol>

</ul>

 </body>

</html>


program 11:Accept   radius from the user write a program having menu driven with the following options and corresponding actions . 1.     ...





program 11:Accept  radius from the user write a program having menu driven with the following options and corresponding actions .

1.       Area of circle   : compute area of circle and print.

2.       Circumference of circle  :compute circumference of circle.

3.       Volume of sphere  : compute volume of sphere.

      #include<stdio.h>

       void main()

{

float a,cir,v,r,PI=3.14;

int choice;

printf("\nEnter radius:");

scanf("%f",&r);

printf("\n1:Area of circle");

printf("\n2:Circumference of circle");

printf("\n3:Volume of sphere");

printf("\nEnter your choice:");

scanf("%d",&choice);

switch(choice)

{

    case 1:

    a=PI*r*r;

    printf("\nArea is %f",a);

    break;

    case 2:

    cir=PI*2*r;

    printf("\nCircumference is %f",cir);

    break;

    case 3:

    v=4/3*PI*r*r*r;

    printf("\nVolume is %f",a);

    break;

            default:

            printf("\n invalid");

}

}

 Output

[root@localhost Desktop]# gcc nnn.c

[root@localhost Desktop]# ./a.out

Enter radius: 2

1:Area of circle

2:Circumference of circle

3:Volume of sphere

Enter your choice:1

Area is 12.560000.

  program 10: Accept three   sides of triangle as input and print whether the triangle is valid or not.   #include<stdio.h> void m...

 





program 10: Accept three sides of triangle as input and print whether the triangle is valid or not.

 #include<stdio.h>

void main()

{

    int a,b,c;

    printf("Enter three sides of triangle:");

    scanf("%d%d%d",&a,&b,&c);

    if((a+b)>c)

    {

        printf("\nTriangle is valid");

    }

    else

    {

        printf("\nTriangle is invalid");

    }

}

Output

[root@dhcppc0 SetB]# ./a.out

Enter three sides of triangle:3 6 8

Triangle is vaild


 

 

 <!DOCTYPE html> <html lang="en" dir="ltr">   <head>     <meta charset="utf-8">     &l...




 <!DOCTYPE html>

<html lang="en" dir="ltr">

  <head>

    <meta charset="utf-8">

    <title>html tags</title>

  </head>

  <body>

    <h1>Heading 1</h1>

    <h2>Heading 2</h2>

    <h3>Heading 3</h3>

    <h4>Heading 4</h4>

    <h5>Heading 5</h5>

    <h6>Heading 6</h6>

<p>Welcome to THE UNIVERSITY.<br>this is some text here</p>

<hr>

<!--this is comment tag -->

<b>text</b><br>

<strong>text</strong><br>

<mark>text</mark><br>

<i>text</i><br>

<q>You are watching THE INIVERSITY</q><br>

  </body>

</html>

To Understand Code Visit



  SOURCE CODE: <html>      <head>            Basic structure of html      </head> <body>            Actual code <...

 


SOURCE CODE:

<html>

     <head>

           Basic structure of html

     </head>

<body>

           Actual code

</body>

</html>

Visit here to understand it

HTML5 CSS3 TUTORIAL FOR BEGINNERS