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

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.

0
votes
0answers
11 views

Trigger an EVENT when an ELEMENT changes its POSITION on a page [on hold]

I really like the parallax slider on this site: https://www.peloton.com/#parallax How do I make an HTML-element trigger an event when the element gets scrolled to the top of a page? I mean, on ...
1
vote
1answer
31 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 ...
3
votes
1answer
58 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
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
63 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....
0
votes
0answers
8 views

CSS color for consecutive paragraphs [migrated]

Contained within a parent element (e.g., div, ul), I would like to set the color of a single paragraph, then have all subsequent paragraphs receive the same color -- until a new class of paragraph ...
2
votes
1answer
47 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>
0
votes
0answers
3 views

Why are sequential TABLE elements displayed on new lines in browser? [migrated]

I have 4 labels + radio buttons I want to display next to each other on the same line: +--------+ +--------+ +--------+ +--------+ | NONE | | NO | | Yes | | N/A | +--------+ +--------+ +--...
0
votes
1answer
25 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 ...
-1
votes
1answer
15 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-...
2
votes
1answer
18 views

How can I create a list with hyperlinks to files in my website automatically?

I'm a total newbie creating a website as a school project. If in my website I have a number of documents in HTML format inside a folder and want to create a list with hyperlinks to those documents (...
3
votes
1answer
51 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 ...
0
votes
2answers
37 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
0answers
12 views

Opening a pop up window automatically on the date mentioned in the function [closed]

