Hot answers tagged

6

In HTML5, keywords is one of the standard metadata names. It defines steps that user agents must follow to obtain the page’s list of keywords. One of these steps is: Split the value of the element's content attribute on commas. As the linked definition of "split a string on commas" explains, "leading and trailing whitespace" will be stripped: ...


5

No. The href must point to an absolute URI. Relative is not allowed on a base element. This attribute specifies an absolute URI that acts as the base URI for resolving relative URIs. The HTML5 standard says, in reference to the href attribute of <base>: The document base URL of a Document object is the absolute URL


4

Yes it is possible using Apache and PHP, by setting the expires and cache-control using header(), you can find out more about what is, and what is not supported in the HTTP/1.1 specification. PHP headers will look something like this: $seconds_to_cache = 3600; $ts = gmdate("D, d M Y H:i:s", time() + $seconds_to_cache) . " GMT"; header("Expires: $ts"); ...


4

The XHTML doctype is for XHTML web pages and, unless you are serving your page as application/xhtml+xml, it ain't XHTML. I'm betting you're not doing that. Writing HTML as XHTML is called "tag soup" and browsers will ignore what you wrote and do the best they can with it cause it won't make sense to the HTML parser. So that's a waste of time. I've ...


3

The impact of those styling tags (itself) is very big near nothing. Ok, why is this exactly not what it seems to be? Several sources are talking about the impact of CSS styling, the impact of responsiveness (See links at question), and the impact of semanticity and saying usually completely different things. (Not least because they are created at different ...


2

Crowded markup is not a huge issue these days. Once long ago it was considered a sign of a badly designed site and Google acted accordingly but these days with the rise of dynamic interactive database driven websites and rich user interfaces Google has stopped ranking based on HTML clutter. As long as all the HTML is not causing really long page load times ...


1

The differences are their semantic functions, and I recommend referring to the W3 HTML specification for details rather than 3rd parties. I suggest looking at the definitions in that specification for <em>, <i>, <b> and <strong> and using the one that conveys the correct meaning in each instance. In terms of SEO impact, the benefit ...


1

Would the Expires:-1 be the cause of why my number of visitors has dropped from average of about 3800 to 1300 No. The Expires header simply controls caching. A value of -1 (strictly an invalid value, which should really be in HTTP-date format) will simply be seen as "expired". So, users will always make server requests. Note that the Cache-Control: ...


1

Can html go in the ErrorDocument value internally in httpd.conf? Yes. HTML is just text and Apache appears to send this with a Content-Type: text/html header by default anyway. So, when this "text" hits the browser the browser renders it as HTML, even when sending a simple string of text. ...would apache accept html as text? As stated above, HTML ...


1

Crowded markup is advantageous these days for a couple of reasons: Anyone who wants to steal part of your code to make it their own will have a harder time doing so when all the HTML is crowded together as one instead of html with nice comments between blocks of code. The amount of bytes required for crowding your HTML is often less than that of pretty ...



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