Thursday 30 April 2015

Mouse Tips All Should Know In Windows

Mouse Tips All Should Know
Mouse is an important device for computer users. Some may not think about that, but guess a computer with no mouse and you to use the keyboard everytime you want to click something, maybe an icon or a pageo r anything else. Now did you find the use of mouse. In fact, mouse is one of most important input device apart from keyboard. That is why, when you buy a computer system, keyboards as well as mouse is also given becuase these are the basic input device for your sysytem.

Mouse is a device which coordinates using the x-axis and y-axis. Here are some mouse tips so that you can use the full potential of a mouse in time of need.

Left Mouse Buttton
The left mouse button is the one that we commonly use. It is used to open a folder, file or link.

Right Mouse Button
The right mouse button is used to open the property menu for the file, folder, or the web.

Move Text
If you have hightlighted a text, left click and drag it to move the text to the new position. This saves time instead of cutting and pasting everytime. You can also right click and drag the text and it will open the action menu which allows you to move, copy or link the text.

Shift Key + Mouse Click
Press the shift key and left-click the mouse wherever you want. It is used to highlight a portion or all the text in a text editor.

Ctrl Key + Mouse Click
Press the ctrl key and left-click the mouse to select multiple objects or hightlight multiple text. If single click didn't do the trick, try double-clicking.

Alt Key + Mouse Click
Press the alt key and left-click the mouse to select the text vertically. This is useful if your content is in columns.

Cut, Copy, Paste
You don't have to click the cut, copy or paste icons in text editors. You just have to right click on the highlighted text and options like cut, copy, paste including undo and redo will appear.

Links in New Tab
Press the Ctrl key and click on a link to open the link in a new tab.

Move & Copy
You can also use the mouse to move or copy folders, files or other items.
  • Press the shift key and drag and drop item using the left mouse button to move the item.
  • Press the ctrl key and drag and drop item using the left mouse button to copy the item.
  • You can also drag and drop the file or folder using the right mouse button to open the action menu which allows you to copy or move create a shortcut.
Open Command Window
Did you know that you can open the command window using the mouse. You don't have to go the Run command and type "cmd" everytime you want to open the command window.  Press the shift key and right key on the mouse will open the option to open command window.

Functions of Mouse Wheel
All of you must be familiar with the mouse wheel since we all use it to scrool up and down. But there are also some other functions of the mouse.
  • The mouse wheel is not just a wheel, but also a button. It can used as the mouse's third button.
  • You can click the middle button to open a link in a new tab. Just click on the link and the link will automatically open in a new tab. 
  • You can also close the link by simply clicking the middle button on the tab.
  • Mouse wheels can also be used to scroll automatically. Just double-click on the mouse wheel, a arrow shaped cursor will come. Move the cursor to push the scroll bar to wher e you want to go.
  • Zooming can be done by using the mouse wheel. Just click the Ctrl key and scroll up to zoom in and scroll down to zoom out. This can be done in most web browsers, documents etc.
  • Click the shift key and scroll the wheel to go forward and back in most web browsers.
Power of multiple clicks 
You always double click to open a folder or a file or an application. But there are also some other importance in multiple clicks

  • Double click on the title bar of your window to maximize it.
  • Double click on the left hand side of your title bar to close it.
  • Double click on a text to select a whole word.
  • Double click and drag the mouse to select one word at a time.
  • Triple click on a text to select the whole paragraph.
Mouse Side Buttons
Now many new mouse comes with side buttons which can be programmed to do anything. By default, the left-thumb button is used to go back on web pages. This helps you since you don't have to move your cursor anytime you want to change the browser tab windows.

Windows Snap To Feature
If you want to save time to automatically move your mouse to buttons of dialog box, you can turn on the Windows "Snap To" feature in the control panel. 

Move your Mouse with your Keyboard
Instead of using the mouse, you can use the keyboard to move the mouse cursor by enabling Windows option. 

Customize your Mouse
At last, you can customize your mouse button configuration. You can switch primary and secondary buttons, change the speed, change the pointer, display pointer trails. Finally, if you have a mouse with more than two buttons, installing the mouse software will allow you to customize your mouse even more.

Wednesday 29 April 2015

jQuery Syntax

With jQuery, we can select HTML elements and perform some actions in it.

jQuery Syntax

The jQuery syntax is used to select the HTML elements and perform some action in it.

The Basic Syntax is : $(selector).action()
  • The $ sign is used to define or access jQuery
  • The (selector) is used to find or select HTML elements.
  • The action() is the jQuery action to be performed in the HTML element.
For example:
$("p").hide()

The Document Ready Event

The document ready event is used to prevent any jQuery code from running before the document had finished loading. It is good practice for the document to be loaded before working with it. This also allows you to place the jQuery code before the body of the document, that is in the head section.

For example:
$ (document).ready(function() {
   // jQuery method goes here...
});

The jQuery team has also created an even shorter method for the document ready event.

For example:
$ (function () {
   // jQuery method goes here...
});

Monday 27 April 2015

HTML Tables

Tables are used to create tabular data that is, data represented in rows and columns. HTML tables are created using the <table> tag in conjunction with the <tr> and <td> tags. Some also use table to represent web layouts.

HTML <table> Tag

The <table> tag is used to create a HTML table. The <table> tag is used in conjunction with the <tr>, <th> and <td> tag to create a table.

For example:
<table>
<tbody>
<tr>
<th>HTML</th>
<th>CSS</th>
</tr>
<tr>
<td>Hyper Text Markup Language</td>
<td>Cascading Style Sheets</td>
</tr>
<tr>
<td>.html</td>
<td>.css</td>
</tr>
</tbody>
</table>

HTML <tr> Tag

The <tr> tag is used to define a table row in an HTML table. The <tr> tag contains more than one <th> and <td> tags.

For example:
<table>
<tbody>
<tr>
<th>HTML</th>
<th>CSS</th>
</tr>
<tr>
<td>Hyper Text Markup Language</td>
<td>Cascading Style Sheets</td>
</tr>
<tr>
<td>.html</td>
<td>.css</td>
</tr>
</tbody>
</table>

HTML <th> Tag

The <th> tag is used to create a header cell in HTML tables. The header cell will be bold and centered and also left-aligned by default.

For example:
<table>
<tbody>
<tr>
<th>HTML</th>
<th>CSS</th>
</tr>
<tr>
<td>Hyper Text Markup Language</td>
<td>Cascading Style Sheets</td>
</tr>
<tr>
<td>.html</td>
<td>.css</td>
</tr>
</tbody>
</table>

HTML <td> Tag

The <td> tag is used to create standard cells in HTML tables. This cell usually contains the data in the table.

For example:
<table>
<tbody>
<tr>
<th>HTML</th>
<th>CSS</th>
</tr>
<tr>
<td>Hyper Text Markup Language</td>
<td>Cascading Style Sheets</td>
</tr>
<tr>
<td>.html</td>
<td>.css</td>
</tr>
</tbody>
</table>

HTML <caption> Tag

The <caption> tag is used to define a table caption. The <caption> tag is inserted just after the <table> tag. By default, the caption may be center aligned.

For example:
<table>
<caption>WEB DESIGNING</caption>
<tbody>
<tr>
<th>HTML</th>
<th>CSS</th>
</tr>
<tr>
<td>Hyper Text Markup Language</td>
<td>Cascading Style Sheets</td>
</tr>
<tr>
<td>.html</td>
<td>.css</td>
</tr>
</tbody>
</table>

HTML <thead> Tag

The <thead> tag is used to group the header contents in an HTML table. The <thead> tag is used in conjuction with the <tbody> and <tfoot> to specify each part of the table.

For example:
<table>
<thead>
<tr>
<th>HTML</th>
<th>CSS</th>
</tr>
</thead>
<tbody>
<tr>
<td>Hyper Text Markup Language</td>
<td>Cascading Style Sheets</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>.html</td>
<td>.css</td>
</tr>
</tfoot>
</table>

HTML <tbody> Tag

The <tbody> tag is used to group the body contents in an HTML table. The <tbody> tag is used in conjuction with the <thead> and <tfoot> to specify each part of the table.

For example:
<table>
<thead>
<tr>
<th>HTML</th>
<th>CSS</th>
</tr>
</thead>
<tbody>
<tr>
<td>Hyper Text Markup Language</td>
<td>Cascading Style Sheets</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>.html</td>
<td>.css</td>
</tr>
</tfoot>
</table>

HTML <tfoot> Tag

