About Us

Breaking News

Recent Post

Featured Articles

Wednesday, April 15, 2015

http://www.htmlhour.com/



HTML, CSS, PHP, AJAX, JQUERY, ORACLE, SQL, SEO, JAVA Tutorial Website.
HTML Multiple Choice Questions   click here- http://www.htmlhour.com/html/html-qa/html-mcq/
PHP Multiple Choice Questions click here- http://www.htmlhour.com/php/php-qa/php-mcq/
CSS Multiple Choice Questions click here- http://www.htmlhour.com/css/css-qa/css-mcq/
JAVA Multiple Choice Questions click here- http://www.htmlhour.com/java/java-qa/java-mcq/
JQUERY Multiple Choice Questions click here-http://www.htmlhour.com/jquery/jquery-qa/jquery-mcq/
SEO Multiple Choice Questions click here- http://www.htmlhour.com/seo/seo-qa/seo-mcq/
SQL Multiple Choice Questions click here- http://www.htmlhour.com/sql/sql-qa/sql-mcq/
 ASP Multiple Choice Questions click here- http://www.htmlhour.com/asp-net/asp-qa/asp-mcq/
AJAX Multiple Choice Questions click here- http://www.htmlhour.com/ajax/ajax-qa/ajax-mcq/

Read More

Monday, January 12, 2015

What is PHP? Why PHP? What is a PHP File? How to install PHP?

What is PHP?

PHP stands for PHP- Hypertext Preprocessor.
PHP is a server-side scripting language, like ASP.
PHP scripts are executed on the server.
PHP supports many databases(MYSQL, INformix, Oracle,Solid,Sybase,Generic ODBC, PostgreSQL, etc.)
PHP is an open source software (OSS).
PHP is free to download and use.

What is a PHP File?

PHP files may contain text, HTML tags and scripts.
PHP files are returned to the browser as plain HTML.
PHP files have a file extension of ".php",".php3",or".phtml"


Why PHP?

PHP runs on different platforms (Windows, Linux, Unix, etc.)
PHP is compatible with almost all servers used today(Apache, IIS, etc.)
PHP is FREE to download from the official PHP resource: www.php.net
PHP is easy to learn and runs efficiently on the server side

PHP Installation
What do You Need?

Download PHP FREE
Download PHP for free here: http://www.php.net/downloads.php

Download MySQL Database FREE
Download MySQL for free here: http://www.mysql.com/downloads/index.html

PHP Syntax
NOTE- You cannot view the PHP source code by selecting "view source" in the browser- you will only see the output
from the PHP file, which is plain HTML. This is because the scripts are executed on the server before the result
is sent back to the browser.

A PHP scripting block always starts with <?php and ends with?>. A PHP scripting block can be placed anywhere in the document.
On server with shorthand support enabled you can start a scripting block with<? and end with?>.

However, for maximum compatibility, werecommend that you use the standard form(<?php) rather than the shorthand form.
<?php
?>

A PHP file normally contains HTML tags, just like an HTML file, and some PHP scripting code.

Below, we have an example of a simple PHP script which sends the text"Hello World" to the browser:

<html>
<body>
<?php
echo"Hello World";
?>

Each code line in PHP must end with a semicolon(;). The semicolon is a separator and is used to distinguish one set of instructions from another.

There are two basic statements to output text with PHP: echo and print. In the example above
we have used the echo statement to output the text "Hello World".


Comments in PHP
In PHP, we use // to make a single-line comment or /* and */ to make a large comment block.

<html>
<body>
<?php
//This is a comment
/*
This is a comment
block
*/
?>
</body>
</html>


The string functions are part of the PHP core. There is no installation needed to use these
functions.

PHP: Indicates the earliest version of PHP that supports the function.

Function                                                             Description
addcslashes()                                              Returns a string with backslashes in front of the specified characters.

addslashes()                                               Returs a string with backslashes in front of predefined characters.

bin2hex()                                                    Converts a string of ASCII characters to hexadecimal values

chop()                                                        Alias of rtrim()

