Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
HTML (HyperText Markup Language) is the predominant markup language used for creating web pages. In modern web pages, HTML is used to markup the contents of the website, while CSS and Javascript are used to define the styles and behaviors respectively.
2
votes
I want an image and link to only show to people located in USA and Australia on my website, ...
You can roughly target people by nationality by checking their browser setting in JavaScript:
if (navigator.languages.includes("en-US") ||
navigator.languages.includes("en-AU")) {
// show the …
2
votes
How to create a html file offline with app cache
App Cache is deprecated.
I recommend you look into its successor, Service Workers.
Here's an example for doing an offline page:
https://googlechrome.github.io/samples/service-worker/custom-offline-pag …
1
vote
Is an HTML only website a problem for SEO?
I'm assuming that your website must be focused entirely around static text content, like a blog. That type of website doesn't need any special treatment to be readable by web crawlers. I would expect …
2
votes
Does it matter if blockquotes contain quote characters for SEO or accessibility?
In terms of SEO, this should make no difference whatsoever.
Search engines rank content based on many factors, but whether the content is wrapped in quotes is not something that matters.
3
votes
HTML SEO: “alt” text attribute for related photos
According to MOZ, alt text describes an image for bots and the visually impaired:
If you can close your eyes, have someone read the alt text to you, and imagine a reasonably accurate version of the i …
1
vote
Accepted
How many internal links does Googlebot care about per page?
According to Yoast there is no limit for internal links, and the main rule of thumb is to just make sure they are relevant to the user:
As long as your links are useful for your users, it’s okay. The …
1
vote
Accepted
Loading multiple pictures as sprites?
Image sprites used to be more relevant back when HTTP/1.1 was the standard, and each HTTP request was done using a separate TCP connection. TCP connections have a lot of overhead, relatively speaking, …
18
votes
On what specific grounds were HTML Imports rejected, deprecated and removed?
After reading several articles on this, the general consensus is that HTML Imports were redundant, since you need JavaScript to bring them alive anyways (they don't just automatically add themselves into … From the article that @Bronwyn linked:
As previously stated, Mozilla is not currently intending to implementing HTML Imports. …
3
votes
When is "async" useful for loading scripts into a web page?
The async attribute is useful for a script that:
Doesn't depend on whether the HTML is fully loaded
Shouldn't block the HTML
Yet should still be executed ASAP
A perfect example of this is an analytics …
20
votes
Accepted
How much critical CSS can be inlined before there is a negative performance impact?
For the speediest page, all of your HTML code from the first byte up to and including the critical CSS should fit within this amount of data.
14.6 KB is the size of an HTTP server's initial TCP congestion … So if the beginning of your HTML - up until the end of your critical inlined CSS - is less than 14.6 KB, that is optimal. …
2
votes
Accepted
GTmetrix complains of un-optimized images in responsive design
The best way to optimize page performance yet serve high-res images to high-dpi clients is to use the img srcset HTML attribute, like this:
<img
srcset="
/img/image4x.jpg 4x,
/img/image3x.jpg 3x, … More info:
https://html.com/attributes/img-srcset/
https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images …
1
vote
Google showing dynamic page title set by JavaScript rather than the static title embedded in...
The only solution that will not hurt your SEO is to prevent your JavaScript from changing the page title for that particular page (perhaps with an if statement as Warren mentioned).
A good rule of th …
1
vote
Accepted
Question on search engine optimization for nodejs website
It's true that this makes your content not indexable.
The general solution for this is to design a system for deep linking, where someone can share a link to a specific resource on your website (this …
2
votes
Should I change the 'preconnect' URLs from href="//" to href="https://"?
Do you end up loading those resources over HTTPS later in your document? If so, I believe the protocol-relative URL might actually be an antipattern here. If your page ever gets loaded over HTTP, then …
1
vote
Accepted
Google page title not matching html <title> tag
Check Google's cached version - you can see that "<no title>" was actually the title of your page at the point it was crawled in June:
<title><no title> — Machine Learning from Scratch</ti …