Posts Tagged ‘Webpage’

Seo:Optimize Pages with Headings

Monday, July 14th, 2008

Header tags will tell the search engine what “words” are important in the context of your page. Using <h1>,<h2>,<h3>, etc.. tags is the best way to highlight important keywords. With that in mind consider using keywords relevant to the page’s content (theme) in your Header Tags. The best practice is to place your primary keyword in your <h1> tags and your secondary keyword into the <h2> tags.

You can think of an <h1> header tag as a title for whatever content you have on your page and you should have ONLY ONE (1) h1 tag on any page.

h2 and h3 header tags should be thought of as a sub headings for your page. You should place your 2nd most important keyword in the <h2> header tag. The <h2> tag should be placed somewhere towards the top half of your webpage, in any case below <h1> tag.
(Read more and see header tag examples in this article about Header tags.)

SEO:Keyword Searching

Monday, June 30th, 2008

This is the most common form of text search on the Web.  Most search engines do their text query and retrieval using keywords.

What is a keyword, exactly?  It can simply be any word on a webpage.  For example, I used the word “simply” in the previous sentence, making it one of the keywords for this particular webpage in some search engine’s index.   However, since the word “simply” has nothing to do with the subject of this webpage (i.e., how search engines work), it is not a very useful keyword.   Useful keywords and key phrases for this page would be “search,” “search engines,” “search engine methods,” “how search engines work,” “ranking” “relevancy,” “search engine tutorials,” etc.  Those keywords would actually tell a user something about the subject and content of this page.

Unless the author of the Web document specifies the keywords for her document (this is possible by using meta tags), it’s up to the search engine to determine them.  Essentially, this means that search engines pull out and index words that appear to be significant.  Since since engines are software programs, not rational human beings, they work according to rules established by their creators for what words are usually important in a broad range of documents.  The title of a page, for example, usually gives useful information about the subject of the page (if it doesn’t, it should!).  Words that are mentioned towards the beginning of a document (think of the “topic sentence” in a high school essay, where you lay out the subject you intend to discuss) are given more weight by most search engines.   The same goes for words that are repeated several times throughout the document.

Some search engines index every word on every page. Others index only part of the document.

Full-text indexing systems generally pick up every word in the text except commonly occurring stop words such as “a,” “an,” “the,” “is,” “and,” “or,” and “www.”  Some of the search engines discriminate upper case from lower case; others store all words without reference to capitalization.

PHP:Create a password protect webpage

Saturday, June 28th, 2008

<?
$username = “someuser”;
$password = “somepassword”;

if ($_POST['txtUsername'] != $username || $_POST['txtPassword'] != $password) {?>
<h1>Login</h1>
<form name=”form” method=”post” action=”<?php echo $_SERVER['PHP_SELF']; ?>”>
<p><label for=”txtUsername”>Username:</label>
<br><input type=”text” title=”Enter your Username” name=”txtUsername”></p>

<p><label for=”txtpassword”>Password:</label>
<br><input type=”password” title=”Enter your password” name=”txtPassword”></p>
<p><input type=”submit” name=”Submit” value=”Login”></p>
</form>
<?} else {?>
<p>This is the protected page. Your private content goes here.</p>
<?}?>

Use your secondary keywords in the body of your post

Thursday, June 26th, 2008

If you want to get listed for secondary keywords use them infrequently in the body of your post. The theory is that the more times a keyword appears within a Webpage, the more relevant the page is likely to be for someone searching those keywords.

But do not overdo this by repeating the same keywords over and over again. Google bots can find out if a keyword is too frequent on a page and might just remove your site from their index.