The <tfoot> tag is used to group the footer contents in an HTML table. The tag is used in conjuction with the <thead> and <tbody> to specify each part of the table.

For example:
<table>
<thead>
<tr>
<th>HTML</th>
<th>CSS</th>
</tr>
</thead>
<tbody>
<tr>
<td>Hyper Text Markup Language</td>
<td>Cascading Style Sheets</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>.html</td>
<td>.css</td>
</tr>
</tfoot>
</table>

HTML <colgroup> Tag

The <colgroup> tag is used to specify a group of one or more columns in a table for formatting. The <colgroup> tag is useful to specify styles for an entire column rather than repeating styles for each cell, for each row.

For example:
<table>
<colgroup>
<col span="2" style="background-color: yellow;"></col
<col style="background-color: red;"></col>
</colgroup>
<tbody>
<tr>
<th>HTML</th>
<th>CSS</th>
<th>JavaScript</th>
</tr>
<tr>
<td>Markup Language</td>
<td>Style Sheet Language</td>
<td>Scripting Language</td>
</tr>
<tr>
<td>.html</td>
<td>.css</td>
<td>.js</td>
</tr>
</tbody>
</table>

HTML <col> Tag

The <col> tag is used to specify column properties for each column within a element. The <col> tag is useful to specify styles for an entire column rather than repeating styles for each cell, for each row.

For example:
<table>
<colgroup>
<col span="2" style="background-color: yellow;"></col
<col style="background-color: red;"></col>
</colgroup>
<tbody>
<tr>
<th>HTML</th>
<th>CSS</th>
<th>JavaScript</th>
</tr>
<tr>
<td>Markup Language</td>
<td>Style Sheet Language</td>
<td>Scripting Language</td>
</tr>
<tr>
<td>.html</td>
<td>.css</td>
<td>.js</td>
</tr>
</tbody>
</table>

JavaScript Syntax

Just like all programming language,in JavaScript also, the Syntax defines how to construct the language. It is the principle by which the language is constructed. The sentences of a programming language is called statements.

JavaScript Character Set

JavaScript uses Unicode character set. Unicode cover almost all characters, punctuations, and symbols in the world. Unicode enables processing, storage, and transport of text, independent of platform and language. Unicode can be implemented by different character set. The most commonly used encoding are UTF-8 and UTF-16. A character set contains the following:

  1. Letters: The English alphabets (A to Z and a to z)
  2. Digits: The Numerals (0 to 9)
  3. Special Characters: + - * / \ ! @ # $ % ^ & * ( ) _ - = [ ] { } | ; : " ' , . ? etc
  4. White spaces: Blank Space (Space bar), Tab, Return etc
  5. Other characters: Non-Graphic Symbols.

JavaScript Functions

A function is a block of code designed to perform a particular task. JavaScript statements written inside a JavaScript function, can be invoked many times as the user desires. To invoke a function means to call upon the function or asking up the code in the function which is being called to be executed.

For example:

function myFunction (a, b) {
 return a + b;
}

JavaScript Data Type

JavaScript data types are the data's provided to an variable. It can be anything like number, characters, text string, arrays, objects, and much more. A programming language like JavaScript has to deal with all kinds of data. Data types are defined to differentiate the nature and size of incoming data. JavaScript is flexible enough to allow user to define data types therefore increasing its demand in the programming world.

For example:

var number = 10;
var name = "Edwin";
var language = ["HTML","CSS","JavaScript","jQuery"]

JavaScript Keywords

A JavaScript statement always starts with a keyword. The words that convey a specific meaning to the language compilers are called keywords. These are also known as reserved words as they are reserved by the language for special purpose and cannot be redefined for any other purpose.

abstract else instanceof super
boolean enum int switch
break export interface synchronized
byte extends let this
case false long throw
catch final native throws
char finally new transient
class float null true
const for package try
continue function private typeof
debugger goto protected var
default if public void
delete implements return volatile
do import short while
double in static with

For example:

var x = 5 + 6;
var y = a * b;

JavaScript Identifiers

All programming languages must identify variables, functions, and objects with unique name. These unique names are called identifiers. Identifiers are the user defines words that are used to name different program elements such as memory locations, functions, statements, objects, classes etc. These are the fundamental building blocks of the program. The identifiers of memory locations are called variables; of functions are called function names; of statements are called labels and so on.

JavaScript Literals

Literals are tokens that represent data items that never change their value during the program run. They are often referred to as constants. In programming language, literals are constants. Number literals can be written with or without decimal points, and wit or without scientific notations. String literals can be written with double or single quotes.

For example:

3.14
1001
123e5
"Edwin Ronald Lambert"
'Edwin Ronald Lambert'

JavaScript Operators

Data processing is a sequence of operations. Operators are predefined symbols that can carry out operations. Operators are the token that triggers some kind of operations on the data. The data on which the operations are carried out are called operands. The operands may be either a constant or a variable. Generally operators perform the operations and return some results.

For example:

x = 5;
y = 6;
z = x + y;

JavaScript Statements

JavaScript statements are commands to the browser. It tells the browser what function it has to do. JavaScript ignores spaces, tabs and newlines that appears in a JavaScript program. Because of that, it allows you to format and indent the program in a neat and consistent way that make the code easy to read and understand. Semicolon separates the JavaScript statements. Therefore we add semicolon at the end of each executable statements.

For example:

x = 5 + 6;
y = x * 10;

JavaScript Variables

In JavaScript, variables are the named memory locations capable of storing constants or data. in fact, variables are containers for storing informations or data. A variable can be defined in any data type. The size and nature of data stored in a variable depends on the data type , it is declared. The equal sign assigns a value to a named variable.

For example:

x = 5;
y = 6;
z = x + y;

JavaScript Comments

JavaScript comments are used to explain the code and make the code more readable. It can also be used to prevent execution during testing alternative codes.

For example:

//This is a single line comment. I will not be executed.

/*
This is a double line comment.
I will not be executed.
*/

Sunday 26 April 2015

What is Blogging?

What is Blogging
A blog is discussion site where one writes about an event, topic or even his daily life to the public published by the World Wide Web. The process of creating and writing in a blog is called blogging. It is an informative and fun thing to do. Anybody who has the knowledge to write, even from small children can write a blog. It is a free, inexpensive to enhance your reach to the public.

Websites have their time. It has cool designs and is still the main part of the web. But blogging is not website. It is completely different and also on the other hand similar to the web. You don't have to learn all computer languages for blogging. Just plain English (or any other language) and if you want you can also know the basic HTML, CSS code also. That may sometimes help you in the arrangement also.

There are many important things in blogging such as:
  • Boost Search Engine Optimization: The web is looking for new and fresh contents. Nobody wants to see the viewed things again and again. They want new details, information, fun and the best way to provide these to them is by blogging. It is free of cost. So we can write our heart content in our own language. You can write the content in your own words. Make it fun and more people will read it. People are looking for new things, so it's our job to give it to them.
  • Establish your Business: If you are trying to get your product to the world, then blogging is a path way for that. By blogging, you can define your products so that more people would see. That is why, most websites have Blog page in their menu bar. So even if your business is small, you can reach more people by giving more enhance and informative detail about your product and services which may convince the people to try out these services. At first, this may a bit slow, but if you put in your blood and sweat for this, you may ultimately find a better customer rate for your product.
  • Develop Relation with Customers: By blogging, it allows you to connect with more people especially your site visitors. Most people don't want to see all those cool pictures of products or the website design. They wanted to know about the product, not only see it. They have so many questions to which we have to give the answers. So blogging is a way to give them what they want. By blogging, it helps you to promote your product and also establish a healthy relation with the customer who may sometimes share it to their friends.
  • Connect People to your Product: Blogging allows people to see your personal side apart from all the marketing techniques. This allows people to connect and see the standards, vision and personality of your business.
  • Get Shared: Connecting with more people may help your business because if the people see that your product is of importance, they may share this to the friends, family and more likely to the public. This brings in new visitors and then again new visitors. When the share this to social media sites, this allows more people to know about our site.
  • Drive Traffic to Website: If more people view your blog, then they are surely likely to visit your site as well. Some of them may stay and may get interested in your products. So blogging is one way to get more people to join the community and help you rise in business.
So as you have guessed, blogging is good. It is really good for you if you have a small site or business. But remember, people don't come to your blog if you are giving the same old subjects that everyone else provides. You have to be creative. New ideas and new innovations are what people are looking for. This may help you to raise your business, get creative and know better writing also. Write your contents in your language. Yeah, you can search the web if you have doubts, but don't write like them. Be Creative!

