Month: December 2013

Create Form with HTML

HTML Tags:

<html>

<head>

<title>Forms Making</title>

<meta charset=”utf-8″ >

<link rel=”stylesheet” type=”text/css” href=”file:///E:/Learning from tuts plus/Assignment/forms.css”>

</head>

<body>

<form action=”” method=”get”>

<ul>

<li>

<label for=”name”> Enter Your Name: </label>

<input id=”name” name=”name” />

</li>

<li>

<label for=”comments”> Your Comments: </label>

<textarea id=”comments” name=”comments”> </textarea>

</li>

<li>

<label type=”css”>Do you like CSS?</label>

<input type=”checkbox” id=”css” name=”css”>

</li>

<li>

<label for=”language”>Favorite language?</label>

<input type=”radio”/>CSS

<input type=”radio”/>HTML

<input type=”radio”/>JavaScript

<input type=”radio”/>Ruby

</li>

<li>

<input type=”submit” value=”Go!” />

</li>

</ul>

</form>

</body>

</html>

HTML Form

HTML Form Browser View (Google Chrome)

CSS:
form li {
list-style: none;     Bullet points will be Disappeared

Bullet Points Disappear on Browser View (Google Chrome)

Bullet Points Disappear on Browser View (Google Chrome)

margin-bottom: 20px;    Create 20px Line Spacing between two lines

Margin Bottom : 20px Visual on Browser (Google Chrome)

Margin Bottom : 20px Visual on Browser (Google Chrome)

}

form ul {
padding-left: 0;    Remove gap between browser window and text
}

Before:

Before applying, padding left : 0;

Before applying, padding left : 0;

After:

Padding left : 0 Visual on Browser

Padding left : 0 Visual on Browser

label {
display: block;
}

Output Options

Console.WriteLine (“format string”, arg0, arg1, arg2, ………, argN);

Type 1.1:

Code:
Console.WriteLine(“February has {0,15} or {1,32} days.” , 28, 29);

Output:
February has 28 or 29 days.

Type 1.2:

Code:
Console.WriteLine (“February has {0,15} or {1,32} days.” , 28, 29);

Output:
February has [this gap is made for 15] 28 or [this gap is made for 32] 29 days.

Type 2:

Code:

int i;
Console.WriteLine (“Value\tSquared\tCubed”);

for ( i =1; i <6; i++) Console.WriteLine(“(0)\t(1)\t(2)” , i, i*i, i*i*i );

Output:

Value             Squared               Cubed

1                          1                          1

2                          4                          8

3                          9                          27

4                         16                         64

5                         25                        125

Type 3.1:

sign: { #.##}

Code:
Console.WriteLine (“The result is: {0:#.##}”, 10.0/3.0);

Output:

The result is 3.33 (numbers after the decimals are depened on the number of “#” sign put after “.” in the code)

Type 3.2:

Code:

Console.WriteLine (“The result is: {0:###,####.##}”, 123456.56);

Output:

The result is 123,456.56

Type 4.1:

Code:
Console.WriteLine ( @ “Here is some tabbed output:
1        2        3       4
5        6        7      8” );

Output:

Here is some tabbed output:
1        2        3        4
5       6         7        8

Type 4.2:

Code:
Console.WriteLine ( @ “Programmers’ say, “I like C#.” “);

Output:
Programmers’ say, “I like C#.”

Skull

<!DOCTYPE html>
<html>

<head>

<title> Title goes here when a new opened </title>

<meta charset=”utf-8″ />  Tell the browser which character to use.

</head>

<body>

<h1>My First Heading</h1>  h1 means font size should be as big as first headline.

<p>My first paragraph.</p>  Main content goes here.

</body>

</html>