Not a Stupid Question 4: Even if i use Internet Explorer 11 - Why does the document mode change to IE 8?

I had a new learning from the question, i had faced earlier.

Even if i use Internet Explorer 11 - Why does the document mode change to IE 8?

Every Web page, starts with head tag in html code.

<html>
   <head>
   <!-- Mimic Internet Explorer 8 -->
      <title>My Web Page</title>
      <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
   </head>
   <body>
      <p>Content goes here.</p>
   </body>
</html>

By default, in the code - the content tag is "IE=EmulateIE8"
This means, even if the higher versions of Internet Explorer is used, 
the web browser forces to use as Internet Explorer 8.

For the web page to work Correctly, Change the content tag to "IE=edge".
 
  • Edge mode tells Internet Explorer to display content in the highest mode available. With Internet Explorer 9, this is equivalent to IE9 mode. If a future release of Internet Explorer supported a higher compatibility mode, pages set to edge mode would appear in the highest mode supported by that version. Those same pages would still appear in IE9 mode when viewed with Internet Explorer 9.
<html>
   <head>
   <!-- Mimic Internet Explorer 8 -->
      <title>My Web Page</title>
      <meta http-equiv="X-UA-Compatible" content="IE=egde" />
   </head>
   <body>
      <p>Content goes here.</p>
   </body>
</html>

Then what is http-equiv="X-UA-Compatible" ?
The X-UA-Compatible meta tag allows web authors to choose what version of Internet Explorer the page should be rendered as. 

Posted in | Leave a comment

Not a Stupid Question 3: How to make your webpage faster ?

When you visit the webpage on your browser, Open Developer Tools of your browser.

  • In the Developer Tools -> Network Tab -> 
Point 1:  Check which resources are taking long time
  • Then, In the Developer Tools -> Sources Tab -> 
Point 2: Check, if  JavaScript is before the CSS file in the Folder Structure

If yes, then move the CSS Files above the JavaScript in the Folder Structure.


  • Then, In the Developer Tools -> Sources Tab ->
Point 3:  To render JavaScript file render faster, Add - async to <Script> tag. 


Posted in | Leave a comment

Not So Stupid Questions 2 - Showing Password to users is incorrect

We have seen many websites have a Reset Password for a username.

Two Scenarios:

One: Password is sent as a plain text.

Note: Don't Send Passwords in the plain text.

Example: Here, Warholstore.com displays password in the email.
Issue: Dont neglect this security issue ! You might be noticing your own website one day in the www.plaintextoffenders.com 

Two:  Reset link will be sent to the websites 

When a Reset Link is clicked - It redirect to reset password page.

Example: Here is the Yahoo - Reset Password page

It shows "Show Password" - Check box - Selected by default.

Now, Un-check the check box selected and Type the Password in the text box area.

Bug: We don't expect to see the password shown while typing, but it displays the password.



PS: Please let me know, if any questions.


Posted in | Leave a comment