There are many platforms through which you can let the world know. It is up to you to select which one to choose. Every platform has their own features. So don't worry, if one is good than the other and other is good then this one. Even if you choose any platform, it is you who does the work. So don't worry of choosing your platform. Get the one with which you are comfortable.

JavaScript Statements

WebLearn Tech

A JavaScript consist of statements that are placed inside the <script> and </script> HTML tags. The <script> tag tells the browser that everything inside the tag is a script. In HTML, JavaScript is a sequence of statements that can be executed by a web browser.

JavaScript Statements

JavaScript statements are commands to the browser. It tells the browser what function it has to do. JavaScript ignores spaces, tabs and newlines that appears in a JavaScript program. Because of that, it allows you to format and indent the program in a neat and consistent way that make the code easy to read and understand. Semicolon separates the JavaScript statements. Therefore we add semicolon at the end of each executable statements.

JavaScript Code

JavaScript code is a sequence of JavaScript statements. Each statement is executed by the browser in the sequence they are written. JavaScript code can be grouped together in blocks. A block starts with the left curly bracket and ends with the right curly bracket. The purpose of the block is to make the sequence of the statement execute together. You can break up the code using a backslash within the text string.

For example:

<!DOCTYPE html>
<html>
<body>

<h1>My Web Page</h1>
<p id="myPar">This is a paragraph</p>
<div id="myDiv">This is a Div</div>
<p><button type="button" onclick="myFunction()">Try it</button></p>

<script>
function myFunction()
{
document.getElementById("myPar").innerHTML="Hello World!";
document.getElementById("myDiv").innerHTML="How are you?";
}
</script>

</body>
</html>

JavaScript Identifiers

All programming languages must identify keyords, variables, methods, properties and labels with unique names. In JavaSript, these unique names are called identifiers. In JavaScript, these identifiers should begin with a letter, or an underscore (_) or a dollar sign ($). The other characters can be letters, digits, underscore or dollar sign. Some JavaScript identifiers are reserved as keywords and cannot be used as identifiers in a script.

JavaScript is case Sensitive

JavaScript is Case Sensitive. All identifiers, keywords, variables, methods, properties, and functions are case sensitive. A variable named myVariable is different from MyVariable, also the function getElementById is different from getElementbyID.

Resolve Windows Automatic Rebooting

Resolve Windows Automatic Rebooting
Sometimes after a system failure or a system crash you may find that the windows OS keeps rebooting on and on. The system may open only up to the windows loading and then reboots. Yes, it is a problem happened to most PC in the world. You may sometimes worry about this or may get irritated. You may also try out all that you can to bring this back to normal. Sometimes you can or on the other hand, sometimes you cannot.

Some of the things that lead to this problem are:

  • May be you clicked on the power switch to shut down fast. This saves time, but destroys the life of your computer. Because, one, by doing this you may corrupt the hard disk. The Hard disk as all of you is a magnetic device, so it needs time to save all the files correctly. That is why, it takes time to shut down when you click the Turn off button because the computer is saving the files and correcting all the work it had done. So if we shut down by clicking the power switch, we may risk losing the hard disk because the hard disk suddenly stops while working which may lead to system failure. So don't ever switch off like that. And all of you should use UPS also, because sudden power cuts can sometimes lead to hard disk damage. 
  • Check your power supply. This problem may also arise due to dying power supply. Try checking your power supply whether it is in good condition and it still doesn't tell you; check the system with a spare one.
  • It may be also due to the computer temperature. Always have in mind to have fans, heat sink or air compressor in your CPU cabinet. Make sure that these components work perfectly. Increase in work load means increase in production of heat, which may damage your processor. Keep your processor safe. Without your CPU, your computer is just like running dead. You need a processor for the smooth working of your PC. So keep in mind to keep safe of your CPU.
  • Protect your cabinet from dust. Sometimes dust can also lead to damage in motherboard components. So it is better to clean your cabinet once in a while. Keep in mind to switch off your PC completely while cleaning. We do not want any damage to ourselves also. Right! 
Don't worry if your computer keeps on rebooting. You have many options to try out. First check all the system components. 

Method 1:
If you are using Windows 7 keep in mind that the problem is set by default to automatically restart the operating system after a system failure.

To avoid system reboot in the future, you have to cancel automatic reboot. Click Start - Computer - right click on Properties and click on Advanced System Settings.
 Resolve Windows Automatic Rebooting
In the advanced option, click Settings on Startup and Recovery.
Resolve Windows Automatic Rebooting

In the startup and recovery settings, uncheck the Automatically restart for system failure and click Ok.
Resolve Windows Automatic Rebooting

Method 2:

Here are some of the things to check while system rebooting.

  • Check all your components are correct. No lose wire or something like that.
  • Check you're HDD, RAM, power supply and other drives. Also your fans and heat sink.
  • Remove the HDD and try to boot it from a bootable DVD.
  • If you have a graphics card, remove it and try to connect the monitor to the onboard video chipset.
  • Check the CPU temperature in BIOS.
  • Check whether your CPU voltage is high enough to power up the system.
  • It may be due to a system virus, try to get rid of it.
  • Do a system repair by clicking the F8 button on restart. On the Advanced Boot Options screen, use the arrow keys to highlight Repair your computer, and then press Enter. Select a keyboard layout, and then click Next. On the System Recovery Options menu, click a tool to open it.
  • Insert the Windows installation disc or a system repair disc and try to repair it.
  • Troubleshoot your computer in safe mode. 
  • If your problem doesn't end, try formatting and reinstalling the windows OS once more.
Hope you liked this post. If you have more ideas, feel free to comment them and let the people who are in trouble know the solutions.

Saturday 25 April 2015

Keyboard Shortcuts All Should Know In Windows

Keyboard Shortcuts All Should Know
Keyboard is an essential part of our life. Not only for computer professionals, but also to small kids onwards, we need keyboards to type in the data to the computer. In fact, keyboard is one of those devices which have reduced time management. So keyboards are a friend to anybody who uses computer, which may be everyone in today's world.

Using keyboard we can many things such as type in text, play video games, etc. As all of you know, keyboards are the evolved form of typewriters which were used to write documents in olden times. Well, keyboard is also used in writing, but has many functionality.

So you all use keyboards, so it important to know some of the shortcuts of your computer. I am using a Windows PC, so I am posting only Windows shortcuts. Sorry! Mac users, no hard feelings. It's just that I have come in contact with Windows more. Using shortcuts is really helpful in certain times. Instead of using the mouse dragging the text over and over again. It is best to use keyboard shortcuts sometimes.

Here is a list of some of the important keyboard shortcuts that all of you should memorize.

Ctrl + X or Shift + Delete
Press the control key and X or shift key and delete key on the keyboard to cut the selected text or selected item.

Ctrl + C or Ctrl + Insert
Press the control key and X or control key and Insert key to copy the selected text or selected item.

Ctrl + V or Shift + Insert
Press the control key and V or shift key and Insert key to paste the selected text or selected item that we had cut or copied.

Ctrl + A
Press the control key and A to select all text or items present in the program or device.

Ctrl + Z
Press the control key and Z to undo any change that we had just implemented.

Ctrl + Y
Press the control key and Y to redo the change that we had just undo-ed.

Ctrl + S
Press the control key and S to save the document or other file in any program. This can be used anytime when you are doing something important.

Ctrl + N
Press the control key and N to open a new bank document in the current program.

Ctrl + O
Press the control key and O to open a file within the current program.

Ctrl + P
Press the control key and P to print the document which is opened right now.

Ctrl + F
Press the control key and F to open the find option in any program.

Alt + Tab
Press the alt key and tab key to switch between open programs moving forward. Press Shift key along with these two to move backwards.

If you are Windows Vista or & or higher, you can use the Windows key and tab key to switch your programs in full screenshot mode.

Ctrl + Tab
Press the control key and tab key to switch between the tabs of a programs moving forward. Press Shift key along with these two to move backwards.

Windows Key + D
Press the windows key and D to minimize all open programs and show the desktop.

Windows Key + Down Arrow & Windows Key + Up Arrow
Press the windows key and down arrow to minimize the program. First it comes to its "normal state"; then press the down arrow again to minimize it completely.

Press the windows key and up arrow to maximize the program from its normal state.

Windows Key + Left Key or Right Key
Press the windows key and left or right key to slide your program to the left side or the right side of your window.

Ctrl + Shift + Escape or Ctrl + Alt + Delete
Press the control key along with shift key and escape to bring the task manager up front with any intermediate step.

