Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [html]

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
1answer
27 views

Loading multiple pictures as sprites?

I've read it's a good idea to combine images as sprites (and use background positioning) to have less dns lookups and therefore speed up your site. But it seems all the images are loading ...
0
votes
2answers
207 views

<h3> vs. <strong> (for FAQ's)

We are in the process of publishing FAQ's on our website. For this I am creating the templates and ask myself the following question: What tag should I use for the questions? I've chosen <strong&...
2
votes
2answers
37 views

How should I correctly use the <meta name=“author”> tag?

Should the author tag be the author of the content of the page, or the author of the HTML (if these were different)? The spec (w3/moz) doesn't help to clarify for me. (I appreciate it may have no ...
0
votes
0answers
11 views

What is the correct URL for the second RSS feed? [closed]

We have a general RSS feed that is accessible with http://www.example.com/rss.xml that contains all published pages. We have another RSS feed that we need to filter by page type and it will only ...
15
votes
3answers
3k views

Order of HTML meta tags

A SEO company suggested we change the order of our HTML meta tags so that <title> and <meta name="description"> are the first two. They say this is to ensure search engines can utilize ...
3
votes
2answers
362 views

Is using nested spans in HTML 5 valid?

Is it standard in HTML 5 if we use span in span? <span class="fake-input"> <span id="fake-input"></span> <span id="deftext">No file selectedspan</span> </span>
1
vote
2answers
28 views

Why does the SDTT tell me that the image field is missing?

I created a recipe on Drupal 8. When I test my page with Google Structured Data Testing Tool, it tells me that the image field is missing: Yet when I open the link of the image in my internet browser,...
0
votes
1answer
885 views

If H1 tags are not used for page titles, what is the impact on SEO?

I'm wondering what kind of effect will be witnessed on SEO if, say, a div was used rather than an h1 tag for page titles. I imagine it would be very frustrating for screen readers and wouldn't give ...
20
votes
7answers
4k views

How do I add a favicon to my website?

What markup is the modern standard for adding a favicon to my site? What is the standard image format and size?
1
vote
0answers
35 views

Is email obfuscation still helpful in 2019? [closed]

Historically, even simple tricks would prevent mailto: links from being harvested by web crawlers, but I'm curious to know if modern bots are too advanced to be beaten. Is the effort to obfuscate ...
1
vote
0answers
33 views

generating part of html with javascript to increase the page loading speed

I've got picture gallery on my website that contains few hundreds of images. These are miniatures that are enlarged when have been clicked. The images are well optimized (they are compressed using one ...
1
vote
1answer
34 views

Does Fetch as Google have a charchters / lines limit? And does it matter?

I have a test page with text only. No JS. No CSS. Just the html, head, body and p tags and a lot of lorem ipsum text. Now when I try to use Fetch as Google tool, the HTTP response is cutted at the ...
1
vote
1answer
91 views

Best element to use for simple anchoring, avoiding potential SEO penalties for lack of content and purpose of the element

Firstly, an introduction to why the element is necessary I have a need to compensate for a fixed top navigation bar in my anchors. For example, if I let my users navigate to a section like #comments ...
3
votes
2answers
240 views

Server side include (SSI) directives work in index.html but not in files in a sub-directory

I was wondering if someone could explain/have a solution for why my SSI's do not work if the file I'm including is back a directory. e.g. index.html gallery/pictures.html ssi-files/navigation.html ...
1
vote
2answers
26 views

HTML SEO: “alt” text attribute for related photos

If I have a photo gallery where each photo in the gallery has a mini-feed of 'related photos', should the alt text of these related photos describe these related photos or should they describe the ...
3
votes
1answer
2k views

Questions about editing a site created in Adobe Muse by someone else

A client came to me with an existing site created in Adobe Muse by another developer. They had exported the site to HTML so I could post the files to the client's new hosting account. Now the client ...
1
vote
1answer
22 views

Getting the same site to show with a different domain extension in Google

We have one site: sitea.co.uk We also own the domain: sitea.com (redirects to sitea.co.uk) We want US visitors to see sitea.com both in the browser and in Google when searching for our company ...
3
votes
4answers
59 views

Google showing dynamic page title set by JavaScript rather than the static title embedded in the HTML

On my website the title is initially set through the title tag in the html served by my server. It is then changed to its dynamic equivalent through JavaScript. I want Google to show my website's ...
1
vote
0answers
17 views

Browsers load actual website from external server and keep in cache [closed]

So, currently, I'm using 000webhost to host my website, but they only allow 1000 MB to store all the files for my website, which IMO is a little small. So, what I want to accomplish is something like ...
3
votes
1answer
69 views

Can I use <icon> element in HTML5? It fails the W3C validator

When I go to the W3C validator service, to try out if it complains about using an <icon> element, with this example: <!doctype html> <html lang="en"> <head> <title>...
1
vote
2answers
39 views

Does having a <span> tag around a portion of a word hurt SEO?

If I do <h1>H<span style="font-size: 12px;">ello</span> W<span style="font-size: 12px;">orld</span></h1> Will search engines read it as "Hello World"? Will this ...
1
vote
1answer
20 views

How many internal links does Googlebot care about per page?

I read somewhere something like this: Penguin (Google algorithm) indexes (cares/reviews) only the first 5 internal links in the DOM from the top. I that true? You know, I have a "related posts ...
1
vote
1answer
45 views

What's the SEO cost of rel=canonical references leading to redirects?

On www.ubuntu.com we recently started including rel="canonical" tags on every page by default, following Google's recommendation. However, as you can see on e.g. https://www.ubuntu.com/cloud, the ...
8
votes
3answers
11k views

What is the difference between “nofollow noopener” vs. just “nofollow”?

I use the WordPress plugin Ultimate Nofollow to easily make links as nofollow. So I expected that plugin will add rel="nofollow". But it added rel="nofollow noopener" Is there a difference between ...
27
votes
8answers
19k views

Preventing robots from crawling specific part of a page

As a webmaster in charge of a tiny site that has a forum, I regularly receive complains from users that both the internal search engine and that external searches (like when using Google) are totally ...
-1
votes
0answers
11 views

noindex for a piece of a text [duplicate]

I have a piece of text in the homepage of one of my websites that I don't want Google to scan at all --- I don't want it to effect the SEO in any way. I can upload it as an image but it's not a good ...
1
vote
1answer
57 views

How can I use canonical tags to resolve duplication between the home page, category pages, tag pages, and article pages?

On my site I have something like little blog (PHP and MySQL dynamically loaded posts), with categories like "life", "business", and "health". Each article has added tags. Tags allow to find articles ...
0
votes
2answers
51 views

Will random text and links hidden by CSS around our content to prevent it from being crawled and parsed prevent Google from indexing those pages?

I have a Q/A website which is lunched for about 3 months. I don't know why the single pages will not be indexed in the google. For example when I search for جهت مستفیض شدن از ماه محرم, I will see the ...
1
vote
2answers
270 views

Why doesn't <link rel=“alternate” … /> work with <base href=“…” /> in structured testing tool?

Is there any good reason why using <base href="https://example.com/"/> causes structured data testing tool (SDTT) errors to fly from alternate links such as <link rel="alternate" href="this....
3
votes
3answers
666 views

Importance of 'href' attribute within an <a>

I am aware of the 'content is king' seo rule, but I'm also wondering whether empty <a> HTML elements is a relatively big downside regarding SEO. To be more precise and actually cut to the chase,...
3
votes
2answers
80 views

SEO method to set page titles differently? (same header PHP)

My PHP-based site files start off with <?php include("PHP/header.php"); ?> which includes all the HTML (metadata, scripts, etc.) shared by every page - along <head> and <title>. The ...
2
votes
2answers
13k views

How to add a prefix to my domain name?

How do I add something like 'www.CI.domain.com' or 'www.SOMETHING.domain.com' I am pretty sure its probably something to do with my DNS but how would I get it to point to that specific page? ...
1
vote
1answer
46 views

GTmetrix complains of un-optimized images in responsive design

The website GTmetrix is giving me low score on "Optimize images" for the following reason: On my main page I have 4 columns with images. Each column takes 25% of the screen resolution so on my ...
0
votes
1answer
75 views

What if to load duplicated blocks e.g. header and footer by JS

If we use static site generators (SSG) and edit some block duplicated on many pages e.g. header or footer, we need to regenerate all the HTML pages using this block. Regardless of the speed of our SSG,...
5
votes
1answer
93 views

Will it hurt SEO to remove the '.html' extension from static pages such that they get served as 'text/x-generic'?

If we want to go with static website, we generate static html files of pages with names like contacts.html and we may add to our .htaccess file the lines like RewriteEngine On RewriteRule ^(([^/]+/)*[...
1
vote
1answer
26 views

How to markup with Microdata a “table of contents” and “embedded content” for a PublicationIssue?

Suppose I have a PublicationIssue of a Periodical, and I display a webpage with a ToC/summary with a list of Articles and a file document embedded with an iframe. The issue content is not coded on the ...
4
votes
1answer
2k views

A large image placed at top of page causes page-speed insights to complain

I made a site that's basically a site asking people to vote for a person and the first page mostly shows a picture of a person which is what the site is about. Most of the text is underneath and ...
1
vote
1answer
33 views

“Under construction” pages and multiple canonicalization tags

My website has a few pages that are still "under construction" and I want to go online. What is the best practice to redirect all HREF links to a common "under construction" page? Can it be done ...
-2
votes
4answers
39 views

Is there a special tag I can add to my page to describe the content to web crawlers?

My page is based on HTML and I need to submit it to Google Webmaster Tools and To Bing. I know how to give short description about my page. So that it easy to crawl my page, there is lots of HTML ...
3
votes
1answer
94 views

How to hide HTML tags from SEO spiders

I understand and know how hiding things from your website works and how the search engine spiders will still be able to ¨see¨ this hidden element and penalize your website for it. Thing is, I did not ...
1
vote
1answer
2k views

how/when to use meta reply-to tag?

I was exploring meta tag and came across reply-to attribute. Can someone please give me an example of how to use it ? Also, is it recommended to use that attribute ?
32
votes
3answers
11k views

Is the title attribute (not tag) important to SEO?

The title attribute is an HTML standard element available across most tags. e.g. <li><a title="Widgets listed by household function" href="/widgets/by-function.html">by Function</a&...
1
vote
0answers
26 views

html file fails once loaded [closed]

I'm encountering an error that i can't figure out. I have some html files that I open perfectly withthe browser (falkon) on my pc. But, once i upload them to the website, they give me Internl Server ...
2
votes
1answer
88 views

How much critical CSS can be inlined before there is a negative performance impact?

I've heard that to avoid render-blocking issues, it's good to inline critical CSS directly in the <HEAD> tag by including the actual CSS in <STYLE> tags, and then load the rest of the CSS ...
4
votes
1answer
34 views

How can I meta tag properly in a CMS where every page has the same <head> code?

I'm helping someone update their website with code similar to this <title>keywords | brand</title> <link rel="shortcut icon" type=" "/> <link rel="canonical" href="http://website....
1
vote
4answers
2k views

Are there any snippet software app for windows user? [closed]

I'm a web designer, and I'm used to collect snippets of code I find in the internet. I found snippely as a great snippet app but it doesn't have export or import features when I'm going to different ...
2
votes
3answers
3k views

Is it SEO safe to embed the H2 or H3 tag in a hyperlink element?

I'm making a new layout for our website, and I want to make a list using the unordered list tag (ul) to show our offers. But because of our design I would like to use the h3 tag into an a element. ...
0
votes
1answer
28 views

Form submission without page refresh

I have a form and the details gets updated after submitting it and the page refreshes after that automatically and the details of the form will be shown at the bottom of the form. That means all the ...
3
votes
0answers
99 views

How do I get the Structured Data Testing Tool to ignore template elements?

I’m using Web Components to build a site, and one of the biggest features is my use of the <template> element. Here’s an example: <ul> <template> <li> <div ...
-1
votes
1answer
22 views

How to do an accessible and SEO-friendly image header?

given these two classes (which I've copied from bootstrap 4.1.3): .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-...