Posts

Javascript window events

Image
onbeforeunload function in JavaScript | Creative Technocrayts onbeforeunload function in JavaScript When you have filled up a form in a web page and if you close the page before submitting it, you may get a message "Are you sure to leave this page?" Such customized messages are examples of window events onbeforeunload . The onbeforeunload event is fired when the document unloads its resources. You may notice the document is still visible and the event can be cancelled. onbeforeunload event is assigned to the <body> element. Various mobile user agents ignore the event. HTML Code Example You can implement the onbeforeunload event like this: <body onbeforeunload="return myFunction()"> Other tags </body> JavaScript Code Example Here’s an example of the JavaScript function to show the prompt: function myFunction(){ return "Your mes...

HTTP -HYPER TEXT TRANSFER PROTOCOL

HTTP stands for Hyper Text Transfer Protocol. HTTP is an application protocol for distributed and collaborative information systems. HTTP is the foundation of data communication for the World Wide Web.

Website Favicon Guide: Recommended Sizes, Formats & iOS Requirements

Image
Adding Favicons to the Website Favicons are one of the most common web page elements used in web development. Implementing them is easy and essential for websites. This article provides insights into adding favicons, helping beginners in web design. A favicon is a graphic image that acts as an identity for a website. It can appear in various places such as the website's title bar, address bar, desktop shortcuts, history, and bookmarks. Once your site is added to favorites or the home screen, favicons are displayed as representations of your site. The image used for favicons can typically be a square, with common sizes being 16x16 pixels . Other sizes, such as 32x32, 48x48, or 64x64 pixels , are also supported. The file format for favicons can be .png, .gif...

WEBSITE TEMPLATES

                                                  WEBSITE TEMPLATES Any business is a retail shop or beauty parlour or restaurant making a remarkable web  presence is essential for its growth. Website templates can be helpful to create nice  websites to showcase its portfolio in less time and money.  Website templates are pre  developed web pages with its own pages, images, videos and other styling elements  thereby making it a complete website.

How to use fonts in our website?

Image
Planning websites alos includes choosing typography. Font is everything is about the type from the weight, size and line height and so on. The generic font-family is i) Serif ii) Sans-serif iii) Script iv) Monospace v) Fantasy Sans serif fonts are most widely used for content on web. They are readable and common to all operating systems. Serif fonts are best used in print style sheets because serif fonts can be difficult to read on monitors. It is most apt for printable documents in website though. Serif fonts have small lines at the ends on some characters. Sans-serif do not have lines at the ends of the characters. Monospace fonts can be used when spacing of the content is on the focus such as with pre-formatted text. Script fonts are best used for signatures and cursive handwriting is needed. Fantasy fonts are used for artistic texts. Font styles in CSS While defining the font-families in CSS define it properly. When defining the typeface to displa...

Web Hosting

Image
                                                             Web hosting Web hosting can be explained in lay words as  the process of providing storage space and access for websites. Web hosting

Display property in CSS

Image
How to display elements in CSS Each and every element we write in HTML is displayed in the web page and takes its space. Each element has its own display property but we can control the same using CSS rules. Block level elements Elements like paragraph <p>, div <div> are block elements having default display value as block. Block elements takes up horizontal space as much as possible. They always fall in a new line stacked one below the other. They can contain block or inline elements and can be even wrapped inside an inline element. You can specify width and height to block level elements. Common elements listed below are block level elements.                        i.   <div>                       ii.   <ul>,<ol...