Insert the following code between the <head> and </head> html tags.
<base target=”main”>
After inserting this piece of code all links should open in a New Browser Window.
What is the purpose of the pre html tag?
The text displayed within a pre element is displayed in a fixed width and a default font. Spaces and line breaks are both displayed as typed. So text that you typed within a pre tag will be displayed exactly how you typed it. Example: <pre> This is a test within a pre html Tag </pre> The above will ouput: This is a test within a pre html Tag The same text without the...
How to adjust the width of a HTML combobox (Drop down box or Select box)
You can use external CSS (Cascading Style Sheets) or Inline Styles. NOTE: External CSS stylesheets are best to use. Example using inline styles. <select style="width:200px;"> <option>Option 1</option> <option>Option 2</option> <option>Option 3</option> </select> Example using external CSS HTML <select class="dropdown"> ...
How to add/implement a Click-2-Call link for your Mobile web page
If you have a mobile website and you need to add a click to call link this method could come in handy.If a visitor clicks on this link his mobile phone will prompt the user if he wants to phone the number specified. Add the following anchor tag to your code <a href="tel:1111111111">1111111111</a> Replace the 1’s with the correct number, please do not include any other characters...
How to add a Google Map to your mobile website
First of all we can only use a static map, since Google Maps uses Javascript to zoom etc and most phones on the market do not support Javascript, so the only solution is to use static maps. Before we can use the Google Maps API we need to apply for an Application Key by visiting this URL Now use the following code within an HTML img tag <img src="" alt="Google Map" /> Replace ADDRESS with...
How to make an html input field readonly
You need to use the READONLY attribute for the input field. Readonly only prevents the user to change data in the input field.
Example:
<input type="text" name="info" id="info" READONLY />
Creating Superscripted text in HTML
Superscripted text can be used on your website by placing text between the <sup> tag
Superscripted text comes in handy to express exponential expressions eg 23 = 8or footnotes to draw attention.
By placing the th between the <sup> tag 5th becomes 5th
How to turn off Caching using HTML in a webpage
Add the following code between the <head> tags in your HTML page
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
The above should turn off webpage caching