chr()                                                           Returns a character from a specified ASCII value.

chunk split()                                               Split a string into a series of smaller parts

convert cyr string()                                     Converts a string from one Cyrillic character-set to another

Convert uudecode()                                    Decode a uuencoded string

Convert uuencode()                                    Encodes a string using the uuencode algorithm

count chars()                                              Returns how many times an ASCII character occurs within a string and returns the information.

crc32()                                                       Calculate a 32-bit CRC for a string

crypt()                                                        One-way string encryption (hashing)

echo()                                                        Outputs strings

explode()                                                   Breaks a string into an array

fprintf()                                                      Writes a formattedstring to a specified output stream

get html translation table()                         Returns the translation table used by htmlspecialchars() and htmlentities()

hebrev()                                                     Converts Hebrew text to visual text

hebrevc()                                                   Converts Hebrew text to visual text and new lines(\n) into <br/>

html entity decode()                                   Converts HTML entities to characters

Read More

Sunday, April 20, 2014

Top 25 points to improve your web design


KEEP IT SIMPLE




1)Have a polished,professional logo and link it to your homepage.(include a tagline)(a tagline is a statement or a motto that represents a company or websites)


2) Implement site search:



3)Use sitemaps


4) Use navigation:



5)Focus design on user experience.


6)Don't bury the main point.


7)Make sure your photo are the right size(Use outstanding images,Working with images).


8)Colour schemes.(use flat colors)


9) Font(Nice on the eyes):



10)Consider Vertical Scrolling


11)Produce Amazing Content.


12)Create easy Web Pages(easy to read to affect you visitors)


13)Pages- limited pages are used.


14)Homepage links-include a home button on every page.


15)Contact links-Put contact link on every page.


16)Don't use icon link.


17)Don't break the work flow 


18) Don't overuse javascript:



19) Avoid captcha:



20)Easy to find everything within a couple of clicks.


21)No blinking or flashing text.


22)Make effective use of every title bar.


23)No more frames(search engine don't like framed pages)


24)Use whitespace (line should never be more than 50-60 characters long)


25) Avoid Under construction pages:


Read More

Saturday, April 19, 2014

Anchor tag (HTML)

<Anchor>

This element defines hyperlink,the named target destination for a hyperlink.Or both



1)
  Add Anchor Tags to jump to specific location on a page.

Including an Anchor tag with in a post or page,you can place links in the body of your
post which when clicked allow the reader to jump to another location on the page.



The Anchor tag will consist of two HTML elements.


If you are linking to a spot on the same page, the format of the link will be similar to:


Example-           <a href ="#Anchor">Link Text</a>




2)
  You can create link to a named Anchor by using the name attribute (or the id Attribute).

Example-           <a id="bookmarks" name="bookmarks">id and name attribute</a>







3)
  When you linking with in the same document, the A element is set as follows.




4) 
  When linking to an Anchor on a page you need to put a # in front of the Anchor.


you link an Anchor on the same page,simply enter


Example- <a href="#Anchor">Internal Link</a>




5) 
  For External links

Example-

<a href="http://www.google.com/">External Link</a>






ELEMENT-SPECIFIC ATTRIBUTES





1) charset-       <a charset="urf-8" href="http://www.google.com/">charset Attribute</a>


2) coords-        <a href="curve.html" shape="circle" coords"90,50,3"> coords Attribute</a>


3) href-          <a href="http://www.google.com/">href Attribute</a>

4) hreflang-     <a hreflang="en" href="http://www.google.com/">hreflang attribute</a>


5) methods-      <form action="index.html" method="get"></form>,<form action="index.html" method="post"></form>


6) name-           <meta name="author" content="text">


7) rel-               <a rel="nofollow" href="http://www.google.com/">rel attribute</a>


8) rev-             <a rev="nofollow" href="http://www.google.com/">rev attribute</a>


9) shape-           <a href="love.html" shape="circle" coords"90,50,3"> shape Attribute</a>





RELATIONSHIP VALUES





1) alternate-          <a href="hello.html" rel="alternate" lang="fr">version francais</a>


