Showing posts with label tag. Show all posts
Showing posts with label tag. Show all posts

HTML 5

About HTML 5 

HTML 5 that are now beginning to be implemented by some grade A browser will bring more than just a feature for page layout and format. Some of them are Canvas and Video.

Calling JavaScript Functions


Calling JavaScript Functions
To execute a function, we simply call upon the name of the function followed by an opening parenthesis, arguments (if any) and on the lid with a closing parenthesis.
Function_Name();

JavaScript Functions


JavaScript Functions

Function is a subprogram that allows us to run a group of instructions with a simple call to the function name of one or several parts in the body of a program. Subprogram form we call this function is very commonly used in many programming languages (of course with a slightly different way with each other). On the other way a function, also can call itself, is what we call the function recursively (but do not forget to put a special condition that the function can be stopped, if not endanger the sustainability of global programs).

PHP Array Sorting

PHP Array Sorting

The values contained in the array can be sorted, for numeric values are sorted from lowest to highest value while for the string will be ranked from a to z. To sort the values used sort() function with the terms of the array elements are integers, for the array with string element can be used asort() function.

PHP File Operation


PHP FILE OPERATIONS

To open / access the files in PHP you can use fopen (). The function fopen () can access files from the file system, or via HTTP or FTP on the Internet.
The syntax is:
 fopen (filename, access mode);

PHP Function


How to make function in PHP

Function or a number of statements that are packed in a name. This name can then be called multiple times in several places in the program.
The purpose of the use of the function is:
  • Facilitate in developing programs
  • Reduce the size of the program
To create a function, must follow the syntax as follows:

PHP For


PHP For Repetition

As with other programming languages, PHP also provides the facility to perform repetition. One way is to use a For. Write this example below :

PHP Boolean


PHP Boolean Values

Boolean values are typically used in program control structures, such as if or If-Else. There are several conditions must be in use Boolean values, namely :

PHP Switch


PHP Switch Statement

Switch statement is used to compare conditions with different values.
<?
$age = 2;
switch ($age) {
       case 1:
             echo "The baby was still very small";
             break;
       case 2:
             echo "The baby was already very lively";
             break;
       case 3:
             echo "The boy was already apparent intelligence";
             break;
       case 4:
             echo "The boy was very happy to enter kindergarten";
}
?>

PHP IF and IF-Else


PHP IF and IF-Else
IF StatemenetIF is used to check whether a condition in if met, if yes, an operation performed, consider the example below:
<?
$ name = 'castle';
if ($ name == 'castle') {
       echo "My home is $name";
}
?>

PHP Operator


PHP OPERATOR

The operator is useful to perform an operation on a value. Operators in PHP is very common so it is easy to understand. Here we will discuss the service that is often used.

Arithmetic Operators
$ x + $ y; / / for the summation
$ x - $ y; / / for the reduction
$ x * $ y; / / for multiplication
$ x / $ y; / / for division
$ x% $ y; / / for the rest of the results for (modulus)

Javascript Variables Declaration


Declaring Variables in Javascript

Writing JavaScript variables are very flexible, and not too complicated and strict, so we do not receive error messages too frequently when running the program. For example in JavaScript variable declarations we can do in two ways:

HTML Paragraph


Making Paragraphs
You can start putting your information on the web page. For this purpose HTML provides tags <P>. This command has several attributes. 
Tag <P> generally to mark a new paragraph. You can also use tags <BR> to start a new line, but the use of tags <P> mainly used to make the group a paragraph with a specific style formatting. Here is a sample paragraph in HTML.

Headings


Heading is used to display the name of a particular chapter or section which is considered as the main topic. In HTML there are six levels of headings ranging from tag <H1> until <h6>. You can also use tags to set the font size, eg, the largest with <H1> or makes the smallest with <h6> but this tag is not used for that purpose.

Heading Position

HTML Image


Image is a very important element in presenting information. <img> HTML provides tags for displaying images on your web page.
<IMG SRC="image1.gif" ALT="image1">
HTML command above will display images image1.gif and displays the text "image1" if the browser to turn off graphics viewer facility. Extension of the usual graphic display by the HTML are GIF, JPG, and BMP.
You can also combine graphics with tags <a> to create a link from your image.

HTML Table


Tables are very important in web design. Because by using the tags table you can create Web pages "divided" on some column or row. There are many website use table to divide the page in order to make the visitor easy in navigating the pages.
There are three tags or elements used in the making table: <TABLE>, <TR>, and <TD>. To remember is that the tab <TR> and <TD> be located between the tags <table> and </table>

<TABLE>
Attributes:

  • align - alignment: left, middle/center or right.
  • bgcolor - the background color from the table.
  • border - the size of the table border width (in pixels).
  • cellpadding - the distance between cell contents to the cell boundary (in pixels).
  • cellspacing - the distance between cell (in pixels).
  • width - the size of table in pixels or percent.

HTML Tag

Here is some example of frequently used html tags :
<!– –>
To provide comments or information. The sentence which is located on this tag is invisible on the browser
<a href>
Make a link to other pages or to other parts of the page
<a name>
Make section names defined on the links on the same page
<applet>
As a beginning of Java applets
<area>
Defines a area that can be click (link) on the image map
<b>
Make bold text
<basefont>
Make the default text attributes such as type, size and font color
<bgsound>
Giving background noise in web pages
<big>
Increase text size by one point from the default

Text Settings

To get a good web page you must make arrangements to texts such as selecting the type and font size, alignment, etc.. The tags below are commonly used in setting the text in HTML documents:

Headers : <Hn> .. </Hn> Used to adjust the font size in the header. "N" has a value between 1-6 or between <H1> until <h6>, with <H1> is the largest size and <h6> is the smallest size.
Example :
<H2> HTML Tutorial </H2>

Html Basic Structure

HTML (Hypert Text Markup Language) is a programming language used in web page creation. In use most of the HTML code must be located between the tag container. Which begins with <tagname> and end with </tagname> (there is "/" sign).
 
A web page has a minimum of four to make a tag, namely:
  • <HTML> As an early sign of an HTML document.
  • <HEAD> For information on the page header. Inside this tag we can put the tags TITLE, BASE, ISINDEX, LINK, SCRIPT, STYLE & META.
  • <TITLE> As the title or the title page. Sentences are located inside these tags will appear at the top of your browser (on the title bar).