Skip to content

General

IT Notes → HTML @ December 22, 2020

  • Three types of documents – traditional, strict and frameset
  • Modern web browsers are generally developed with multiple rendering modes: in “standards mode” pages are rendered according to the HTML and CSS specifications, while in “quirks mode” attempts are made to emulate the behaviour of older browsers
  • There can’t be nested forms – won’t work same in all browsers
  • If we keep a hidden field like the one below, we can limit file upload size to 500KB
  • <input type="hidden" name="MAX_FILE_SIZE" value="500" />
  • HTML forms provide two methods of encoding
    1. application/x-www-form-urlencoded
    2. multipart/form-data
  • Base href is a base URL for all relative URLs on a page. It should be on top of head and helps while URL rewriting
  • <head>
    <base href="http://www.test.com/images/" />
    </head>
    Meta Tags
    <meta   http-equiv="refresh" content="5; url=autoforward_target.html">
    <meta   http-equiv="pragma" content="no-cache">