I want it to remain open from the specified date onwards. This is the code I have. <script type="text/javascript"> function newPopup(url) { popupWindow = window.open(url,'popUpWindow','...');...
2
votes
1answer
17 views

Should itemprop be on innermost HTML tag?

I wonder if it makes any difference whether I markup an item on my site like this: <h1 itemprop="name"><a href="some-page.html">Joe Doe</a></h1> or like this: <h1><...
0
votes
0answers
10 views

Redirecting subdomain to new domain with all urls [duplicate]

I am in a big problem right now. I need advise from the experts out here: Old Website format - "https://a.bcd.com" New Website Format - "https://www.mynewwebsiteexample.com" I want to achieve two ...
0
votes
1answer
16 views

html use multiple tag in a tag [duplicate]

My code is : <article class="product"> <a href="#"> <h2>My product title</h2> <p>My product small description and text</p> <span>...
1
vote
2answers
41 views

How should menu links to the current page be handled for SEO?

I would like to ask, how you link to the current page? I saw href="#" method, I saw someone using href="./" and at another site, an item which represents current page does not have href. Which method ...
0
votes
0answers
22 views

My download link I crafted on my site does not work on new browsers yet follows standards

In an effort to serve excellent image files to only legit guests of my site, I needed to make PHP code. I narrowed the problem down to a few lines of code as follows: The first piece is a simple web ...
3
votes
1answer
40 views

Programmatically generating tags to mark content as paywalled

We are trying to implement the flexible-sampling feature to help the search engine to index paywalled content. The example on Google Developper is quiet clear but maybe to simple: https://developers....
1
vote
0answers
60 views

Correct HTML when translate website via Google Translate API? [closed]

When translating a URL (such as https://www.straatmakershop.nl/) via the free Google Translate tool (https://translate.google.com/) this often results in 'broken' pages. It seems Google is trying to '...
0
votes
1answer
29 views

Saving all images from a website in nested folders

I've been asked by my supervisor to save all of the images from a website for backup purposes. I've been given admin privileges to the site, and there are 132 images, spread across several nested ...
0
votes
2answers
59 views

How to combine multiple “Person” structured data in one HTML page?

Is it possible to add more than one Person structured data in one page? I have a website that shows search results for individuals' profiles, hence I want to know if it's possible to add structured ...
0
votes
1answer
51 views

How are the <!DOCTYPE> and <html> tags important for SEO ranking?

I'd like to compare the two sites: Site A: <!DOCTYPE html> <html lang=en_US> <head> Site B: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/...
1
vote
0answers
17 views

fonts.googleapis.com called before every heading - is this normal? [closed]

I'm seeing this behaviour in one of the websites I manage: <link href="//fonts.googleapis.com/css?family=Abril%20Fatface:regular" rel="stylesheet" property="stylesheet" type="text/css" media="all"...
0
votes
0answers
13 views

Can I add JSON-LD code to the body of my HTML page or does it need to be in the head? [duplicate]

Can I copy and paste JSON-LD (using Schema.org) into the head section or body section?
1
vote
1answer
37 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 ...
0
votes
1answer
327 views

HTML Links: noopener vs noreferrer [duplicate]

I am learning about the merits of including rel="noopener noreferrer" for external links. What is the difference between these two attribute values?
3
votes
2answers
70 views

Same link twice on the same page, which will be chosen?

As far as I know, two links with the same URL don't hurt SEO, Google will only see and consider the first one, and SEO benefits will be passed only to this. But what about, if I have two links, one ...
0
votes
1answer
144 views

Will using div tags around text rather than p tags hurt SEO?

I currently have a description at the top of my category pages (woocommerce) of the form <div><input id="post-1" class="read-more-state" type="checkbox" /> <div class="read-more-...
2
votes
1answer
44 views

Using mySql database data directly into generating articles for my website? (newbie, needs to know where to start))

Hi all I am fairly new to web development, I've made a couple of my own sites over the years with simple html tables and free webhosts. This time, I have decided to try to host my own site using WAMP ...
5
votes
3answers
74 views

What directory structure is typically used for domains and subdomains on a Linux Apache server

Although I've used MAMP and AMPPS before on OSX, simply for testing purposes, this question is about actual production websites on Apache servers. If I had the domain name www.example.com - if this ...
0
votes
1answer
29 views

Tags that can be added to drive organic SEO [closed]

Just working on a page template just wondered if there is any more useful tags/codes that can be added to drive organic SEO. We are planning to use Google/Bing Adwords, Google Merchant as well for ...
0
votes
1answer
22 views

How to replace thousands of old JS ad tags in a directory full of static html? [closed]

We're taking over another company's website and we plan on creating an archived version of their old site using wget to mirror the site into an archive.example.com website. Since there are several ...
3
votes
1answer
68 views

Will “dofollow” work for non-anchor tags?

I'm developing a SPA using Ionic, and for performance, UX, and indexing reasons I'd like to use <span> tags instead of <a> tags, as the latter doesn't work very well with Ionic's stack-...
3
votes
1answer
105 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 ...
4
votes
1answer
62 views

Effect resizing SVGs has on SEO

Does loading an SVG smaller than the original resolution have impact on your SEO? As example: index.html: <img src="test.svg" width="10" height="10"/> test.svg (original size: ...
1
vote
0answers
10 views

Weird response from website buttons [closed]

I'm building a website using html, css and JavaScript. I'm having issues with the buttons on my page, where I have to press them twice to activate them, after that they work fine. It appears that this ...
1
vote
0answers
10 views

RadioButton Onclick call a javascript file? [closed]

I am new to all of this as I am trying to learn. If I create a Javascript file(For organization) then have a button, when I click on the button, how can I call the Javascript file in my folders to do ...
0
votes
1answer
18 views

How would a client edit the website? [closed]

I am wanting to start creating websites for clients but am wondering on somethings. This one I do not know how to put into Google to get the results I want so I am asking here. I do HTML/CSS site ...
1
vote
2answers
57 views

How to get Googlebot to crawl my website faster to pick up my new meta description

I've tried to put an new meta description for my website, but when I look it up I get the wrong description. After some research I found out that I need Google to crawl my site. The cache:website ...
1
vote
1answer
26 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
16 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 ...
2
votes
1answer
101 views

Will adding spans for star ratings inside the H1 tag affect SEO?

If I add these span elements inside the h1 element, will it affect my SEO? <h1>PRODUCT 123456789 <span class="fa fa-star checked"></span> <span class="fa fa-star checked"></...
1
vote
1answer
347 views

Loading an external HTML file into another - does it have an affect on SEO?

I have my first web project which will approximately be 50 pages. Up until now I've just done 5 page websites, so if I needed to e.g. add a navigation link, I would just quickly type the code and copy ...
3
votes
2answers
85 views

Is it OK from SEO perspective to use input checkbox outside forms for showing and hiding a menu?

I would like to use clickable menu without JS on my website using just pure CSS for showing and hiding submenus. Just like this: https://codepen.io/Tont/pen/hdsev Funcionality of this menu is based ...
3
votes
1answer
60 views

Redirecting to subdomain, impact on SEO?

I've been working on a web platform project for a client, and we are nearing completion. Basically, the platform is a small social network for a specific group of people. Part of the specification is ...
1
vote
1answer
30 views

From where does Google take the descriptions shown in their search results?

I have a website which is structured like a simple blog - on the left side (so first in the HTML code) I have listed some blog posts. On the right side, a I have a column with things like website ...
0
votes
1answer
192 views

Will this hidden element be count as SEO Spamming? [closed]

As you know, search engine robots sometimes count invisible elements as SEO spam. I have a website that i want to improve SEO performance. I'm planning to make homapage as like below. Will this be ...