Press the control key along with alt key and delete key to bring the task manager in Windows XP, whereas we have to choose the task manager in Windows Vista, 7 and higher versions.

Ctrl + Escape
Press the control key and escape key to open the start menu. It is an alternate way of using the windows key.

Windows Key + L
Press the windows key and L to lock your PC and it immediately displays the login screen.

Windows Key + P
Press the windows key and P to switch setting if you are giving a presentation or using multiple monitors.

Windows Key + Plus sign or Minus sign
Press the windows key and plus sign or minus sign to zoom in or zoom out.

Ctrl + Backspace
Press the control key and backspace key to delete a full word instead of a single letter.

Ctrl + Left Key or Right Key
Press the control key and left or right key to move the cursor one word at a time instead of one character.

Ctrl + Shift + Left key or Right key
Press the control key and shift key along with left or right key to highlight one word at a time. Press the shift key and down to select one line instead of one word.

Shift + Home key or End key
Press the shift key and home or end key to highlight the line in which the cursor is instead or selecting one word or a character at a time.

Ctrl + Home key or End key
Press the control key and home or end key to bring the cursor to beginning or to the end of the document.

Page Up, Page Down
Press the page up key to move up one page at a time. Press the page down key to move down one page a time.

Press the space key also to move down one page at a time.

Alt + Enter
Press the alt key and enter key to open the properties of selected item.

Alt + F4
Press the alt key and F4 to close the current program.

F1 to F12 (Function Keys)
F1: Used as help key for Windows and also for most programs.
F2: Used to rename files and folders
F3: Opens the search feature for Windows and most programs.
F4: Opens find window in Windows 95 to XP, Opens address bar in windows.
F5: Refresh or reload Windows or the current document.
F6: Moves the cursor to the address bar of most programs.
F7: Commonly used to spell check or grammar check.
F8: Used to enter Windows startup menu, commonly to enter Windows safe mode.
F9: Refresh document in MS Word and send and receive mail in MS Outlook.
F10: Activates the menu bar of Windows.
F11: Enter and exit full screen mode in most browsers.
F12: Open the save as window in MS Word.

CSS List

WebLearn Tech

The CSS List property allows you to set different list item markers for ordered and unordered list. In HTML, there are two kinds of list, unordered list and ordered list. With CSS, it can be styled further and images can be used as lists.

List Style

The list-style property is used to set all list styles in one declaration. The properties are in the order: list-style-type, list-style-position, list-style-image.

For example:

<!DOCTYPE html>
<html>
<head>
<style>
ul
{
list-style:square url('square.gif');
}
</style>
</head>

<body>
<ul>
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
<li>jQuery</li>
</ul>
</body>
</html>

List Style Image

The list-style-image property replaces the list-item marker with an image.

For example:

<!DOCTYPE html>
<html>
<head>
<style>
ul
{
list-style-image:url('square.gif');
}
</style>
</head>

<body>
<ul>
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
<li>jQuery</li>
</ul>
</body>
</html>

List Style Position

The list-style-position property is used to specify if the list item markers should appear inside or outside of the content flow.

For example:

<!DOCTYPE html>
<html>
<head>
<style>
ul.a {list-style-position:inside; }
ul.b {list-style-position:outside; }
</style>
</head>

<body>
<p>The following list has the list-style-position inside:</p>
<ul class="a">
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
<li>jQuery</li>
</ul>

<p>The following list has the list-style-position outside:</p>
<ul class="b">
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
<li>jQuery</li>
</ul>
</body>
</html>

List Style Type

The list-style-type property is used to specify the type of list-item in a list.

For example:

<!DOCTYPE html>
<html>
<head>
<style>
ul.a {list-style-type:circle; }
ul.b {list-style-type:square; }
ol.c {list-style-type:upper-roman; }
ol.d {list-style-type:lower-alpha; }
</style>
</head>

<body>
<p>Example of unordered lists:</p>

<ul class="a">
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
<li>jQuery</li>
</ul>

<ul class="b">
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
<li>jQuery</li>
</ul>

<p>Example of ordered lists:</p>

<ol class="c">
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
<li>jQuery</li>
</ol>

<ol class="d">
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
<li>jQuery</li>
</ol>

</body>
</html>

HTML Sections

HTML elements can be grouped together for various content. Some of the common used tags are <div> and <span>. We can use <div> to display the header section or footer section. But, in HTML5, new tags such as <nav>, <header>, <footer> reduce the tag consumption used in <div> element.

HTML <div> Tag

The <div> tag is used as a block level element that can be used as a container for grouping other HTML elements. The <div> tag has no special meaning, except that it displays a line break before and after the tag. When used with CSS, it can be styled to our desire. It is also used to describe web page layouts.

For example:
<div>
<h1>This is a heading</h1>
<p>This is a paragraph</p>
</div>

HTML <span> Tag

The <span> tag is an inline element that can be used as a container for text. When used with CSS, it can be used to style the text.

For example:
My friend has <span style="color: brown">brown</span&gt: eyes.

HTML5 <header> Tag

The <header> tag is used to specify the header of the document or section. It should be used as the container for introductory contents.

For example:
<header>
<h1>HTML</h1>
<p>HTML means Hyper Text Markup Language</p>
</header>

HTML5 <section> Tag

The <section> tag id used to define a section in a document. A section is a used for grouping of content, typically with a heading.

For example:
<section>
<h1>HTML</h1>
<p>HTML means Hyper Text Markup Language</p>
</section>

HTML5 <article> Tag

The <article> tag is used to specify independent, self-contained content. An article should make sense on its own and it should be possible to distribute it independently.

For example:
<article>
<h1>HTML</h1>
<p>HTML means Hyper Text Markup Language</p>
</article>

HTML5 <aside> Tag

The <aside> tag is used to specify some content aside from the content it is placed in.

For example:
<aside>
<h1>HTML</h1>
<p>HTML means Hyper Text Markup Language</p>
</aside>

HTML5 <footer> Tag

The <footer> tag specifies the footer of the document or section. A footer usually contains the name of author, copyright information, links to term of use, contact information etc.

For example:
<footer>
<p>Posted by: Hege Refsnes</p>
<p>Contact information: <a href="mailto:someone@example.com">someone@example.com</a>.</p>
</footer>

HTML5 <details> tag

The <details> tag specifies additional details that the user can view or hide on demand. It can be used to create an interactive widget that the user can open and close. Any sort of content can be put inside the <details> tag.

For example:
<details>
<summary>Copyright.</summary>
<p>by Edwin Ronald Lambert.</p>
<p>HTML is fun.</p>
</details>

HTML5 <dialog> Tag

The <dialog> tag is used to define dialog box or a window. The <dialog> element makes it easy to create popup dialog and modal in a web page.

For example:
<dialog open>This is a dialog!</dialog>

HTML5 <summary> Tag

The <summary> tag is used to define a visible heading for the <details> element. The heading can be clicked to view/hide the details.

For example:
<details>
<summary>Copyright 2014 </summary>
<p>Posted by: Edwin Ronald Lambert</p>
<p>All Rights Reserved</p>
<details>

HTML <iframe> Tag

The <iframe> tag is used to display an inline frame. That is to display a web page within a web page. It is used to embed another document inside the current document.

For example:

<iframe src="http://weblearntech.blogspot.in/"></iframe>

Friday 24 April 2015

What is Bootstrap?

Bootstrap is a powerful free front-end framework for faster and better web development. Bootstrap includes HTML and also CSS based designs for typography, layout, forms, buttons, images etc. It also contains many JavaScript plugins. Bootstrap also has the ability to create responsive websites. Responsive websites are those websites that automatically adjust their design so as to work perfectly in all devices ranging from smart phones to desktop PC.

Bootstrap was developed by Mark Otto and Jacob Thornton at Twitter, and released as an open source product in August 2011 on GitHub.

Advantages of Bootstrap

  • It is easy to use: Anybody who knows basic knowledge in HTML and CSS can design using Bootstrap.
  • Responsive: Used to create responsive pages which adjust automatically as the device needs.
  • Mobile-first framework: Mobile-first are also a part of the core framework.
  • Browser compatible: Bootstrap is compatible with all browsers now a days.

Get Bootstrap

There are two ways by which you can access Bootstrap.

Bootstrap CDN

You can also host Boostrap yourself, you can just include it from a CDN (Content Delivery Network). MaxCDN provides the CDN support fot Boostrap.

<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">

<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js">

Thursday 23 April 2015

HTML Multimedia

