Guidance portal

World of Guidance and Education

Search Engines

In this chapter we will learn to design search engines. Search engines on our webpages facilitates visitors to find contents without leaving the website. Search engines are normally capable of finding not only our webpages but also "heading contents".

For the purpose of facilitating the visitors, a working search engine should be inserted on every webpage of the website for searching the contents.

The syntax of search engines is shown below; please read carefull.

<form action="http://www.yourwebsite.com/search" method="get" class="header fltrt">


<input name="q" size="45" maxlength="255" type="text">
<input value="Web Search" type="submit">

</form>


Note

The above shown code is universal and can be used in any webpage for developing search engine. Remember to change the website name (bold in above code).

Lets see how does this engine look like on the browser.

    <!DOCTYPE HTML>
    <html>
    <head>
    <title>or first web page</title>
    </head><br/>

    <form action="http://www.google.com/search" method="get" class="header fltrt">

    <div style="border: 0px solid black; padding: 4px; width: 25em; font-size: 100%;">
    <div align="left">
    <table border="0" cellpadding="0" width="399">
    <tbody><tr><td width="386">
    <input name="q" size="45" maxlength="255" type="text">
    <input value="Web Search" type="submit"></td></tr></tbody></table>
    </div>
    </div>
    </form>
    <body>
    </body>
    </html>

    Browser view

 

comments powered by Disqus