Stack Exchange Network

Stack Exchange network consists of 175 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.

1
vote
1answer
20 views

Google Analytics doesn't track events, everything else is correctly tracked

I've set Analytics for my new landing page. Everything works correctly( real-time data as well) except for Events tracking. Actually, this is the first time I'm working with Analytics Events tracking,...
0
votes
1answer
24 views

Is an H1 tag that contains a style block with CSS as well as an image with alt text Google-friendly?

Here is how my website's H1 tag shows up in the Moz tool (or any other SEO tool I used so far): The website is build through Shopify platform and Shopify says it's perfectly fine but I have my doubts,...
15
votes
5answers
75k views
0
votes
0answers
4 views

Build a website that returns input [closed]

How to build a webpage that returns input from the user to the server using HTML CSS and Javascript?
1
vote
1answer
30 views

Getting Gravatar to appear in email Inbox

I have created a Gravatar for my email address for my business website through the Gravatar Website (gravatar.com). I have done some reading and understand that this gravatar should appear in peoples ...
0
votes
0answers
3 views

Complicated AJAX update with two select elements [migrated]

I have a form with two select elements where users can select a product variant (for example red, green, blue shirt) and the quantity. When changing the variant/quantity, I do a AJAX request to get ...
0
votes
0answers
11 views

My JQuery button won't work on Macbook (Safari) or IPhones (Safari!!) [closed]

I have a button that uses Ajax and JavaScript to send info to the database. It works fine on Chrome and on Android (my Galaxy Note 8). But the weird thing is, I used the exact same syntax (but ...
49
votes
8answers
49k views

Anchor tag inside <h1> or <h1> inside anchor tag: which is better?

I am trying to use <h1> tags on my blog for the post title and came across one problem. Title is hyperlinked. Case 1: <h1> <a href=""> xyz </a> </h1> case 2: <a ...
1
vote
1answer
194 views

Replacing trivial <h2>s with <div role=“heading”>s for SEO?

In the structure of my upcoming website, there will be multiple level 2 headings inside the master header. An example can be seen below: <header id="banner"> <h1><a href="">My ...
0
votes
0answers
15 views

What's the purpose of HTML headings? [duplicate]

Please clear this thing up for me. What is the purpose of HTML headings (h1, h2, h3 tags etc)? Is it to let the search engine know what content is important on the page... OR to show what is the ...
2
votes
1answer
21 views

Combining RDFa Lite author schema and rel=“author” HTML markup

Is there any way to retain the HTML rel part of the below snippet: <body vocab="http://schema.org/" typeof="AboutPage"> <address property="author" typeof="person">Contact <a rel="...
0
votes
2answers
51 views

How can I determine where a login form is submitted?

I want to write a program which will log in to squareup.com. So for this I need to know where the form is located and to where is it submitted. So the form is located at https://squareup.com/login, ...
1
vote
1answer
30 views

Can you put all the text in a static tag for SEO but completely re-write the page with JavaScript?

Can our website used the trick: putting all SEO data in some tag, but rendering all the web page elements with JavaScript? How would that work for SEO? May be like: <div> <a href="/about"...
3
votes
2answers
190 views

Math to create web design grids?

I have my own grid layout, and I am creating multiple column designs for a website. Is there any formula I can follow to create different column designs with identical gutter space, ie. margins? Most ...
3
votes
1answer
21 views

500 error after migrating from Easy Apache 3 to EA4 on Centos6 VPS

I made the mistake of clicking the button in WHM to migrate from Easy Apache 3 to EA4 and now I am receiving a 500 error when I try to visit my site. What have I broken and how can I troubleshoot the ...
9
votes
8answers
3k views

Can anyone recommend a good HTML 5 book?

Specifically about canvas. I have been looking around for a few good one.
5
votes
1answer
70 views

When an attribute value ends in a slash, can I omit the quotes? It looks confusing when the trailing slash is next to the closing angle bracket

I have been thinking about this case: You want to use canonical on page A directing to example.com/: <link rel=canonical href=example.com/> If I wouldn't use quotation marks like that, could ...
15
votes
4answers
15k views

What is the purpose of leading slash in HTML URLs?

I have noticed that some blogs posts have links using a value starting with / in the href. For example: <a href="/somedir/somepage.html">My Page</a> Does the leading / mean the path is ...
0
votes
2answers
23 views

How to add google structure data in Blog Post?

I want to add Google structure data in WordPress Blog posts, pages. Where i need to place Structure data (in body or head section)? What is the correct schema structure for Posts or pages? Thanks
5
votes
2answers
2k views

How can I serve all resources under HTTPS instead of HTTP without changing their URLs in the HTML code

I know that by using an .htaccess file I can redirect everyone to https://. However, my SSL certificate complains if all the content isn't served under HTTPS. Is there a way to convert all the ...
0
votes
1answer
23 views

What is less bad for SEO: to have a <section> with no heading, or to hide the heading with CSS? [duplicate]

I have my document outlined in several <section>s, but according to the spec The theme of each section should be identified, typically by including a heading (h1–h6 element) as a child of ...
2
votes
0answers
9 views

How to include a link in email that opens an Android app if available, but opens the website if not?

In HTML code for an email is there a way to have a fallback URL when a primary URL cannot be handled? For example: Open app when using Android Open website when clicking on it on a desktop I know ...
1
vote
1answer
23 views

SEO impact of usage of many spacers/formatters/… class in HTML instead of in css static file

We're working on redesigning our full website, we have a critical impact on our business from SEO. We are trying to use a lot of formatters, spacers, etc classes from SASS like suggested by bootstrap. ...
1
vote
0answers
24 views

reason for wrapping an anchor in a form?

This is one of those "found in someone else's code and wondering what they're thinking" questions... The HTML being generated is of the form <form method="post" action="#"> <a href="?...
2
votes
1answer
33 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
265 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
42 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 ...
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
848 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
42 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
894 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
117 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
36 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 ...
2
votes
1answer
37 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
97 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
333 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
27 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
23 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
71 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
18 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
79 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
45 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
24 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
47 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
13k 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 ...
28
votes
8answers
20k 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
vote
1answer
64 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
56 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 ...