Tag Info

Hot answers tagged

9

In general it's better to use progressive enhancement rather than graceful degradation. This means essentially starting with the content as if the user has no scripting, then using Javascript to enhance the page. For example, you might start with a link/button that goes somewhere or submits a form. Then you add Javascript that prevents naivgation/submission ...


7

TCP already has error correction, but this only helps you on the TCP layer. An intermediary HTTP proxy or load balancer can corrupt the data on the HTTP layer, and then retransmit it. A HTTP MD5 makes it possible to detect this corruption. The reason why nobody really talks about this need is that the problem is very rare indeed; most HTTP proxies etc "just ...


6

You should not use the canonical this way, paginated listing are well understood by Google. You can help him to make it clear : http://googlewebmastercentral.blogspot.fr/2011/09/pagination-with-relnext-and-relprev.html


6

1) The w3c decided this as they are the ones who wrote the HTML 4 specs. 2) Because they don't exist. Since browsers are supposed to ignore incorrect HTML tags they simply display the content and ignore the tag. (I don't know what IE 8 does but it's probably incorrect if it is not displaying the content). 3) Most likely as the <hx> goes down in ...


5

John Conde provided a good answer, BAU. However, I saw your comments on John Conde's reply. I'm member of WHATWG (the current HTML5 development process is: whatwg discuss, create, change, and W3C just keep a consolidated copy. Kristen from Opera is the copy keeper). That said, there was exactly the same question a time before, asking for headings beyond ...


4

You can do this with a little bit of jQuery To take the ID and create your H3 text from that... $(document).ready(function() { $('h3').each(function() { var newHeading = $(this).attr('id'); //Get the ID newHeading = newHeading.replace('_', ' '); //Replace the _ with a space $(this).text(newHeading); //Replace the H3 text with ...


4

I'm using a small script combined with a .htaccess rule. Basically, the script takes the file modification timestamp and adds it to it's name (in the web page), while the .htaccess rule redirects the file with the timestamp in the name to the corresponding file from the hdd. I took this from the Particletree blog, here: ...


3

You can download the Microsoft Web Platform Installer. It lets you browse through many popular web apps and install them. A free open source CMS that I found to be pretty helpful is Orchard CMS, which you can also download through the Microsoft Web Platform Installer. You can use it to quickly create a simple website and, also, making updates and ...


3

There are probably 1000 ways to do this which vary in cost, control and complexity. If you go to PHP or even just SSI, you can move the common parts to separate files and include them where needed, so that each page mostly consists of what is different. You can use a template system where an application like Dreamweaver maintains templates for you can each ...


3

In a mail from 1991, Tim Berners-Lee explained: I would in fact prefer, instead of <H1>, <H2> etc for headings [those come from the AAP DTD] to have a nestable <SECTION>..</SECTION> element, and a generic <H>..</H> which at any level within the sections would produce the required level of heading. So the ...


3

I'm not sure exactly what kind of content you're working with, but you called it a "complex structured document". I would imagine that with this being the case it's not possible to split the content into different sections/pages. With the level of headers you're wanting to drill down to, I wonder if you're being too liberal with what content you want ...


1

Your can use simple PHP code to make your site a little bit dynamic, e.g. First, you need to have to change your .html extension to .php (if your hosting on linux server that support PHP). Second, create a page called header.php, and put in it your HTML code (which you want to be in every page you have), the head and menu code for example. Then put this ...


1

No, you can't change the expiry headers for remote files that aren't under your control. The only way you could would be to host them on your own server - however you then remove the advantage of these files being hosted on powerful CDNs and the font files are probably already stored in other user's browser caches. There are work-around methods to use PHP ...


1

I assume you mean you're using <link> elements in your HTML (as opposed to the <xhtml:link> for sitemaps). Using the alternate links in the sitemap is beneficial for search engines only, whereas the links in the <head> of your web page could be used by browsers or other user-agents. I believe Opera used to make use of link elements but I ...


1

In Most Cases PHP and HTML Caching is Bad Generally it is not advisable to cache the PHP and HTML files of a site since when you modified these pages your returning visitors will not fetch the newer page without a hard refresh of the page. It is recommended By Google Insight to cache the images and other files that are unlikely to change. So when you edit ...


1

If the person has instant search on you wont get the keyword, the parameter q= shows up for static searches. In your Analytics go to Traffic Sources - Sources - Search - Organic you'll see in the keywords column (not provided) that's due to instant searches. To track the keywords you can try adding keyword insertion into your target URL so when they click ...


1

30 seconds timeout is my recommendation. And I recommend you not download the entire web page html and instead should be getting just the HEAD (php example) or just the http response (php example) and then bailing. Otherwise you could be downloading megabytes of long pages which increase your time. At the most I would recommend a max 60 seconds timeout if ...


1

On your dedicated server create and run a script that retrieves the HTML of a page from your site hosted at Google Sites. Have it parse that file to retrieve the header HTML. Then have the script update the header file for your forum. Tips: You will make your life a lot easier if you use comments to delimit where the header ends so the parse knows where ...


1

This cannot be done without some external script. If you already use e.g. PHP/ASP to display the pages I would use that. However you have to be cautions when you are going to automate this. Remember ids MUST be unique on the page. Also keep in mind that you should 'normalize' the generated ids to follow the rules for ids. What do you want this for. Do ...


1

MD5 checks add latency to web page load times. If true (and the latency is not entirely trivial) then I'd say it wasn't worth it. In general, I believe, the last modified header is most commonly used to determine if a page has changed. Assuming you provide meaningful value there, I see no need for the content-md5 header.



Only top voted, non community-wiki answers of a minimum length are eligible