Programming
Article
By Philip Miseldine

Setting Page Titles 2005 Style

By Philip Miseldine
Last chance to win! You'll get a... FREE 6-Month Subscription to SitePoint Premium Plus you'll go in the draw to WIN a new Macbook SitePoint 2017 Survey Yes, let's Do this It only takes 5 min

Little tip.

To set the page title on an ASP.NET Web From using Whidbey, add runat=”server” properties to the head and title tags in your HTML:




<br /> </head></code></p> <p>Now, you can set the page easily using:</p> <p><code><br /> this.Title = "My new page title";</code></p> <p>Simple as!</p> </div> <div class="l-mb3"> <thumbvoter-buttons id="38518" url="https://www.sitepoint.com/wp-admin/admin-ajax.php" user_rating="0" channel="Programming" /> </div> </div> <div class="Article_authorBio l-mb4 l-pa3 t-bg-white m-border"> <div class="l-d-f"> <a class="l-s5 l-mr3 l-round l-o-h" href="https://www.sitepoint.com/author/philip-miseldine/"> <img src="https://secure.gravatar.com/avatar/ac68fbf57913531cc509000d75beddab?s=96&d=mm&r=g" width="96" height="96" alt="" class="avatar avatar-96 wp-user-avatar wp-user-avatar-96 photo avatar-default" /> </a> <div class="f-lh-title"> <div class="f-c-grey-300">Meet the author</div> <div class="f-large"> <a class="f-bold f-c-grey-500" href="https://www.sitepoint.com/author/philip-miseldine/"> Philip Miseldine </a> </div> </div> </div> <div class="f-light f-lh-copy l-mt3">Philip is a Computer Science PhD student at Liverpool John Moores University. He's still not mastered guitar tabs, never finished Mario, and needs a haircut. He discusses life at <a href="http://www.miseldine.com/">http://www.miseldine.com/</a>.</div> </div> <div class="ArticleContent_endcap"> </div> <div class="widget maestro maestro-content-type-bsa hide-for-mobile-SP" id="maestro-440"><div class="l-pa3 t-bg-white" id="maestro-440-bsa-143427"> <a href="//srv.buysellads.com/ads/click/x/GTND42QEC6YD6K3YCVYLYKQMCTYDL2QICTSITZ3JCWYDT53UCVAI55QKC6BITKQEC6SDVK3EHJNCLSIZ" class="l-d-f l-ai-cen l-pa3 t-bg-grey-50" data-ga-on="click" data-ga-event-category="maestro" data-ga-event-label="maestro-440-bsa-143427" data-ga-event-action="click" > <img src="//assets.servedby-buysellads.com/p/manage/asset/id/39047"> <span class="l-fg1 l-mh3 f-bold f-center f-underline f-lh-title f-c-grey-700">Users finding bugs? Searching logs for errors? Find + fix broken code fast!</span> <button class="Button u-outline l-fs0">Learn More</button> <span class="l-mh3 f-c-grey-300">AD</span> </a> </div><img src="https://www.launchbit.com/taz-pixel/11116-6759-111" height="1" width="1" border="0" style="display: none;" /><script>ga('SitePointPlugin:observeImpressions', ['maestro-440-bsa-143427'])</script></div> <div id="commentsSection" class="l-pa3 t-bg-white"> <div id="sp_comments_signin"> <div class="f-larger f-bold l-mb3">Login or Create Account to Comment</div> <a href="/premium/sign-in?ref_source=sitepoint&ref_medium=comments&redirect_path=%2Fsetting-page-titles-2005-style%2F%23commentsSection" class="Button u-grey u-outline">Login</a> <a href="/premium/sign-up?ref_source=sitepoint&ref_medium=comments&redirect_path=%2Fsetting-page-titles-2005-style%2F%23commentsSection" class="Button l-ml3">Create Account</a> </div> <div data-spotim-module="recirculation" data-spot-id="sp_hAStREiw"></div> <script src="https://recirculation.spot.im/spot/sp_hAStREiw"></script> <script async src="https://launcher.spot.im/spot/sp_hAStREiw" data-spotim-module="spotim-launcher" data-spot-id="sp_hAStREiw" data-post-id="38518" data-disqus-url="https://www.sitepoint.com/setting-page-titles-2005-style/" data-disqus-identifier="38518 http://492824695"></script> <script> if (window.SPOTIM && window.SPOTIM.startSSO) { startSSO(); } else { document.addEventListener("spot-im-api-ready", startSSO, false); } function startSSO() { var callback = function(codeA, completeSSOCallback) { $.ajax({ method: "GET", url: "/premium/api/v1/users/spot_im_sso/" + codeA, success : function(response){ completeSSOCallback(response.code_b); } }); }; window.SPOTIM.startSSO(callback).then(function(result) { var button = document.getElementById("sp_comments_signin"); button && button.remove(); }) .catch(function(reason){ console.log(reason) }); } </script> <a id="comments"></a> </div> </div> <div class="l-w-aside-i l-mt6 l-mh3 l-d-n l-d-f--3col l-fd-col l-fs0"> <div class="l-mb3"> <div class="widget maestro maestro-content-type-ad hide-for-mobile-SP" id="maestro-1"><!-- SP2013_Articles_300x250_1 --> <div id="div-gpt-ad-1392428092543-0" style="" class="adspot "> <script type="text/javascript">googletag.cmd.push(function() { googletag.display("div-gpt-ad-1392428092543-0"); });</script> <script type="text/javascript"> window.SP_GPT_Slots.push({ id : "1392428092543-0", name : "SP2013_Articles_300x250_1", sizes : [300,250], desktop : 1, tablet : 1, phone : 0 }); </script> </div></div> </div> <sp-heading content="Recommended"></sp-heading> <div class="l-w-100 l-mv3 l-pa3 t-bg-white m-border"> <div> <ul> <li class="l-d-f l-ai-fs t-ls-n l-mb3"> <span class="Article_recommendedListMarker l-d-ib l-fs0 l-mt1 l-round f-center f-small f-c-white t-bg-grey-300">1</span> <a class="l-d-ib l-pl2 f-c-grey-500 f-medium f-bold" href="https://www.sitepoint.com/7-code-playgrounds/?utm_source=sitepoint&utm_medium=relatedsidebar&utm_term=programming">7 of the Best Code Playgrounds</a> </li> <li class="l-d-f l-ai-fs t-ls-n l-mb3"> <span class="Article_recommendedListMarker l-d-ib l-fs0 l-mt1 l-round f-center f-small f-c-white t-bg-grey-300">2</span> <a class="l-d-ib l-pl2 f-c-grey-500 f-medium f-bold" href="https://www.sitepoint.com/there-are-more-virtual-reality-headsets-than-you-realize/?utm_source=sitepoint&utm_medium=relatedsidebar&utm_term=programming">There Are More Virtual Reality Headsets Than You Realize!</a> </li> <li class="l-d-f l-ai-fs t-ls-n l-mb3"> <span class="Article_recommendedListMarker l-d-ib l-fs0 l-mt1 l-round f-center f-small f-c-white t-bg-grey-300">3</span> <a class="l-d-ib l-pl2 f-c-grey-500 f-medium f-bold" href="https://www.sitepoint.com/shiny-r-and-html-merging-data-science-and-web-development/?utm_source=sitepoint&utm_medium=relatedsidebar&utm_term=programming">Shiny, R and HTML: Merging Data Science and Web Development</a> </li> <li class="l-d-f l-ai-fs t-ls-n l-mb3"> <span class="Article_recommendedListMarker l-d-ib l-fs0 l-mt1 l-round f-center f-small f-c-white t-bg-grey-300">4</span> <a class="l-d-ib l-pl2 f-c-grey-500 f-medium f-bold" href="https://www.sitepoint.com/how-to-learn-programming-languages-faster/?utm_source=sitepoint&utm_medium=relatedsidebar&utm_term=programming">How to Learn Programming Languages Faster</a> </li> <li class="l-d-f l-ai-fs t-ls-n l-mb3"> <span class="Article_recommendedListMarker l-d-ib l-fs0 l-mt1 l-round f-center f-small f-c-white t-bg-grey-300">5</span> <a class="l-d-ib l-pl2 f-c-grey-500 f-medium f-bold" href="https://www.sitepoint.com/flexbox-css-flexible-box-layout/?utm_source=sitepoint&utm_medium=relatedsidebar&utm_term=programming">A Friendly Introduction to Flexbox for Beginners</a> </li> </ul> </div> </div> <sp-heading content="Sponsors"></sp-heading> <div class="l-w-100 l-mv3 t-bg-white m-border"><div class="widget maestro maestro-content-type-bsa hide-for-mobile-SP" id="maestro-448"><div class="l-pa3" style="border-bottom: 1px solid #e5e5e5" id="maestro-448-bsa-143120"> <a href="//srv.buysellads.com/ads/click/x/GTND42QEC6YD6K3YCVYLYKQMCTYDL2QLF67DPZ3JCWYDT53YCTBDV53KC6BITKQEC6SDVK3EHJNCLSIZ" class="l-d-f l-ai-sta" data-ga-on="click" data-ga-event-category="maestro" data-ga-event-label="maestro-448-bsa-143120" data-ga-event-action="click" > <img class="l-s5" src="//assets.servedby-buysellads.com/p/manage/asset/id/55770"> <div class="f-small l-d-f l-fd-col l-ml3 f-lh-title f-c-grey-700"> <span class="f-bold">Manual Kinks in your CI/CD Pipeline?</span> <span>Is Your DevOps Pipeline Leaking?</span> </div> </a> </div><img src="https://www.launchbit.com/taz-pixel/474-6651-111" height="1" width="1" border="0" style="display: none;" /><div class="l-pa3" style="border-bottom: 1px solid #e5e5e5" id="maestro-448-bsa-151031"> <a href="//srv.buysellads.com/ads/click/x/GTND42QEC6YD6K3YCVYLYKQMCTYDL2QICTSITZ3JCWYDT5QECESD42QKC6BITKQEC6SDVK3EHJNCLSIZ" class="l-d-f l-ai-sta" data-ga-on="click" data-ga-event-category="maestro" data-ga-event-label="maestro-448-bsa-151031" data-ga-event-action="click" > <img class="l-s5" src="//assets.servedby-buysellads.com/p/manage/asset/id/57689"> <div class="f-small l-d-f l-fd-col l-ml3 f-lh-title f-c-grey-700"> <span class="f-bold">Catch Errors Before Users Do</span> <span>Root cause to resolution in 30 secs. Try Rollbar Free!</span> </div> </a> </div><img src="https://www.launchbit.com/taz-pixel/474-6935-111" height="1" width="1" border="0" style="display: none;" /><div class="l-pa3" style="border-bottom: 1px solid #e5e5e5" id="maestro-448-bsa-150031"> <a href="//srv.buysellads.com/ads/click/x/GTND42QEC6YD6K3YCVYLYKQMCTYDL23UCESDEZ3JCWYDT5QECE7DE27KC6BITKQEC6SDVK3EHJNCLSIZ" class="l-d-f l-ai-sta" data-ga-on="click" data-ga-event-category="maestro" data-ga-event-label="maestro-448-bsa-150031" data-ga-event-action="click" > <img class="l-s5" src="//assets.servedby-buysellads.com/p/manage/asset/id/57299"> <div class="f-small l-d-f l-fd-col l-ml3 f-lh-title f-c-grey-700"> <span class="f-bold">Slack</span> <span>It's teamwork, but simpler, more pleasant and more productive.</span> </div> </a> </div><img src="https://slack.sp1.convertro.com/view/vt/v1/slack/0/cvo.gif?cvosrc=display.carbon.two%20cpc&utm_source=carbon&utm_medium=display&utm_campaign=two%20cpc" height="1" width="1" border="0" style="display: none;" /><img src="https://569-img.c3tag.com/v.gif?cid=569&c3ch=Carbon%20Networks&c3nid=Two%20CPC" height="1" width="1" border="0" style="display: none;" /><script>ga('SitePointPlugin:observeImpressions', ['maestro-448-bsa-143120','maestro-448-bsa-151031','maestro-448-bsa-150031'])</script></div></div> <div class="l-w-100"> <featured-listing type="Post" slug="programming" limit="2" exclude="38518"></featured-listing> </div> <div class="ArticleBox u-premium-preview"></div> <div class="ArticleAside_row ArticleAside_newboxads"><div class="widget maestro maestro-content-type-ad hide-for-mobile-SP" id="maestro-251"><!-- SP_Articles_200x125_1 --> <div id="div-gpt-ad-1436815711585-0" style="" class="adspot "> <script type="text/javascript">googletag.cmd.push(function() { googletag.display("div-gpt-ad-1436815711585-0"); });</script> <script type="text/javascript"> window.SP_GPT_Slots.push({ id : "1436815711585-0", name : "SP_Articles_200x125_1", sizes : [200,125], desktop : 1, tablet : 1, phone : 0 }); </script> </div></div><div class="widget maestro maestro-content-type-ad hide-for-mobile-SP" id="maestro-252"><!-- SP_Articles_200x125_2 --> <div id="div-gpt-ad-1436815711585-1" style="" class="adspot "> <script type="text/javascript">googletag.cmd.push(function() { googletag.display("div-gpt-ad-1436815711585-1"); });</script> <script type="text/javascript"> window.SP_GPT_Slots.push({ id : "1436815711585-1", name : "SP_Articles_200x125_2", sizes : [200,125], desktop : 1, tablet : 1, phone : 0 }); </script> </div></div><div class="widget maestro maestro-content-type-ad hide-for-mobile-SP" id="maestro-253"><!-- SP_Articles_200x125_3 --> <div id="div-gpt-ad-1436815711585-2" style="" class="adspot "> <script type="text/javascript">googletag.cmd.push(function() { googletag.display("div-gpt-ad-1436815711585-2"); });</script> <script type="text/javascript"> window.SP_GPT_Slots.push({ id : "1436815711585-2", name : "SP_Articles_200x125_3", sizes : [200,125], desktop : 1, tablet : 1, phone : 0 }); </script> </div></div><div class="widget maestro maestro-content-type-ad hide-for-mobile-SP" id="maestro-254"><!-- SP_Articles_200x125_4 --> <div id="div-gpt-ad-1436815711585-3" style="" class="adspot "> <script type="text/javascript">googletag.cmd.push(function() { googletag.display("div-gpt-ad-1436815711585-3"); });</script> <script type="text/javascript"> window.SP_GPT_Slots.push({ id : "1436815711585-3", name : "SP_Articles_200x125_4", sizes : [200,125], desktop : 1, tablet : 1, phone : 0 }); </script> </div></div></div> <div class="ArticleAside_row"><div class="widget maestro maestro-content-type-ad hide-for-mobile-SP" id="maestro-56"><!-- SP2013_Articles_300x600_1 --> <div id="div-gpt-ad-1392428092543-4" style="" class="adspot Sticky"> <script type="text/javascript">googletag.cmd.push(function() { googletag.display("div-gpt-ad-1392428092543-4"); });</script> <script type="text/javascript"> window.SP_GPT_Slots.push({ id : "1392428092543-4", name : "SP2013_Articles_300x600_1", sizes : [[300, 600], [300, 250], [160, 600]], desktop : 1, tablet : 1, phone : 0 }); </script> </div></div> <ads-weighted widget='21' data='{"NL":[{"id":"585","demandbase_field":null,"demandbase_value":null,"weight":"50","randMax":50},{"id":"584","demandbase_field":null,"demandbase_value":null,"weight":"50","randMax":100}]}' fallback='' url='setting-page-titles-2005-style' channelSlug='programming'></ads-weighted></div> </div> </div> <div class="u-accordion-end"></div> <div class="l-pa3 l-mt4"> <premium-latest-listing type="BookCourse" title="Programming Books and Course" href="/premium?q=&limit=24&offset=0&page=1&content_types[]=All&slugs[]=programming&states[]=available&order=" slug="programming" limit="4" heading_tag="h4"></premium-latest-listing> </div> <div class="l-d-f l-jc-cen l-w-100 l-mb4"> <a href="/premium?q=&limit=24&offset=0&page=1&content_types[]=All&slugs[]=programming&states[]=available&order=" class="Button u-large">All Programming Books and Courses</a> </div> <div class="l-w-100 l-pv2 l-pv4--2col versioning-background f-c-white l-p-rel"> <svg class="versioning-icon l-d-n l-d-b--2col" viewBox="0 0 480 520"> <g> <path d="M26.55,302.65 C4.63,311.21 -2.20,345.88 29.49,358.68 C14.87,383.59 22.25,398.89 54.48,407.25 C43.36,416.36 52.20,451.61 83.48,451.61 C79.25,468.00 91.71,495.93 126.54,482.94 C123.09,507.62 155.72,524.39 176.66,498.02 C179.98,517.56 210.61,530.04 229.5,507.62 C246.69,524.49 271.67,520.54 279.95,498.02 C305.14,526.81 335.92,506.14 335.92,482.94 C346.86,493.32 383.09,483.46 375.37,448.53 C399.29,452.21 411.99,430.50 407.51,407.25 C416.11,407.25 442.56,401.69 432.97,358.68 C455.37,353.11 462.73,315.11 432.97,300.44 C436.26,286.30 438,271.59 438,256.5 C438,237.85 435.35,219.80 430.40,202.67 C454.32,152.63 449.37,116.06 387.62,92.56 C397.94,72.67 387.62,36.88 348.21,43.26 C335.92,-13.58 279.95,12.02 272.09,26.41 C261.87,-4.25 209.08,-11.59 191.37,26.41 C176.66,10.83 126.54,10.77 120.87,59.98 C56.84,33.93 43.82,80.96 52.40,101.45 C-29.42,128.91 5.29,189.80 27.07,208.26 C23.10,223.71 21,239.86 21,256.5 C21,272.38 22.92,287.83 26.55,302.65 Z M282.53,351 C277.25,375.58 255.51,394 229.5,394 C203.48,394 181.74,375.58 176.46,351 L282.53,351 Z M400.68,266.86 C400.68,275.29 400.08,283.58 398.91,291.69 C393.90,285.77 386.43,282.01 378.09,282.01 C364.32,282.01 352.92,292.26 351.03,305.58 C346.05,300.39 339.07,297.16 331.33,297.16 C323.11,297.16 315.74,300.81 310.73,306.58 C305.72,300.81 298.34,297.16 290.12,297.16 C281.68,297.16 274.14,301.00 269.12,307.05 C264.11,301.00 256.56,297.16 248.12,297.16 C240.53,297.16 233.66,300.27 228.70,305.30 C223.75,300.27 216.88,297.16 209.29,297.16 C200.85,297.16 193.30,301.00 188.28,307.05 C183.27,301.00 175.72,297.16 167.28,297.16 C159.06,297.16 151.69,300.81 146.68,306.58 C141.66,300.81 134.29,297.16 126.07,297.16 C118.34,297.16 111.35,300.39 106.38,305.58 C104.48,292.26 93.09,282.01 79.31,282.01 C71.70,282.01 64.82,285.14 59.87,290.18 C58.84,282.56 58.31,274.77 58.31,266.86 C58.31,232.60 68.26,200.67 85.41,173.84 C109.56,172.10 140.65,165.07 173.36,153.10 C215.99,137.49 251.14,117.22 269.31,99.36 C269.76,99.46 270.20,99.57 270.64,99.68 C277.66,109.77 289.30,116.37 302.47,116.37 C305.41,116.37 308.27,116.04 311.02,115.42 C364.42,144.57 400.68,201.46 400.68,266.86 Z"></path> <ellipse cx="290.06" cy="218" rx="26.50" ry="26.50"></ellipse> <ellipse cx="169.93" cy="218" rx="26.50" ry="26.50"></ellipse> </g> </svg> <banner-subscribe cta="Make My Day Better" title="Get the most important and interesting stories in tech. Straight to your inbox, daily." subtext="Is it good?" sublink="/versioning/issue/latest" confirmation="Thanks! You'll get your first newsletter very soon." image=false buttonclass="u-outline u-white" > </banner-subscribe> </div> <article-sharer data-url="https%3A%2F%2Fwww.sitepoint.com%2Fsetting-page-titles-2005-style%2F" data-title="Setting Page Titles 2005 Style"></article-sharer> <script> OneSignal.push(function() { OneSignal.sendTags({ programming: 'programming', }); }); </script> </div> </div> <ads-weighted widget='86' data='{"US":[{"id":"638","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"AR":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"AU":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"BE":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"BR":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"CA":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"CN":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"DE":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"DK":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"ES":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"FR":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"GB":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"HK":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"ID":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"IL":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"IN":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"IT":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"JP":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"KP":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"KR":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"MX":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"MY":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"NL":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"NZ":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"PH":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"PK":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"PL":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"PT":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"RU":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"SE":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"SG":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"TR":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"TW":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"UA":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}],"VN":[{"id":"641","demandbase_field":null,"demandbase_value":null,"weight":"0","randMax":0}]}' fallback='' url='setting-page-titles-2005-style' channelSlug='programming'></ads-weighted> <footer class="l-d-f t-bg-grey-500" role="contentinfo" style="height: 500px;"> <div class="l-d-f l-fw-w l-mh-auto"> <div class="l-d-f l-mt4 l-w-100 l-w-2col--2col l-w-3col--4col"> <ul class="t-ls-n l-w-100"> <li> <div class="f-c-white f-medium f-bold l-mb2">About</div> </li> <li> <a class="m-link-white f-small" href="/about-us/">Our Story</a> </li> <li > <a class="m-link-white f-small" href="/advertise/">Advertise</a> </li> <li> <a class="m-link-white f-small" href="/press/">Press Room</a> </li> <li> <a class="m-link-white f-small" href="http://reference.sitepoint.com/css/" target="_blank">Reference</a> </li> <li> <a class="m-link-white f-small" href="/legals/">Terms of Use</a> </li> <li> <a class="m-link-white f-small" href="/legals/#privacy">Privacy Policy</a> </li> <li> <a class="m-link-white f-small" href="https://sitepoint.zendesk.com/hc/en-us" target="_blank">FAQ</a> </li> <li> <a class="m-link-white f-small" href="/contact-us/">Contact Us</a> </li> <li> <a class="m-link-white f-small" href="/write-for-us/">Contribute</a> </li> </ul> <ul class="t-ls-n l-w-100"> <li> <div class="f-c-white f-medium f-bold l-mb2">Visit</div> </li> <li> <a class="m-link-white f-small" href="/">SitePoint Home</a> </li> <li> <a class="m-link-white f-small" href="/themes/?utm_source=blog&utm_medium=footer">Themes</a> </li> <li> <a class="m-link-white f-small" href="/versioning-show/">Podcast</a> </li> <li> <a class="m-link-white f-small" href="https://www.sitepoint.com/community/">Forums</a> </li> <li> <a class="m-link-white f-small" href="/newsletter/">Newsletters</a> </li> <li> <a class="m-link-white f-small" href="/premium/">Premium</a> </li> <li> <a class="m-link-white f-small" href="/sass-reference/">References</a> </li> <li> <a class="m-link-white f-small" href="https://www.sitepoint.com/versioning/">Versioning</a> </li> </ul> </div> <div class="l-mt4 l-w-1col"> <ul class="t-ls-n l-w-100"> <li> <div class="f-c-white f-medium f-bold l-mb2">Connect</div> </li> <li> <a class="m-link-white" href="https://www.sitepoint.com/feed/"> <i class="fa fa-rss-square l-i4"></i> </a> <a class="l-pl1 m-link-white" href="/newsletter/"> <i class="fa fa-envelope-square l-i4"></i> </a> <a class="l-pl1 m-link-white" href="https://www.facebook.com/sitepoint" rel="noopener" target="_blank"> <i class="fa fa-facebook-square l-i4"></i> </a> <a class="l-pl1 m-link-white" href="http://twitter.com/sitepointdotcom" rel="noopener" target="_blank"> <i class="fa fa-twitter-square l-i4"></i> </a> <a class="l-pl1 m-link-white" href="https://plus.google.com/+sitepoint" rel="noopener" target="_blank"> <i class="fa fa-google-plus-square l-i4"></i> </a> </li> <p class="f-c-white l-mv3"> © 2000 – 2017 SitePoint Pty. Ltd. </p> </ul> </div> </div> </footer> <script type="text/javascript"> adroll_adv_id = "DJI3I3WGJBGL7PDJEDAYHV"; adroll_pix_id = "4RKMV6N56FGA7ANPGL4FQW"; (function () { var adblocked = false; var onAdblock = function() { if(adblocked) return; adblocked = true; gaEventQueue && gaEventQueue.track('CanSeeAds', 'adrollBlocked', {'nonInteraction': true}); Array.prototype.slice.call(document.getElementsByClassName('CantSeeAds')) .forEach(function(el) { el.className = el.className.replace('CantSeeAds', ''); }); }; var _onload = function(){ if (document.readyState && !/loaded|complete/.test(document.readyState)){setTimeout(_onload, 10);return} if (!window.__adroll_loaded){__adroll_loaded=true;setTimeout(_onload, 50);return} var scr = document.createElement("script"); var host = (("https:" == document.location.protocol) ? "https://s.adroll.com" : "http://a.adroll.com"); scr.setAttribute('async', 'true'); scr.type = "text/javascript"; scr.src = host + "/j/roundtrip.js"; scr.onerror = onAdblock; ((document.getElementsByTagName('head') || [null])[0] || document.getElementsByTagName('script')[0].parentNode).appendChild(scr); }; if (window.addEventListener) {window.addEventListener('load', _onload, false);} else {window.attachEvent('onload', _onload)} }()); </script> <script> (function(d,b,a,s,e){ var t = b.createElement(a), fs = b.getElementsByTagName(a)[0]; t.async=1; t.id=e; t.src=s; fs.parentNode.insertBefore(t, fs); }) (window,document,'script','https://scripts.demandbase.com/IM2QfEma.min.js','demandbase_js_lib'); </script> <script type='text/javascript'><!-- var seriesdropdown = document.getElementById("orgseries_dropdown"); if (seriesdropdown) { function onSeriesChange() { if ( seriesdropdown.options[seriesdropdown.selectedIndex].value != ( 0 || -1 ) ) { location.href = "https://www.sitepoint.com/series/"+seriesdropdown.options[seriesdropdown.selectedIndex].value; } } seriesdropdown.onchange = onSeriesChange; } --></script> <script type="text/javascript"> // <![CDATA[ var disqus_shortname = 'sitepointproduction'; (function () { var nodes = document.getElementsByTagName('span'); for (var i = 0, url; i < nodes.length; i++) { if (nodes[i].className.indexOf('dsq-postid') != -1 && nodes[i].parentNode.tagName == 'A') { nodes[i].parentNode.setAttribute('data-disqus-identifier', nodes[i].getAttribute('data-dsqidentifier')); url = nodes[i].parentNode.href.split('#', 1); if (url.length == 1) { url = url[0]; } else { url = url[1]; } nodes[i].parentNode.href = url + '#disqus_thread'; } } var s = document.createElement('script'); s.async = true; s.type = 'text/javascript'; s.src = '//' + disqus_shortname + '.disqus.com/count.js'; (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); }()); // ]]> </script> <!-- START Parse.ly Include: Standard --> <div id="parsely-root" style="display: none"> <div id="parsely-cfg" data-parsely-site="sitepoint.com"></div> </div> <script data-cfasync="false"> (function(s, p, d) { var h=d.location.protocol, i=p+"-"+s, e=d.getElementById(i), r=d.getElementById(p+"-root"), u=h==="https:"?"d1z2jf7jlzjs58.cloudfront.net" :"static."+p+".com"; if (e) return; e = d.createElement(s); e.id = i; e.async = true; e.setAttribute('data-cfasync', 'false'); e.src = h+"//"+u+"/p.js"; r.appendChild(e); })("script", "parsely", document); </script> <!-- END Parse.ly Include: Standard --> <script type="text/javascript"> (function(googletag, SP_GPT_Slots) { if(!SP_GPT_Slots.length) return; var SP_GPT_First_Slot_Rendered = false; googletag.cmd.push(function(){ googletag.pubads().addEventListener("slotRenderEnded", function(e){ if (!SP_GPT_First_Slot_Rendered) { gaEventQueue.track("CanSeeAds", "dfpFirstRendered", {"nonInteraction": true}); SP_GPT_First_Slot_Rendered = true; } }); }); })(googletag, SP_GPT_Slots); </script> <script type='text/javascript' src='//www.sitepoint.com/wp-content/themes/sitepoint/assets/javascripts/scripts-foot-dfb2dddf3e07e06b11282e3f2248e361.js?ver=4.7.3'></script> <script type='text/javascript' src='//www.sitepoint.com/wp-content/themes/sitepoint/assets/dynamic/compiled-f4c1f8dcf6622cf9a3ae586cc15ac66e.js?ver=4.7.3'></script> <script type='text/javascript' src='https://www.sitepoint.com/wp-includes/js/wp-embed.min.js?ver=4.7.3'></script> <script> jQuery(document).ready(function() { jQuery('.lazyYT').each(function() { var id = jQuery(this).data('youtube-id'), url = 'https://www.youtube.com/watch?v=' + id; jQuery(this).replaceWith('<a href="' + url + '">' + url + '</a>'); }); }); </script> </body> </html> <!-- Performance optimized by W3 Total Cache. Learn more: https://www.w3-edge.com/products/ Object Caching 1242/1316 objects using memcached Page Caching using memcached (SSL caching disabled) Content Delivery Network via Amazon Web Services: CloudFront: dab1nmslvvntp.cloudfront.net Served from: www.sitepoint.com @ 2017-07-25 14:38:39 by W3 Total Cache -->