Types of CSS

Types of CSS

Internal Style Sheets Internal style sheets should be used when you want to control the look and layout of a single web page. The internal style sheet code (<styletype=”text/css”>) is placed in between the head tags. The following CSS code example shows how this is done. The internal style sheet code, <style type=”text/css”>, doesn’t do anything visually itself. … Read more

PHP Loops

PHP Loops

Loop is a sequence of instructions continuously repeated depending on the boolean condition. If we want to execute our statement repeatedly, we can implement loop techniques and put statements execution according to the boolean condition. PHP Loop Types While Loop For Loop Do While PHP While Loop While loop is the most accessible loop to … Read more

PHP Data Types

PHP Data Types

PHP DATA TYPES In programming, if we want to use values(like 10,20) then we have to use data type(int, float, char) to represent its base type as real, integer, character, or Boolean that determines the possible values for that type. We can perform an action on values of that type. The meaning of data and … Read more

Storage Classes in C

Storage Classes in C

Storage classes in a C Programming Language are classified into four main types according to the storage area and their behavior, in this c programming tutorial we use these storage classes in many programs:- Automatic storage class: Automatic storage class variables in C Programming Language will be created and destroyed automatically. In the Automatic storage class, variables are stored … Read more

Classes and Objects in Java

Classes and Objects in Java

Java class is a set of related objects. The object(addition a1=new addition();a1 is the object) has some attributes, whose value consists much of the state of an object. Class is a user-defined data type in Java. The complete set of data and code of an object can be made a user-defined data type with the … Read more

Java Program to Calculate the Area of Rectangle

Java Program to Calculate the Area of Rectangle

Java program to calculate rectangle area using Scanner classes: import java.util.Scanner; public class Rarea { public static void main(String[] args) { Scanner inn = new Scanner(System.in); double height, width, area; System.out.println(“Area of Rectangle”); System.out.print(“Please enter the height: “); height = inn.nextDouble(); System.out.print(“Please enter the width: “); width = inn.nextDouble(); area = height * width; System.out.println(“Area: … Read more

AWT Event Classes

AWT Event Classes

The Event classes represent the events that are generated when an end user interacts with the AWT components. the EventObject class is the superclass for handling all events. the class exists in the package, java. util. The AWTEvent class is the subclass of the EventObject class and all AWT events originate from the AWTEvent class. … Read more

Changing Font and Color in Java Applet

Changing Font and Color in Java Applet

To display text(write the text), you must first select a font. A font is specified by its names, such as “Arial”,  the style(plain, bold, italic, or bold italics), and the point size. A font is an object in Java, so we need to create it via a call to new before we can use it. … Read more