Learn C language

Easy to learn C language tutorials

Learn C++ language

Easy to learn C++ language tutorials

Learn Core Java language

Easy to learn Java language tutorials

Learn HTML

Easy to learn HTML tutorials

Learn CSS

Easy to learn CSS tutorials

Learn ASP.NET

Easy to learn ASP.NET tutorials

Wednesday, July 31, 2013

[Part-4] HTML : Inserting Image

Today I will show you how to insert image on webpage using html.

We can insert the image using given below syntax :-


  • <img src="url/source" alt="Any Text" width="Image Width" height="Image Height">
  • In src we have to write the address of the image, alt give information about image when image doesn't load successfully,width and height is used to give width and height to the picture.
  • Copy the below code in notepad or notepad++ to see how it work's.
HTML Code :-

<html>
<head>
<title>My First HTML Page</title>
</head>
<body>
<h1>Way to insert image on a webpage.</h1>
<b><i><p>Below is a image :-</b></i></p>

<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7XDtQAFwTc6tkVB1E0gXiFbxsCWTvrLcI_h2RrDrw2SShzBT0KFqgg2cC6x7wky_dx_9s77_aMhXQy0NUXOox5NoibyHbycz00i0v1muKTCJBQkCf1Jo17brZiXxmUFOFvRogY2Tkqbs/s320/engagelikeusonfacebook.jpg" alt="Programming Skills" width="500px" height="500px">
</body>

</html>




For more help see below video :-






[PART-3] JAVA : Input using DataInputStream


Read my previous tutorial if you don't know how to compile and run java programs.


  • Remember Java is Case Sensitive language i.e. You must take care of Capital and small letters.
  • Like in turbo C, C++ we use "void main" or "int main", similarly in java we will use
           public static void main(String args[])throws IOException
          {
       
           }    
          where
public : It is a keyword and it means the main method is publicly available.
static : It is a keyword and any other class can call this main method without any restriction.
void : It means main() will not return any value.
String args[] : args is the parameter of type String.
throws IOException : To prevent error while compiling.

SYNTAX :

DataInputStream object_name = new DataInputStream(System.in) ;
Here We have created a new object named "object_name" using the "new" keyword of class "DataInputStream". We can now use this "object name" in our program to take input.


Examples :
Copy each codes and compile and execute it.

------------------------------------------------------------------------------------------------------------
to get int type input -->
------------------------------------------------------------------------------------------------------------

/*Here we have created object named "s" to take input. Similarly we will take input of different data types using this object named "s" .*/
/*Note this a comment in Java*/
/* Note the symbols i have used  for comments */



------------------------------------------------------------------------------------------------------------
to get char type input -->
------------------------------------------------------------------------------------------------------------




------------------------------------------------------------------------------------------------------------
to get float type input -->>
------------------------------------------------------------------------------------------------------------





------------------------------------------------------------------------------------------------------------
to get String type input -->> (note String S is capital)
------------------------------------------------------------------------------------------------------------







You have to remember these 4 methods.
And for output we use System.out.print("text to print on screen");
We will use this DataInputStream class in next programs. Remember these programs.

Follow the video tutorial for better understanding...




Tuesday, July 30, 2013

[Part-3] HTML : Hyperlink Tutorial


In this part I will tell you about HTML Hyperlink.

What is hyperlink and how to add hyperlink?


  • Basically we can say that hyperlink is a word or it can be an image on which when we click we jumps up to the another page for example below is a hyperlink when you click on it you will jump to another page.
  • Hyperlink Click on it.
  • We can add the hyperlink using the below syntax.
  • <a href="url">Any Name</a>
HTML Code :-

<html>
<head>
<title>Use of Anchor Tag</title>
</head>
<body>
<h1>Use of Anchor Tag</h1>
<br>
<p>In this tutorial you will learn that what is hyperlink and how to add the hyperlink?</p>
<hr>

<!-- Below is a hyperlink -->
<a href="http://programmingskills.blogspot.in">Complete Programming Tutorials</a>
</body>
</html>