Multimedia comes in different format. It can be pictures, audio, video, animation and much more. Modern web pages often have embedded multimedia elements and supports various multimedia format.

Multimedia Formats

Multimedia elements like audio and video are stored in media files. The most common way to look up a media file is to look its extension.

HTML5 <audio> Tag

Before HTML5, audio was played with a plug-in. HTML5
<audio controls>
<source src="song.ogg" type="audio/ogg"></source>
<source src="song.mp3" type="audio/mpeg"></source>
<source src="song.wav" type="audio/wav"></source>
</audio>

Audio Formats
MIDI .mid
.midi
MIDI (Musical Instrument Digital Interface) is a format for electronic music devices.
RealAudio .rm
.ram
RealAudio was developed to allow streaming of audio with low bandwidth.
WMA .wma WMA files can be delivered as a continuous flow of data, which make it practical for use in Internet Radio.
AAC .aac AAC was developed by Apple as the default format for iTunes.
WAC .wav WAV is compatible with Windows, Macintosh and Linux.
Ogg .ogg Ogg was developed by Xiph.Org Foundation.
MP3 .mp3 MP3 is the most popular sound format. It is supported in all major browsers.

HTML5 <video> Tag

Before HTML5, video was played with a plug-in. HTML5 <video> element is used with which one can embed video files on a web page. HTML5 on supports MP4, WebM and Ogg video file.

For example:
<video height="240" width="320" controls>
<source src="movie.ogg" type="video/ogg"></source>
<source src="movie.mp4" type="video/mp4"></source>
<source src="movie.webm" type="video/webm"></source>
</video>

Video Format
AVI .avi AVI was developed by Microsoft, therefore can be played in Windows Computer.
WMV .wmv WMV was developed by Microsoft, therefore can be played in Windows Computer.
Quicktime .mov Quicktime was developed by Apple, therefore can be played in Apple Computer.
RealVideo .rm
.ram
RealVideo was developed to allow streaming of audio with low bandwidth.
Flash .swf
.flv
Flash was developed by macromedia.
Ogg .ogg Ogg was developed by Xiph.Org Foundation.
WebM .webm WebM is a project by the web giants Mozilla, Opera, Adobe and Google.
MPEG .mpg
.mpeg
MPEG is the most popular video format in the internet.
MPEG-4 or MP4 .mp4 MP4 is the upcoming video format of the internet.

HTML5 <source> Tag

The <source> tag is used to specify multiple media resources for media elements such as <audio> and <video>. The <source> tag allows you to specify alternate video or audio files which the browser may choose from, based on its media types and codec support.

For example:
<audio controls>
<source src="song.ogg" type="audio/ogg">
<source src="song.mp3" type="audio/mpeg">
<source src="song.wav" type="audio/wav">
</audio>

HTML5 <track> Tag

The <track> tag is used to specify text tracks for media elements. This element is used to specify subtitles, caption files or other files containing text, that should be visible while the media is playing.

For example:
<video width="320" height="240" controls>
<source src="movie.ogg" type="video/ogg">
<source src="movie.mp4" type="video/mp4">
<source src="movie.webm" type="video/webm">
<track src="subtitles_en.vtt" kind="subtitle" srclang="en" label="English">
</video>

HTML Plug-ins

Plug-ins are used to extend the functionality of the HTML browser. A plug-in is a small computer program that can be used for many purpose: to display maps, scan for viruses and much more. Some of the well-known plug-ins are java applets and Adobe flash player. Plug-ins are added using the <object> tag and <embed> tag.

HTML <object> Tag
The <object> tag is used to define an embedded object within an HTML document. It is supported by all major browsers. It is used to embed plug-ins in Web pages.

For example:
Audio:
<object height="50" width="100" data="song.mp3"></object>
Video:
<object data="movie.mp4" height="200" width="200"></object>
HTML <embed> Tag
The <embed> tag is used to define a container for an external application or interactive content. It is supporteddi in all major browsers

For example:
Audio:
<embed height="50" width="100" data="song.mp3">
Video:
<embed src="movie.mp4" height="200" width="200">
HTML <param> Tag
The <param> tag is used to define parameters for plug-ins embedded with <object> tag.

For example:
<object data="song.mp3">
<param name="autoplay" value="true">
</object>

Introduction to jQuery

jQuery is a lightweight "write less, do more" JavaScript library. The purpose of jQuery is to make JavaScript easy to use on our website. jQuery take a lot of common task that requires a lot of JavaScript code and wraps them into less code or just a single line. jQuery also simplifies a lot of complicated things from JavaScript like AJAX calls, and DOM manipulation. The jQuery library contains the following features.
  • HTML/DOM manipulation
  • CSS manipulation
  • HTML event methods
  • Effects and Animations
  • AJAX
  • Utilities
There are a lot of other JavaScript frameworks out there, but jQuery seems to be the most popular, and also the most expendable. This is because the jQuery team have written the knowledge of cross-browser issues into the jQuery library. Therefore, it will exactly the same in all browsers, including Internet Explorer 6. Many of the biggest companies use jQuery:
  • Google
  • Microsoft
  • IBM

Addding jQuery to your webpage

There are several ways to add jQuery on your website.
  • Download the jQuery library from jQuery.com
  • Include jQuery from a CDN

Downloading jQuery

There are two versions of jQuery available for downloading:
  • Production Version
  • Development Version
The jQuery library is a single JavaScript file and should be linked with the HTML <script> tag
<head>
<script src="jquery-1.11.0.min.js"></script>
</head>

Alternatives to Downloading

If you don't want to download and host jQuery directly, you can include it from a CDN (Content Delivery Network). Both Google and Microsoft host jQuery

Google CDN:
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/<br />jquery.min.js"></script>
</head>
Microsoft CDN:
<head>
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.0.min.js"></script>
</head>

CSS Text Formatting

HTML text can be styled using CSS. Text formatting properties are used for this purpose.

Text Color

The color property is used to color the HTML text. In CSS, color options can be given by three different ways:
  • HEX value - #000000
  • RGB value - rgb(0,0,0)
  • Color name - Black
For example:
<!DOCTYPE html>
<html>

<head>
<style>
h1.color {color:red;}
p.color {color:blue;}
</style>
</head>

<body>
<h1 class="color">This is a Heading</h1>
<p class="color">This is a paragraph</p>
</body>
</html>

Direction

The direction property is used to denote the text direction or the direction in which the text is written.

For example:
<!DOCTYPE html>
<html>

<head>
<style>
p.dir {direction:rtl;}
</style>
</head>

<body>
<p>This paragraph is in default direction.</p>
<p class="dir">This paragraph is from right to left.</p>
</body>
</html>

Letter Spacing

The letter-spacing property is used to increase or decrease the space between the characters in a text.

For example:
<!DOCTYPE html>
<html>

<head>
<style>
h1.letter_space {letter-spacing:3px;}
h2.letter_space {letter-spacing:-3px}
</style>
</head>

<body>
<h1 class="letter_space">This is a Heading</h1>
<h2 class="letter_space">This is a Heading</h2>
</body>
</html>

Line Height

The line-height property is used to specify the height of each line.

For example:
<!DOCTYPE html>
<html>

<head>
<style>
p.small {line-height:50%;}
p.big {line-height:200%;}
</style>
</head>

<body>
<p class="small">This is a paragraph
This is a paragraph
This is a paragraph</p>
<p class="big">This is a paragraph
This is a paragraph
This is a paragraph</p>
</body>
</html>

Text Align

The text-align property is used to horizontally align the text.

For example:

<!DOCTYPE html>
<html>

<head>
<style>
h1.align {text-align:left;}
h2.align {text-align:center;}
h3.align {text-align:right;}
</style>
</head>

<body>
<h1 class="align">This is a Heading</h1>
<h2 class="align">This is a Heading</h2>
<h3 class="align">This is a Heading&lt/h3>
</body>
</html>

Text Decoration

The text-decoration property is used to specify the decoration added to the element.

For example:

<!DOCTYPE html>
<html>

<head>
<style>
h1.decoration {text-decoration:overline;}
h2.decoration {text-decoration:line-through;}
h3.decoration {text-decoration:underline;}
</style>
</head>

<body>
<h11 class="decoration">This is a Heading</h1>
<h21 class="decoration">This is a Heading</h2>
<h31 class="decoration">This is a Heading</h3>
</body>
</html>

Text Indent

The text-indent property is used to specify the indentation of the first line of the text.

For example:

<!DOCTYPE html>
<html>

<head>
<style>
p.indent {text-indent:50px;}
</style>
</head>

