Applications




Tutorials


  • Documentation

  • Search application

  • Search box size

  • Button size

  • Form size

  • Copy and paste the Application file

  • How do I change the position of the application on the web page?

  • Positioning the Bootstrap file in the header tag

  • Create the complete web application file in Bootstrap


Compatibility


  • How do we switch from HTML4 to HTML5?

  • Change doctype from HTML4 to HTML5

  • New HTML5 doctype

  • Switch to HTML4 encoding type

  • Change the HTML4 style CSS file

  • Write the new HTML5 CSS style file



Documentation

You can also add the size of this application according to your preferences in the page of your site. I recommend this search appliance to all users because it has the role of (driving traffic to your site).


Search application

In order for the application to work on your site, it is very important to have the site page built with HTML5, for example similar to the file below.


This is the HTML5 webpage file you need to check if you have a HTML5-like file on your site page. For the application to work properly, you need to have clean HTML5 code, otherwise errors may occur on the web page.


DOCTYPE HTML5 webpage built to html


Search box size

The search box can be resized and styled according to each user's preferences, for example input[type=text] {width: 50%;} or {width: 70%;}. Fonts and colors for the search box can be easily changed from the CSS file.


Button size

The search button can be resized to other lengths, such as input[type=submit] {width: 150px;} or {width: 200px;}.

One important thing to keep in mind, for example, if you change the length of the input[type=text] button by more than {width: 200px;}, it would disturb the web page by displaying an unsightly shape on (mobile phones or tablets).

Fonts and colors for the search button can be easily changed from the CSS file.


CSS file style.css


Form size

The search appliance form has the set length and height, for example form {width: 40%;} and {height: 15%;}.

For the orderly placement of the form on the web page, it is very important to keep the application size in percentages, for example form {width: 70%;} or {height: 25%;}.

Good to know. Do not change the size of the application in pixels, for example form {width: 300px;} or {width: 400px;} or {width: 500px;} or {width: 600px;} or {width: 700px;} or larger.

In this case, the application will have a static and unsightly position compared to the resolution of the web page open on (mobile phones and tablets).


Form file built form to html


Copy and paste the Application file

Copy and paste the web search application file into your site page, (read, check, and follow all the tutorial documentation).

To modify the application please follow the examples in the tutorial.


Full HTML5 file form with CSS in web page


How do I change the position of the application on the web page?

Users and even novice programmers often wonder if they have problems with positioning applications on the webpage.

As everything seems to be an enigma, there is still a solution to all these problems.


The positioning of the application on the web page can be done on the left, in the center and on the right of the web page.


Good to know. To position the application on the web page we will use a programming file in Bootstrap. Insert the file into the header tag of the webpage, and look at the example below.


View file positioning in head tag: meta name/ link rel/ script src


Positioning the Bootstrap file in the header tag

We will create a three-column container-fluid file for positioning the application on the web page, for example (div class="col-lg-4").

These columns may change depending on the size of the application you want to change, for example (div class="col-lg-4"), or (div class="col-lg-6"), or (div class="col-lg-2").

Good to know. To make the application work properly, insert the container-fluid file into the body of the webpage.


View the container-fluid file


Create the complete web application file in Bootstrap

If you look closely at the CSS style file in the form tag, the {margin-top: 100px;} or {margin-left: 15px;} properties are no longer present.

The {margin-top: 100px;} property can be entered in the (div class="container-fluid" style="margin-top: 100px;") tag. The {margin-left: 15px;} property will be permanently removed from the form tag of the CSS style file.

I inserted the web application file into the container-fluid on the middle column (div class="col-lg-6"). In the container-fluid file you can position the application to the left or right by entering the web application file in (div class="col-lg-3").

Good to know. A (div class="row") is created after which the desired number of columns is added, for example the tag (div class="col-lg-6").

Note that numbers in columns will be written up to (12 numbers per row). You can create columns of different widths for (mobile phones, tablets, and very large desktops), such as (col-xs-6, col-sm-6, col-lg-6).


Write the complete web application file in Bootstrap



How do we switch from HTML4 to HTML5?

Good to know. For users who have not switched from HTML4 to HTML5, the HTML4 file is an example of (programming for the web search application).

To deploy the search appliance to your site, please follow the tutorial with all the documentation for the HTML5 file and follow the difference in the programming of the HTML5 file.


If some sites are left to HTML4 you can easily implement this application on the web page.


The HTML4 file is stylized in line CSS style, if you look closely the difference is not very big between these two methods of programming line styling and CSS style block styling.

In the HTML5 file I programmed and stylized the CSS style block file.This CSS-style block programming method cleans up the HTML file and has clearer visibility into HTML programming lines.


Full HTML4 file form with CSS in web page


Change DOCTYPE from HTML4 to HTML5

In this file I wrote doctype HTML4 of the web page to see the difference and the ease with which doctype HTML4 can be changed with HTML5 see the example below.


View doctype with HTML4


New HTML5 DOCTYPE

In this HTML5 doctype file of the webpage you can see how easy it is to write doctype in HTML5, see the example below.


Write new HTML5 doctype


Switch to HTML4 encoding type

In the HTML4 encoding type file you can easily change the information of the HTML5 encoding type file, see the example below.


View HTML4 encoding type


Changing the encoding type file from HTML4 to HTML5 is written in a very simple and easy to understand form, see the example below.


Write new encoding type HTML5


Change the HTML4 style CSS file

In HTML4 the CSS style file is written in block form, each field in the form has a unique identification id and in turn the properties of the field with the corresponding id will be added for the transition to HTML5 follow the example below.


View HTML4/ CSS file


Write the new HTML5 CSS style file

In HTML5 the CSS style file is written the same in block form, in this file we can see the difference in CSS style programming, the field identification id is replaced with an attribute from each field of the form.


Write new HTML5/ CSS file