Monday, 2 June 2014

HTML

HTML

What is HTML ?

HTML


HTML Stands for Hyper Text Mark-up Language. It’s the building block of any website. All the websites on the internet that you brows by your internet browser is made up of HTML Code.

HTML is a format that tells a computer how to display a web page. The documents themselves are plain text files with special "tags" or codes that a web browser uses to interpret and display information on your computer screen.  


An HTML file is a text file containing small mark-up tags .The mark-up tags tell the Web browser how to display the page ƒ An HTML file must have an html or html file extension.

HTML Tags

Html Tags

HTML Tags


HTML tags are used to mark-up HTML elements.

HTML tags are surrounded by the two characters < and >.

The surrounding characters are called angle brackets.

HTML tags normally come in pairs like <b> and </b>.

The first tag in a pair is the start tag, the second tag is the end tag. 

The text between the start and end tags is the element content.

HTML tags are not case sensitive, <b> means the same as <B>.

HTML Heading Tags

Html Heading Tags

HTML Heading Tags


Headings are defined as <h1> -<h6> tags.

<h1> defines the largest heading while <h6> defines the smallest heading. 

Below is the Example 



Heading Tags
Heading tags

Logical and Physical Tags

Html Tags Type

Logical and Physical Tags



In HTML there are Two types of tags

 Logical tags

 Physical tags.

Logical tags are designed to describe (to the browser) the enclosed text's meaning.

An example of a logical tag :-

<strong> </strong> tag.

By placing text in between these tags you are telling the browser that the text has some greater importance. By default all browsers make the text appear bold when in between the <strong> and </strong> tags. 

Physical tags on the other hand provide specific instructions on how to display the text they enclose.

Examples of physical tags include:  

<b>: Makes the text bold.  ƒ

<big>: Makes the text usually one size bigger than what's around it.   

<i>: Makes text italic. 

Web Development

Saturday, 7 September 2013

Calculate Power

#include<stdio.h>
#include<conio.h>
int calculatepower(int base,int exponent)
{
int p=1,a;
for(a=1;a<=exponent;a++)
{
p=p*base;
}
return p;
}
main()
{
int p;
p=calculatepower(3,4);
printf("power=%d",p);
getch();
}

Saturday, 1 October 2011

Funny Videos

http://vinescope.com/

Table of Any Digit

-------------------

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int tab,i;
cout<<"\nenter table";
cin>>tab;
for(i=1;i<=10;i++)
{
cout<<tab<<"*"<<i<<"="<<tab*i;
cout<<"\n";
}
getch();
}

Perfect Number

#include<stdio.h>
#include<conio.h>
int main()
{
int num,i=1,sum=0;
printf("Enter a number=");
scanf("%d",&num);
while(i<num)
{
if(num%i==0)
sum=sum+i;
i++;
}
if(sum==num)
printf("%d is a perfect number",i);
else
printf("%d is not a perfect number",i);
getch();
return 0;
}

Prime Number

#include<stdio.h>
#include<conio.h>
int main()
{
int s,num,count=0;
printf("Enter a number=");
scanf("%d",&num);
for(s=2;s<num/2;s++)
{
if(num%s==0)
count++;
}
if(count>0)
printf("\n%d not prime number",num);
else
printf("\n%d prime number",num);
getch();
return 0;
}

BMI Calculator

package javaapplication1;
import javax.swing.*;
import java.util.*;
import java.awt.*;
import java.util.Scanner;
/**
 *
 * @author FA12-BSE-127
 */
public class JavaApplication1 {

    int i;
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
       int w,h;
       float bmi;
             String str1=JOptionPane.showInputDialog("Enter weight(in pounds)");
             w=Integer.parseInt(str1);
             String str2=JOptionPane.showInputDialog("Enter height(in inches)");
             h=Integer.parseInt(str2);
             bmi=(w*730)/(h*h);
           
             System.out.println("The Mass Body Index:"+bmi);
             
                if(bmi<=18.5)
                System.out.println("Underweight");

                if(bmi>18.5 && bmi<=24.9)
                System.out.println("Normal");

                if(bmi>=25 && bmi<=29.9)
                System.out.println("Overweight");

                if(bmi>=30)
                System.out.println("Obese");

        }
 

    }
}

Constructor Addition

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package addition;

/**
 *
 * @author Zeeshan
 */
class add1
{

float n3;
int n1;
int n2;

public void add1(int num1, int num2)
{
n1=num1;
n2=num2;
System.out.println("addition 1 is :"+(n1+n2));
}

public void add1(int num1, int num2,float f1)
{
n1=num1;
n2=num2;
n3=f1;
System.out.println("addition 2 is :"+(n1+n2+n3));
}

public void add1(float f1, int num2, int num1)
{
n1=num2;
n2=num1;
n3=f1;
System.out.println("addition 3 is :"+(n1+n2+n3));
}


public static void main(String[] args)
{
add1 ad1=new add1();
ad1.add1(5,5);
ad1.add1(2,5,5.5f);
ad1.add1(2.5f,4,5);
}
}

C/C++ Programs

Table of Any Digit
------------------- 

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int tab,i;
cout<<"\nenter table";
cin>>tab;
for(i=1;i<=10;i++)
{
cout<<tab<<"*"<<i<<"="<<tab*i;
cout<<"\n";
}
getch();
}

Entertainment