<body>
<p class="indent">CSS is used to control the style and layout of multiple 
web pages. It defines how to style HTML elements. An HTML element can be 
 displayed with different styles using CSS.</p>
</body>
</html>

Text Shadow

The text-shadow property is used to add shadow to text element.

For example:
<!DOCTYPE html>
<html>

<head>
<style>
h1.shadow {text-shadow:5px 5px #ffffff;}
</style>
</head>

<body>
<h1 class="shadow">This Heading have Shadow</h1>
</body>
</html>

Text Transform

The text-property is used to specify the capitalization of the text element.

For example:
<!DOCTYPE html>
<html>

<head>
<style>
p.uppercase {text-transform:uppercase;}
p.lowercase {text-transform:lowercase;}
p.capitalize {text-transform:capitalize;}
</style>
</head>

<body>
<p class="uppercase">This is a Paragraph</p>
<p class="lowercase">This is a Paragraph</p>
<p class="capitalize">This is a Paragraph</p>
</body>
</html>

Unicode Bi-Directional Text

The unicode-bidi property is used along with the direction property to set whether the text should be overridden to support multiple languages.

For example:
<!DOCTYPE html>
<html>

<head>
<style>
p.dir_bidi {direction:rtl;
unicode-bidi:bidi-override;}
</style>
</head>

<body>
<p>This paragraph is in default direction.</p>
<p class="dir_bidi">This paragraph is from right to left.</p>
</body>
</html>

Vertical Align

The vertical-align property is used to set the vertical align of a text element.

For example:
<!DOCTYPE html>
<html>

<head>
<style>
img.top {vertical-align:top;}
img.bottom {vertical-align:botoom;}
</style>
</head>

<body>
<p>This <img class="top" src="Birds.jpg" />paragraph is  at the top of the 
 image.</p>
<p>This <img class="bottom" src="Birds.jpg" />paragraph is  at the bottom
  of the image.</p>
</body>
</html>

White Space

The white-space property is used to specify how to handle white spaces inside an HTML document.

For example:
<!DOCTYPE html>
<html>

<head>
<style>
p.white_space {white-space:nowrap}
</style>
</head>

<body>
<p class="white_space">This is a paragraph. This is another paragraph. This 
 is yet another paragraph and so the number of paragraphs continues.</p>
</body>
</html>

Word Spacing

The word-spacing property is used to increase or decrease the white space between words.

For example:
<!DOCTYPE html>
<html>

<head>
<style>
p.word_space {word-spacing:20px}
</style>
</head>

<body>
<p class="word_space">This is a paragraph.</p>
</body>
</html>

Wednesday 22 April 2015

HTML Images

HTML has the function to add images also. Adding images, increases the design and creativity of the page. Today, almost all web pages have images.

HTML <img> Tag

In HTML, images are added using the <img> tag. It is an empty tag, so there is no need of closing it. To display the images, you will have to use the "src" attribute to find the destination source of the image.

For example:
<img src="web.jpg">

We use the "alt" attribute to specify an alternate text, when the image is not displayed or the source of the image is broken. We can give any text to the alt attribute value, because they are author-defined text.

For example:
<img alt="Web" src="web.jpg">

The "height" and "width" attribute are used to specify the height and width of the image. It is specified in pixels.
For example:
<img alt="Web" height="100px" src="web.jpg" width="100px">

HTML <map> Tag

The <map> tag is used to define a client-side image map. An image map is a image which have clickable areas. The "name" attribute of the image map is associated with the images usemap attribute to create a relation between them. The <map> tag contains area element, that defines clickable areas.

For example:
<img alt="Web" br="" height="100px" src="web.jpg" width="100px" usemap=#web>
<map name="#web">
<area alt="HTML" coords="80, 92, 95" href="html.html" shape="poly"></area>
<area alt="CSS" coords="180, 92, 105" href="css.html" shape="circle"></area>
<area alt="Bootstrap" coords="180, 120, 95" href="bootstrap.html" shape="poly"></area>
</map>

HTML <area> Tag

The <area> tag is used to define a clickable area inside a image map. It is always nested inside the map element.

For example:
<img alt="Web" br="" height="100px" src="web.jpg" width="100px" usemap=#web>
<map name="#web">
<area alt="HTML" coords="80, 92, 95" href="html.html" shape="poly"></area>
<area alt="CSS" coords="180, 92, 105" href="css.html" shape="circle"></area>
<area alt="Bootstrap" coords="180, 120, 95" href="bootstrap.html" shape="poly"></area>
</map>

HTML <canvas> Tag

The <canvas> tag is used to draw graphics using scripts mainly JavaScript. The <canvas> tag is just a container for the graphics, we have to use javaScript to draw the graphics.

For example:
<canvas id="myCanvas"></canvas>
<script>
var canvas=document.getElementById('myCanvas');
var ctx=canvas.getContext('2d');
ctx.fillStyle='#FFFF00';
ctx.fillRect(0,0,100,100);
</script>

HTML <figure> Tag

the <figure> tag is used to specify a self-contained content like illustration, diagrams, photos, code listing etc.

For example:
<figure>
<img alt="Web" height="100px" src="web.jpg" width="100px">
</figure>

HTML <figcaption> Tag

The <figcaption> tag used to define a caption to the figure. The <figcaption> element can be placed as the first or last child of the <figure> element.

For example:
<figure>
<img alt="Web" height="100px" src="web.jpg" width="100px">
<figcaption>Fig1 : The picture of web languages</figcaption>
</figure>

Sunday 19 April 2015

HTML Links

A link is group of words or images used to jump from one page to another. They are the most fundamental tag in the HTML page. So they are found mainly in all websites.

HTML <a> Tag

A <a> tag is used to jump from one page to another. It is used to display hyperlinks. When you rollover the cursor above the link, it turn into a little hand. The "href" attribute is used to denote the source of the link. It denotes the destination of the link.

For example:
<a href="https://www.blogger.com/index.html">HOME</a>
The target attribute is used to specify where to open the document. The target attribute can be given the following values:
  • _blank
  • _parent
  • _self
  • _top
For example:
<a href="https://www.blogger.com/index.html" target="_blank">HOME</a>
The id attribute is used to create bookmark inside the document itself.
<a href="#html5">See HTML5 Section</a>
<a id="html5">Introduction to HTML5</a>

For example:
<a href="#C10">See Chapter 10</a>
<h1>Chapter 1</h1>
<h1>Chapter 2</h1>
<h1>Chapter 3</h1>
<h1>Chapter 4</h1>
<h1>Chapter 5</h1>
<h1>Chapter 6</h1>
<h1>Chapter 7</h1>
<h1>Chapter 8</h1>
<h1>Chapter 9</h1>
<h1><a id="C10">Chapter 10</a></h1>
<h1>Chapter 11</h1>
<h1>Chapter 12</h1>
<h1>Chapter 13</h1>
<h1>Chapter 14</h1>
<h1>Chapter 15</h1>
<h1>Chapter 16</h1>
<h1>Chapter 17</h1>
<h1>Chapter 18</h1>
<h1>Chapter 19</h1>
<h1>Chapter 20</h1>
Hyperlinks can also be used to link email address. For that, we use the mailto:email_address in the href attribute.

For example:
<a href="mailto:edwinronaldlambert30@gmail.com">Send Mail</a>

HTML <nav> Tag

The <nav> tag is used to denote a set of navigation links. All the links inside the nav element will be regarded as a navigation link.

For example:
<nav>
<a href="https://www.blogger.com/html">HTML</a> |
<a href="https://www.blogger.com/css">CSS</a> |
<a href="https://www.blogger.com/javascript">JavaScript</a> |
<a href="https://www.blogger.com/jquery">jQuery</a>
</nav>

Introduction to Bootstrap 3

Bootstrap 3
Bootstrap is a powerful and popular HTML, CSS, and JavaScript framework for creating responsive, mobile-first websites for faster and easier web develpoing. It can be designed by everyone who knows a little knowledge of HTML, CSS or JavaScript or all. It is user-friendly and is made for folks of all skill levels, devices of all shapes, and projects of all sizes.

Bootstrap is completely free to download. Download it here - getbootstrap.com.

For example:
<div class="container">
  <div class="jumbotron">
    <h1>My First Page</h1>
    <p>Resize this page and see the magic!</p>
  </div>
  <div class="row">
    <div class="col-sm-4">
      <h3>Column 1</h3>
      <p>This is just a sample text...</p>
      <p>This is just a sample text...This is just a sample text...</p>
    </div>
    <div class="col-sm-4">
      <h3>Column 2</h3>
      <p>This is just a sample text...</p>
      <p>This is just a sample text...This is just a sample text...</p>
    </div>
    <div class="col-sm-4">
      <h3>Column 3</h3>
      <p>This is just a sample text...</p>
      <p>This is just a sample text...This is just a sample text...</p>
    </div>
  </div>
</div>

JavaScript in HTML

JavaScript is mainly used to manipulate the HTML elements. JavaScript gives us the full freedom to add interactivity and responsiveness to our web page. As all of you know, HTML is used to give a structure to our web page and CSS is used to change the appearance of our page. But do you know why JavaScript is used? If you don't there is no problem. JavaScript is a web programming language that enables us to control how a webpage behaves. This make this language very crucial in web designing. Using JavaScript, we can do many things such as:
  • Put text in HTML page anytime.
  • Make your web page responsive and efficient.
  • Used to detect visitor's browser.
  • Create cookies
  • Validate Form
  • and much more.

Writing JavaScript code

Writing a JavaScript code is easy but one simple mistake can lead you to scratching your head. So whenever you type a code be sure that the code you are writing is completely perfect. JavaScript code is written between the <script> tag. A JavaScript code starts with document.write and the code is written between a pair of parenthesis. Note that, when you execute a text using document.write on a HTML page, the HTML element will be overwritten.

For example:
<!DOCTYPE html>
<html>

<body>
<h1>My Webpage</h1>

<script>
document.write("<p>My first JavaScript text</p>");
</script>

</body>
</html>

We can also write a document.write code by calling out a function.

For example:
<!DOCTYPE html>
<html>

<body>
<h1>My Webpage</h1>

<script>
function myFunction()
{
document.write("<p>My first JavaScript text</p>");
}
</script>

<button onclick="myFunction()">Try it<button> 

</body>
</html>

Accessing a HTML element

To access a HTML element, we use the document.getelementById() method. We use the id attribute to denote which HTML element to be accessed upon.

For example:
<!DOCTYPE html>
<html>

<body>
<h1>My Webpage</h1>
<p id="demo">A paragraph</h1>

<script>
function myFunction()
{
document.getElementById("demo").innerHTML="My JavaScript text";
}
</script>

<button type="button" onclick="myFunction()">Try it<button> 

</body>
</html>

Wednesday 15 April 2015

CSS Font

The CSS Font property defines the font family, boldness, size and style of the text

Font

The font property is used to set all the font properties in one declaration. The font properties are set in the order of "font-style, font-variant, font-weight, font-size, font-family."

For example:
<!DOCTYPE html>
<html>

<head>
<style>
p.html_font {font:"italic bold 15px "Georgia, Serif;}
</style>
</head>

<body>
<p class="html_font">Hyper Text Markup Language</p>
</body>

</html>

Font Family

The font family of a text is set with the font-family property. The font-family property should contain several font names, so that the next font will be displayed if the first font is not present. If the names of the font is more than one word, then it should be contained in a pair of double quotes like "Times New Roman". If there are more than one font, then it should be separated by commas.

For example:
<!DOCTYPE html>
<html>

<head>
<style>
p.html_fontfamily {font-family:"Times New Roman", Times, Serif;}
p.css_fontfamily {font-family:Arial, Helvetica, sans-serif;}
</style>
</head>

<body>
<p class="html_fontfamily">Hyper Text Markup Language</p>
<p class="css_fontfamily">Cascading Style Sheets</p>
</body>

</html>

Font Size

The font-size property sets the size of the text. Managing the text size is important, but it should not be used to make the text look like heading or so. The font-size value can be absolute or relative size. Font size can be denoted in percentage, pixels, and in emphemeral unit (em).

For example:
<!DOCTYPE html>
<html>

<head>
<style>
p.html_size {font-size:90%;}
p.css_size {font-size:10px;}
p.javascript_size (font-size:1.5em;)
</style>
</head>

<body>
<p class="html_size">Hyper Text Markup Language</p>
<p class="css_size">Cascading Style Sheets</p>
<p class="javascript_size">JavaScript</p>
</body>

</html>

Font Style

The font-style property is commonly used to style text. This property has the following values:
  • normal
  • italic
  • oblique
For example:
<!DOCTYPE html>
<html>

<head>
<style>
p.html_style {font-style:normal;}
p.css_style {font-style:italic;}
p.javascript_style {font-style:oblique;}
</style>
</head>

<body>
<p class="html_style">Hyper Text Markup Language</p>
<p class="css_style">Cascading Style Sheets</p>
<p class="javascript_style">JavaScript</p>
</body>

</html>

Font Variant

The font-variant property is used to display the text into a small-caps form. In the small-caps font, all lowercase characters are transformed into upper characters, but will be somewhat smaller in size.

For example:
<!DOCTYPE html>
<html>

<head>
<style>
p.html_variant {font-variant:normal;}
p.css_variant {font-variant:small-caps;}
</style>
</head>

<body>
<p class="html_variant">Hyper Text Markup Language</p>
<p class="css_variant">Cascading Style Sheets</p>
</body>

</html>

Font Weight

The font-weight property is used to make the text thick or thin.

For example:
<!DOCTYPE html>
<html>

<head>
<style>
p.html_weight {font-weight:normal;}
p.css_weight {font-weight:lighter;}
p.javacript_weight {font-weight:bolder;}
p.jquery_weight {font-weight:100;}
</style>
</head>

<body>
<p class="html_weight">Hyper Text Markup Language</p>
<p class="css_weight">Cascading Style Sheets</p>
<p class="javascript_weight">JavaScript</p>
<p class="jquery_weight">jQuery</p>
</body>

</html>

Sunday 5 April 2015

CSS Background

CSS background property is used to define the background properties of an element. The background properties used in CSS are:
  • background-color
  • background-image
  • background-repeat
  • background-attachment
  • background position

Background

There are many properties when dealing with CSS backgrounds. So to shorten the code, it is best to specify all the properties in a single property. This is called the shorthand property of background. There is no problem if one of the content is missing as long as the ones that are present are in correct order.

For example:
body { 
background:#ffffff url('logo.png') no-repeat fixed top; 
}

Background Color

The background-color property is used to specify the background color of an element. The background color of a page should be declared in the body itself.
In CSS, color options can be given by three different ways:
  • HEX value - #000000
  • RGB value - rgb(0,0,0)
  • Color name - Black
For example:
body { background-color:#e0ffff; }

Background Image

The background-image property is used to specify a background picture in an HTML page. By default, the background image will be repeated to cover all area.

For example:
body { background-image:url("image.png") }

Background Repeat

By default, the background image will be repeated both horizontally and vertically so that it will cover all the region. But using the background-repeat property, we can adjust the repeating option of the image file.
We can adjust the image in the following four ways
  • repeat - Default option, the image will be repeated both horizontally and vertically
  • repeat-x - The image will be repeated horizontally only.
  • repeat-y - The image will be repeated vertically only
  • no-repeat - The image will not be repeated.
For example:
body { background-image:url("image.png"); 
       background-repeat:repeat-x; 
     }

Background Position

The background-position property is used to adjust the position of the image file to a specific position so that it does not disturb the elements.

For example:
body { background-image:url("image.png"); 
       background-repeat:repeat-x; 
       background-position:center; 
     }

Background Attachment

The background-attachment property is used to set whether the image is fixed or it scrolls with the element.
We can attach the elements in the following ways
  • scroll - The background scrolls along with the element.
  • fixed - The background is fixed.
  • local - The background scrolls along with the element's contents.
For example:
body { background-image:url("image.png"); 
       background-repeat:repeat-x; 
       background-position:center; 
       background-attachment:fixed;
     }

HTML Lists

Lists are used to order things or objects of the same category. They are used to number these objects according to a number. The most common types of lists are ordered list and unordered list.

Ordered List

The <ol> tag is used to denote an ordered lists. The ordered lists can be numerical or alphabetical in order.

Ordered lists can be denoted in the following types:

  • 1 - Represented in numerical order
  • A - Represented in uppercase alphabetical order
  • a - Represented in lowercase alphabetical order
  • I - Represented in uppercase roman numerals
  • i - Represented in lowercase roman numerals
For example:
<ol>
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ol>

Unordered List

The <ul> tag is used to denote an unordered lists. The unordered lists are bulleted in order.

Unordered lists can be denoted in the following types:

  • disc - Represented in disc shape
  • square - Represented in square shape
  • circle - Represented in circle shape
For example:
<ul>
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ul>

List Item

The <li> tag is used to denote a list item. List items are used in ordered list, unordered list and menu list.

For example:
<ol>
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ol>

<ul>
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ul>

Definition List

A definition list is a list of terms with a description of each term. The <dl> tag is used to denote a definition list. The <dl> tag is used in conjunction with the <dt> tag (Definition Term) and the <dd> tag (Definition Data). The <dt> tag is used to define a term name in the definition list and the <dd> tag is used to describe the term name in the definition list.

For example:
<dl>
<dt>HTML</dt>
<dd>Used to describe web pages.</dd>
<dt>CSS</dt>
<dd>Used to style web pages.</dd>
</dl>

Menu List

The <menu> tag denotes a menu list. The menu list is used to define a list of commands. It is also used for context menus, toolbar and for listing forming controls and commands. In fact, menu element is not supported in any browser at the present.

For example:
<menu type="web">
<li>
<button type="button" onclick="file_new()">New</button>
<button type="button" onclick="file_open()">Open</button>
<button type="button" onclick="file_save()">Save</button>
</li>
</menu>

The <menuitem> Tag

The <menuitem> tag defines a menu that the user can invoke from a pop-up menu. Currently, this function is supported in Firefox only.

For example:
<menu type="context" id="mymenu">
<menuitem label="Refresh" onclick="windows.location.reload()" 
 icon="ico_reload.png">
</menuitem>
</menu>

Saturday 4 April 2015

Introduction to JavaScript

JavaScript is denoted as the language for the web, for HTML, for servers, for PC, laptops, tablets and more. It is one of the most important language in the world. Today, most of the modern HTML pages uses JavaScript. JavaScript is used to denote the behaviour of the webpage.

JavaScript was invented by Brendan Eich. ECMA-262 is the official standard of JavaScript. JavaScript is a scripting language, that is a lightweight programming language that can be inserted into an HTML page and can be executed by all type of web browsers. One of the most important thing that we should remember is that Java and JavaScript are both different.

In HTML, JavaScript must be inserted between <script> and </script> tags. It is possible to put unlimited scripts in an HTML document. They can be put in both head section and body section. It is the common practise that the scripts be put in the head section or at the bottom of the page separating HTML code and JavaScript code, by putting the code at one place.

The <script>

To insert a JavaScript code in our HTML page, we use the <script> tag. The JavaScript code can be inserted between these tags.

For example:
<script>
function myFunction()
{
document.getElementById("demo").innerHTML="My first 
 JavaScript Function";
}
</script>

JavaScript in <head>

For example:
<!DOCTYPE html>
<html>

<head>
<script>
function.myFunction()
{
document.getElementById("demo_1").innerHTML="My first 
 JavaScript Function";
}
</script>
</head>

<body>
<h1>A Web Page</h1>
<p id="demo_1">A Paragraph</p>
<button type="button" onclick="myFunction()">Try it</button>
</body>

</html>

JavaScript in <body>

For example:
<!DOCTYPE html>
<html>

<body>
<h1>A Web Page</h1>
<p id="demo">A Paragraph</p>
<button type="button" onclick="myFunction1()">Try it</button>

<script>
function myFunction1()
{
document.getElementById("demo").innerHTML="My first 
JavaScript Function";
}
</script>
</body>

</html>

External JavaScripts

JavaScript can also be placed as external files. External files contain code to be used by many web pages. External JavaScript files are created with extension .js.

For example:
<!DOCTYPE html>
<html>
<body>
<script src="script.js"></script>
</body>
</html>

HTML Text Formatting

HTML has different tags for different purpose. One such purpose is formatting text. In HTML, we can give headings, give styles to text and so on. It is thee function ehich make HTML easy to handle.

HTML Headings

Headings are important in HTML. Heading are given to mark the beginning or to know what the content is about.

Headings are defined using <h1> to <h6> tags. <h1> tag describe the most important heading and is the biggest heading of all. <h6> tag describes the least important heading and is the smallest of all.

Attributes
align left
center
right
justify
Specifies the alignment of a heading

For example:
<h1>This is a heading.</h1>
<h2>This is a heading.</h2>
<h3>This is a heading.</h3>
<h4>This is a heading.</h4>
<h5>This is a heading.</h5>
<h6>This is a heading.</h6>

HTML Paragraphs

Paragraphs are used to separate the content to separate sections. The paragraphs are defined using <p> tag.

Attributes
align left
center
right
justify
Specifies the alignment of the text within a paragraph

For example:
<p>This is a paragraph</p>
<p>This is another paragraph</p>

HTML Line Breaks

Line Break is the same function as Enter key in Microsoft Word. It is used to break the line and to start the continuous sentence in the next line. The line break is defined using the <br> tag. Note that <br> is an empty tag, so it does not contain a closing tag.

For example:
This is a sentence <br> with line breaks.

HTML Formatting Tags

HTML language uses text formatting tags to style HTML contents. These tags are used to edit the pages of the HTML document.

Text Formatting Tags
Text formatting tags are commonly used for editing text. The text formatting tags are:
Bold (<b> and </b>) Defines bold text
Emphasized (<em> and </em>) Defines emphasized text
Italics (<i> and </i>) Defines italics text
Small (<small> and </small>) Defines small text
Strong (<strong> and </strong>) Defines strong text
Subscript (<sub> and </sub>) Defines subscripted text
Superscript (<sup> and </sup>) Defines superscripted text
Underline (<u> and </u>) Defines underlined text
Strike-Through (<s> and </s>) Defines striked text
Insert (<ins> and </ins>) Defines inserted text
Delete (<del> and </del>) Defines deleted text
Word Break Opportunity (<wbr>) Defines where it is ok to add a line break in the text
Marked (<mark> and </mark>) Defines marked/highlighted text

For example:
<b>This text is bold.</b>
<em>This text is emphasized.</em>
<i>This text is italics.</i>
<small>This text is small.</small>
<strong>This text is strong.</strong>
This text is <sub>subscript</sub> and this text is <sup>superscript.</sup>
This text is <u>underlined.</u>
This text is <s>striked</s>
This text is <ins>inserted</ins> and this text is <del>deleted.</del>
This text has <wbr>line break<wbr> here.
This text is <mark>marked.</mark>

Computer Output Tags
Computer output tags are used to write data in a computer coded manner. It is useful in writing codes and programs. The computer output tags are:
Computer Code (<code> and </code>) Defines computer code text
Keyboard Input (<kbd> and </kbd>) Defines keyboard text
Sample Computer Code (<samp> and </samp>) Defines sample computer code
Variable (<var> and </var>) Defines a variable
Preformatted Text (<pre> and </pre>) Defines preformatted text

For example:
<code>This is a computer coded text.</code>
<kbd>This is keyboard text.</kbd>
<samp>This is a sample computer coded text.</samp>
<var>This is a variable.</var>
<pre>This is a
preformatted   text</pre>

HTML Citations, Quotation and Definition Tags
These tags are used to give information regarding the page and also giving an inline quotation and so on.
Abbreviation (<abbr> and </abbr>) Defines a abbreviation or acronym.
Address (<address> and </address>) Defines contact information for the owner/author of the document.
Bi-Directional Override (<bdo> and </bdo>) Defines the direction of the text.
Blockquote (<blockquote> and </blockquote>) Defines a section that is quoted from other source.
Quotation (<q> and </q>) Defines a short inline quotation.
Citation (<cite> and </cite>) Defines the title of the work.
Definition (<dfn> and </dfn>) Defines a definition term.

For example:
I want it <abbr title="As Soon As Possible">ASAP.</abbr>
<address>
Written by WebLearn Tech
Address: Asokapuram, Aluva
Phone: +91 9746187942
</address>
<bdo dir="rtl">
This sentence is written from right to left.
</bdo>
<blockquote cite="http://en.wikipedia.org/wiki/HTML">HTML or Hyper Text 
 Markup language is the standard markup language used to create webpages.
 </blockquote>
<q>Every moment in our life is precious for us all.</q>
<cite>WWW</cite> was invented by Tim Berners Lee.
<dfn>Definition term</dfn>

HTML Lines

HTML lines are created to separate each content with a line. The <hr> tag is used for this purpose.

Attributes
align left
center
right
Specifies the alignment of a <hr> element
noshade noshade Specifies that a <hr> element should render in one solid color (noshaded),
instead of a shaded color
size pixels Specifies the height of a <hr> element
width pixels
%
Specifies the width of a <hr> element

For example:
<p>This is a paragraph</p>
<hr>
<p>This is another paragraph</p>
<hr>