2) archives-             <a href="/history.php" rel="archives">Document history</a>


3) author-                <a href="/tap.html" rel="author">new Author</a>


4) bookmark-             <a href="index.html" rel="bookmark" title="permalink">Section parmalinks</a>


5) external-               <a href="https://ajaxref.com/" rel="externalauthor">Ajax book(offsite)</a>


6) first-                      <a href="page1.html" rel="first">Start</a>


7) help-                      <a href="help.html" rel="help">Help</a>


8) index-                     <a href="docindex.html" rel="index">Index</a>


9) last-                        <a href="page10.html" rel="last">Last</a>


10) license-                 <a href="legal.html" rel="license">Legal Terms</a>


11) next-                     <a href="page2.html" rel="next">Next page</a>


12) nofollow-                <a href="legal.html" rel="nofollow license">Legal info</a>


13) noreferrer-          <a href="https://banker.com" rel="noreferrer">banker</a>


14) prev-               <a href="page1.html" rel="previous">previous</a>


15) search-            <a href="search/" rel="search">search site</a>


16) sidebar-            <a href="instructions.html" rel="sidebar">Load
 Instructions(Sidebar)</a>


17) tag-               <a href="html5.html" rel="tag">HTML5</a>


18) up-                <a href="/main/index.html" rel="up">Index page</a>




GO RIGHT TO THE TOP


To return the top of the page from any point on the page,create a name anchor at the very top of your page (insert it right after the <body> tag) note if does not have to enclose text.




Example- <a name="top"></a>

At the end of the section on page,insert the link
<a href="#top">top</a>
Read More

Friday, April 18, 2014

SEO(Search Engine Optimization)



WHAT IS SEO?








  • SEO is the activity of optimizing Web pages or whole sites in order to make them more search engine friendly,thus getting higher positions in search results.

  • SEO stands for Search Engine Optimization.
  • SEO is all about optimizing a website for search Engines.
  • SEO is to improve the volume and quality of traffic to a website from search engines.
  • SEO is the process of designing and developing a website to rank well in search engine results.
  • SEO is the art of ranking in the search engines.
  • SEO is a subset of search engine marketing.
  • SEO is marketing by understanding how search algorithms work and what human visitors might search.



HUMAN GOALS OF SEARCHING




The basic goal of a human searcher is to obtain information revelent to an inquiry.

However,searcher inquiries can take many different forms. One of the most important elements to building an online marketing strategy for a website around SEO and search ranking is developing a through understanding
of the psychology of your target audience.

Once you understand how the average searcher and more specially,your target market uses search engines,you can more effectively reach and keep those users.

CONCENTRATE YOUR MOST IMPORTANT KEYWORDS




Your homepage is the most important page on your website.If you concentrate your most important keywords and key phrases in your homepage many times,the search engines will surely notice and index it accordingly.

But will it still read easily and will the sentences flow freely to your real human visitors? There are some good chances that it might not.

As a primer,having just 40 or 50 words on your homepage will not deliver the message effectively.To be powerful and effective, a home page needs at least 300 to 400 words for maximum search engine throughput and effectiveness.

One way to do that is to increase your word count with more value-added content.This often means rewriting your whole homepage all over
again.
The main reason to this is you will probably never have enough room to skillfully work your important keywords and key phrases into the
body text of your homepage. 

This may not please your boss or marketing department, but a full rewrite is often necessary and highly advisable to achieve high rankings in the engines,while at the same time having a homepage that will please your site visitors and convert a good proportion of them into real buyers.


STEP BY STEP PAGE OPTIMIZATION


Starting at the top of your index/homepage something like this:
(After your logo or header graphic)

1- A heading tag that includes a keyword(s) or keyword phrases. A heading tag is bigger and bolder text than normal body text,so a search engine places more importance on it because you emphasize it.

2- Heading sizes range from h1-h6 with h1 being the largest text. If you learn to use just a little Cascading Style Sheet code you can control the size of your headings.You could set an h1 sized heading to be only slightly larger than your normal text if you choose, and the search engine will still see it as an important heading.

