Category Archives: Programming

Basic CSS

An external style is one in which you write the CSS code in a document separate from the HTML for the Web page. External style sheets can format some or all of the pages at your Web site. As such, … Continue reading

Posted in Programming | Tagged | Leave a comment

Beginning HTML

Every HTML document must contain the following tags: • <html> tag: Indicates the HTML language to the browser • <head> tag: Indicates the document’s header area • <title> tag: Displays the page’s name in the browser’s title bar • <body> … Continue reading

Posted in Programming | Tagged | Leave a comment

Basic XML

A prolog consists of four parts in the following order: 1. XML declaration 2. miscellaneous statements or comments 3. document type declaration 4. miscellaneous statements or comments The XML declaration is always the first line of code in any XML … Continue reading

Posted in Programming | Tagged | Leave a comment

Commenting in Java

/* block comments */ Programmers may use a block comment at the beginning of a program to describe the entire program, or in the body of a program to describe the function of a specific method. /** doc comments */ … Continue reading

Posted in Programming | Tagged | Leave a comment

Methods from the Math Class

Purpose: The Math class contains methods for performing basic numeric operations such as the elementary exponential, logarithm, square root, and trigonometric functions. Examples: Method Description Example Code Result abs() Absolute value Math.abs(-75) 75 max() Higher of two numbers Math.max(99,41) 99 … Continue reading

Posted in Programming | Tagged | Leave a comment

Object Oriented Programming

There are two popular approaches to writing computer programs: procedural programming and object-oriented programming. Procedural programming involves using your knowledge of a programming language to create computer memory locations that can hold values—for example, numbers and text, in electronic form.The … Continue reading

Posted in Programming | Leave a comment

Beginning Java

public class BeginningJava { public static void main(String[] args) { System.out.println(“This is a String”); } } This program is written on seven lines, and its only task is to print “This is a String” on the screen. Some things you … Continue reading

Posted in Programming | Tagged | Leave a comment