Tag Info

Hot answers tagged

17

According to the W3C, the P element can only contain other elements as listed here: Phrasing Elements. Therefore, that is syntactically incorrect and may result in a browser error (check Firefox's console). It's recommended to validate your HTML code before submitting to search engines, so I'd suggest avoiding code that may produce errors or looks ...


4

Your header is incorrect. Here is some documentation. It should be Expires as in: header("Expires: Thu, 30 May 2013 11:26:00 GMT"); You generally generate it in PHP like this: header('Expires: '.date('D, d M Y H:i:s', time() + 60*10).' GMT'); There is no need to put a type because it is irrelevant. The header simply applies to the result you are ...


3

Modern browsers will automatically encode the special characters in the URL before requesting it. So you are already using encoded characters, you just don't know it. I used http://www.url-encode-decode.com/ to encode the file portion of your URL (using UTF-8): ...


3

From accessibility this would be incorrect, because <map> tag is: The map element, in conjunction with any area element descendants, defines an image map. (source from W3C) StackOverflow gives a good answer about custom elements.


3

You should not rewrite working code. Whether you use characters as such or as character/entity references does not depend on calendar year but on many other considerations, like the ease of typing characters and the difficulty of distinguishing characters when they appear in HTML source. (Can you distinguish a space from a no-break space, or s with comma ...


2

ExpiresByType is an Apache directive, not PHP. Typically you would put this in a .htaccess file in the same folder as the images (or in the vhost): ExpiresByType image/gif "modification plus 10 minutes" You will need to have the Apache module mod_expires enabled for this to work.


2

I searched for "LIVESPELL ENABLED" which led me to http://www.trichview.com/forums/viewtopic.php?t=1270 which mentions Addict 3. Addict is a component suite providing end-to-end solutions for adding spelling check and thesaurus support to your Delphi and C++Builder applications. http://www.addictivesoftware.com/3rdparty.htm lists several HTML editors ...


2

You cannot enclose h1 in p. It’s not just a matter of HTML rules; it’s also how browsers and search engines process the markup. Your example will be parsed as if it were <p>These are the best </p><h1> Cheap Widgets </h1> ever. </p> That is, one p element, followed by one h1 element, followed by just text not wrapped in an ...


2

Additionally: It will, because Google structures information through headlines (generally through semantic markup, because it has no other means to do this). Therefore, you mess up the structure of your document by nesting a h1 in a p. Otherwise, you also distract people with screenreaders. And: what exactly is it supposed to mean, having a h1 by itself in a ...


2

Here's a couple of things to consider in general: Physical configuration/specs of the web server: RAM (the more the better) CPU processor speed, and number of cores for multi-core applications Drive speed and physical RAID to increase read/write speed (not software RAID used for mirrors and backups) ... OS and server configuration: This is specific to ...


1

...share the downloads in a music forum This is really just adding to the existing answers... the URL needs to be encoded at some point, either implicitly by the browser (or forum software) or explicitly by you. You specifically mention you are sharing these links in a forum. Many forums automatically encode links in forum posts, so you might not have ...


1

Yes, for uniform compatibility with different browsers and internet accessible applications, you would need to encode all of the following in a URL: Spaces ASCII Control characters Non-ASCII characters Reserved characters Unsafe characters For more information as to what these are, see this: What characters need to be encoded and why? Since it seems ...


1

The short answer is, yes. Not all browsers will properly interpret those characters. Most will catch your unencoded ampersands and such, but they may not catch less common characters. This has a big impact on user experience, more than SEO (unless it falls in the middle of a keyword you are trying to rank on). Google uses something very similar in ...


1

There are definitely other reasons to do that (as mentioned in the other replies here), but it won't negatively affect your site's "SEO" compared to using the same text within a h1 outside of the p. FWIW just randomly placing keywords from your site within h1 elements isn't going to impress any modern search engines, it really makes sense to use them in a ...


1

If you mean automatically cleaning up your own HTML code, Dreamweaver has commands to apply formatting and clean up XHTML code, along with a W3C validation check. Speaking of which, that uses the WC3 Markup and Validation Service, which allows for validation of a URI, uploaded file, and copy/pasting HTML code. The WC3 HTML Tidy Service will also cleanup ...


1

Depends, there are several options and depending on your coding IDE. For example, Sublime Text has some really nice built-in coding cleaner and can be extended by a gazillion of plugins for probably every coding language out there. Of course, there are several other cleaning tools out there, but honestly, I have yet to find one which brings clean results ...


1

If you want to see the files on a page-by-page basis, use a browser like Chrome that shows the files transferred. In Chrome, right-click on a page and select the "Inspect element" menu item. A new window pane will open in the lower half of the page with tabs named "Elements", "Resource", "Network", etc. Click on the Network tab and then reload the page. ...



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