Skip to main content

Posts

Showing posts with the label Programs

HTML Image tag tutorial for freshers

HTML Image <img> tag is easy to use and <img> tag is used for displying images to web pages. Initially we have to put url's to HTML page. When we run the html page it'll load automatically. HTML Image <img> tag syntax is below, <img src="image url here" alt="Text about URL"> HTML Image <img> tag examples below, <html>   <head>     <title>Welcome to Freshers Blog</title>     </head>   <body>     <img src="freshersblog.png" alt="Freshersblog">     <img src="freshersblog.png" alt="Freshersblog" width="100" height="150">   </body> </html> The above example is used for your freshers, Thanks.

How to use HTML textbox, buttons, checkbox and radio buttons ?

HTML is easy to learn here we are going to create textbox, buttons, checkbox and radio buttons for beginers. In Freshers Blog we gave many example for html programs. Generally textbox, buttons, checkboxs and radio buttons these components will help you to create interactive registration form. Example for textboxs, checkboxs bellow, <html>   <head>     <title>Welcome to Fresher Blog</title>     </head>   <body>     <input type="text" name="text1" ></input>     <input type="checkbox" name="checkbox1">Checkbox 1</input>     <input type="radio" value="Radio">Radio 1</input>     <input type="submit" value="Freshersblog"></input>   </body> </html> The above example beginners can learn html more quickly and easily. Thanks.

Hypherlinks in HTML, How to use Hypherlinks ?

Hypherlinks HTML Hypherlinks will help you to go next page that means when you click a hypherlink it'll send you to next page. In Hypherlinks we are using Ancher tag (a). The Hypherlink syntax is, <a href="link">Fresher Blog</a> The Following example is for hypherlink, <html>   <head>     <title>Welcome to Freshersblog.com</title>     </head>   <body>     <a href="www.freshersblog.com">Freshers Blog</a>   </body> </html> When you click hypher link Freshers Blog It'll send you to www.freshersblog.com page. I hope this example will helpfull for you Thanks,

HTML Unorder list example for beginers

HTML Unorder list is very very important concept in html, with ul, li tags we can produce list of contents with css styles. In html unorder list is used for menus, navigation and some others designs. HTML Unorder list example : <html>   <head>     <title>Welcome to Fresherstarget</title>     </head>   <body>     <ul>       <li>First List</li>       <li>Second List</li>       <li>Third List</li>       <li>Fourth List</li>     </ul>   </body> </html> The above html unorder list example program is best one for beginers I hope it'll helpfull for you Thanks, If any doubts comment here..

HTML header tags ( H1 H2 H3 H4 H5 H6 ) for Beginers

HTML header tags are more important for displaying text with bold and big. Header tags also more useful for Search Engine Optimization, basically search engines searches header tags and meta tags and its contents. Here is the example for header tags, <html>   <head>     <title>Welcome to Fresherstarget</title>     </head>   <body>     <p>This is the sample program for HTML from Fresherstarget</p>     <h1>Freshers Blog</h1>     <h2>Freshers Blog</h2>     <h3>Freshers Blog</h3>     <h4>Freshers Blog</h4>     <h5>Freshers Blog</h5>     <h6>Freshers Blog</h6>   </body> </html> The Above program is the best example for header tags. Thanks, Freshers Blog. If any doubts post your comment here...

HTML Sample Program for Table tag and th, tr, td tags for freshers

HTML table is effective way to design website but not now. Because table based coding takes more memory comapred with div based coding. Any way table is more important for Designers. It is More useful for sometimes. HTML Example for Table tag: <html> <head> <title>  Welcome to Fresherstarget Learning </title> </head> <body>   <table>     <tr>       <th>Reg No</th>       <th>Name</th>     </tr>     <tr>       <td>123</td>       <td>Raj Kumar</td>     </tr>   </table> </body> </html> The above program is the best example for the table tag. I hope that will helpfull for you. Thanks, Freshers Blog

How to write a palindrome program in java

The Below program will tell you the given number is palindrome or not. In generally most of the interviewers are asking this question during interview process and candidates struggling to answer this question. Please practice the below program, this will help you. I hope. package testing; import java.util.Scanner; /**  * Please find the Java program to check if given number is palindrome or not.  * If number and its reverse is equal then this is called palindrome  * This program can also be used to reverse a number in Java  */ public class Palindromeprogram {     public static void main(String args[]){               System.out.println("Please Enter a number : ");         int palindrome = new Scanner(System.in).nextInt();               if(isPalindrome(palindrome)){             System.out.println("Number : " + palindrome +...