3-Next would be an introduction that describes your main theme. This would include several of your top keywords and keyword phrases. Repeat your top 1 or 2 keywords several times,include other keyword search terms too, but make it read in sentences that makes sense to your visitors.

4- A second paragraph could be added that got more specific using other words related to online education.

5- Next you could put smaller heading.

6- Then you'd list the links to your pages, and ideally have a brief decision of each link using keywords and keyword phrases in the text. You also want to have several pages of quality content to link to.Repeat that procedure for all your links that relate to your theme.

7- Next you might include a closing ,keyword laden paragraph. More is not necessarily better when it comes to keywords,at least after a certain point. Writing "online education" fifty times across your page would probably result in you being caught for trying to cheat. Ideally, somewhere from 3% - 20% of your page text would be keywords. The percentage changes often and is different at each search engine. The 3-20 rule in a general guideline, and you can go higher if it makes sense and isn't redundant.

8- Finally, you can list your secondary content of book reviews, humor, and links. Skip the descriptions if they aren't necessary,or they may water down your theme too much. If you must include descriptions for these non-theme related links,keep them short and sweet. You also might include all the other site sections as simply a link to another index that lists them all. You could call it Entertainment,Miscellaneous,or whatever.  
These can be sub-indexes that can be optimized toward their own theme, which is the ideal way to go. Now you've set the all important top of your page up with a strong theme. So far so good,but this isn't the only way you can create a strong theme so dont't be compelled into following this exact formula. 
This was just an example to show you one way to set up a strong site theme. use your imagination,you many come up with an even better way.


PAGE SIZE CAN BE A FACTOR




We have written above that the spiders may bypass long and "difficult" pages.They would have their own time-out Characterstics or other controls that help them come unstruck from such pages.

 So you do not want to have such a page become your "gateway" page. One tip is to keep the page size below 100kb.

Read More

Create Simple HTML Editor


SIMPLE HTML EDITOR:

USING HTML AND JAVASCRIPT-


<html>

<script type="text/javascript">

function ShowResult()

{

my_window = window.open("about:blank","mywindow");

my_window.document.write(x);

}

</script>

<body>

<textarea style = "height:500px; width:700px; overflow:auto;" onBlur="x=this.value">

</textarea><br/>

<button onClick="ShowResult()">See Result!</button>

</body>

</html>




Read More

HTML Simple webpage



HTML  SIMPLE WEBPAGE

Important points-
1.       In  HTML the first tag is always the HTML tag <HTML>
2.       Header  of the page is <HEAD> and <TITLE>
3.       The title appears in the title bar.
4.       Each HTML instruction consists of a beginning tag and an ending tag.

Type the following HTML instruction in the Notepad(Word processing program) Program.
</HTML>
<HEAD>
<TITLE>MY FIRST WEBPAGE </TITLE>
</HEAD>
</HTML>

Save file- Type filename:webpage.html(.html is file extension)
Click on website.html file and open your first webpage in your default browser like (google chrome,opera,Mozilla firefox)


Basic heading style in HTML(H1,H2,H3,H4,H5,H6)


1.       Heading can be displayed in font styles, sizes, and colors.
2.       Heading are part of the body of a Webpage. Use <body> tag in webpage.
</HTML>
<HEAD>
<TITLE>MY FIRST WEBPAGE</TITLE>
</HEAD>
<BODY>
<H1>HEADING STYLE 1</H1>
<H2> HEADING STYLE 2</H2>
<H3>HEADING STYLE 3</H3>
<H4>HEADING STYLE 4</H4>
<H5>HEADING STYLE 5</H5>
<H6>HEADING STYLE 6</H6>
</BODY>
</HTML>

Save file- Type filename: Heading tag webpage.html(.html is file extension)
Click on website.html file and open your first webpage in your default browser like (google chrome,opera,Mozilla firefox)


Output:



Read More

About Us

BLOG HTMLHOUR WWW.HTMLHOUR.COM

Gallery

Find Us On Facebook