Now see the below video to learn the use of hyperlink :-


Monday, July 29, 2013

[PART-2] HTML : Tags



Read my previous tutorial of HTML for better understanding of HTML

Today I will tell more about HTML tags and there uses. In my  previous tutorial of HTML I said that there are some tags which doesn't need closing tag  such type of tags are called unpaired tags or self-closing tags for example :- <hr> and <br>.


Now we will discuss some HTML tag :-


  • <h1></h1> this tag is used to show the heading,  we can define this tag from <h1> to <h6>, priority of <h1></h1> is higher and <h6></h6> is less.
  • <hr> this tag is used to create the horizontal.<br> this tag is used to create line break.
  • <!-- Comment --> tag this is used to define comment, anything written in this tag will not be displayed on webpage.
  • <p> this tag is used to create the paragraph.
  • <b> this tag is used to give bold style to the text.
  • <i> this tag is used to give italic style to the text.
HTML Code :-



<html>

<head>
<title>My First HTML Page</title>
</head>
<body>
<h1>This is written using the heading 1 tag.</h1>
<h2>This is written using the heading 2 tag.</h2>
<h3>This is written using the heading 3 tag.</h3>
<h4>This is written using the heading 4 tag.</h4>
<h5>This is written using the heading 5 tag.</h5>
<h6>This is written using the heading 6 tag.</h6>
<br>
<p>Before this br tag is used for line break and this paragraph is written using the paragraph tag.</p>
<hr>This horizontal line is create using the hr tag.

<i><b><p>In this bold and italic tag is used</b></i></p>
<!-- This tag will not be displayed on webpage -->
</body>
</html>



Now see the below video to learn the use of these tags :-



Sunday, July 28, 2013

[PART-2] how to compile and run java programs


Read my previous tutorial if java is not installed on your operating system.

In this Tutorial you will learn how to :

  • Configure environment variables so that we can use javac(to compile) and java(to run) commands.
  • write a java program
  • compile a java program
  • run a java program

Pre-requisites :
  • Basic Command Prompt knowledge
  • Basic knowledge of Windows Operating System.
Program used in this video : 







If you have any doubts please mention it in comments...

[PART-1] A Quick Start with java !



  • If you know c or c++ then java is easy to learn.
  • In C language you use scanf and printf function for input and output.
  • In C++ language you use cin>> and cout<< function for input and output.
  • Similarly in Java you need to learn some functions for input and output. Rest Java is same as c or c++ .
  • In C or C++ you include header files, Similarly in java packages are used instead of header files.

The first step is to learn how to install java in your operating system. My OS is Windows 7 x64. Follow the video tutorial if you don't know how to install java.

We will learn how to compile and run java programs in next video tutorial. 

Download latest version of java from here :
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html




[PART-1] HTML : Introduction

In first part I will tell you a little bit about HTML after that in other parts I will tell more about HTML.

Requirements to learn HTML :-
  • You can use notepad or better to use notepad++ download it from here.
  • Then install it or if you want to use notepad press Win+R a window will appear in that window type notepad and hit enter.
  • Now you are set to write your HTML coding.
First HTML program :-
  • Open notepad or notepad++.
  • In that write or copy the code as shown below.
<html>
<head>
<title>My First HTML Page</title>
</head>
<body>
<h1>My First HTML Web Page</h1>
<p>This is my first web page created using the HTML</p>
</body>
</html>




  • Now press ctrl+s and save as anyname.html or anyname.htm better to save as anyname.html.
  • Then open the file you save using the browser.
  • Now you will get output as shown in below :-

  • In this coding <title></title>show the title of your webpage and it must be placed between the <head></head> and after that other coding will be written in <body></body>, <h1></h1> used to give the heading on the page and the <p></p> is used to write the paragraph.
  • Note that every open tag has a closing tag but there are some tags which don't have closing we will discuss about that tag in second part.
For more help see below video :-



I hope you will like the article if you have any question or suggestion post in the comment box.