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.

0
votes
0answers
11 views

How to safely show untrusted webcontent? [on hold]

I don't want the webcontent to make any remote calls including loading images. But the functionality should not be affected as much as possible. For example, if it has simple java-script that does ...
0
votes
0answers
7 views

Make a container element with a CSS style rule so that it expands around its floated content [migrated]

I have to make a container element with a style rule so that it expands around its floated content. I've already coded the html part, but in the CSS I'm not sure what I'm supposed to do. #container ...
0
votes
0answers
3 views

Is the CSS [attribute=“value”] Selector unnecessary? [migrated]

I'm taking one of the edX classes on CSS and they've included: [class*='example'] { background-color: orange; } in the CSS stylesheet. Not familiar with that type of an attribute, so I looked it up....
0
votes
0answers
17 views

I want to ask for all possible HTML meta/link or any other tag/s to influence the browser windows default appearance [closed]

I want to ask you that is there any HTML meta/link to customize browser default look and feel. It does't mean to influence document but browsers itself appearance. I know some of which work on Chrome ...
0
votes
2answers
10 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
1
vote
1answer
24 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"...
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
8 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. ...
0
votes
0answers
13 views

Anchor not working – can't find why [migrated]

Here https://glueckundsegen.de/stammbuch/ (I've included the url, since I expect that maybe the problem is not in the code snippets below) is a red button saying "Mehr erfahren" thats like "more .....
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
32 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 ...
1
vote
2answers
39 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,...
1
vote
0answers
64 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
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
74 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>...
3
votes
4answers
63 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
1answer
22 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
2answers
41 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
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 ...
1
vote
1answer
60 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 ...
3
votes
2answers
88 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 ...
1
vote
1answer
51 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
80 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,...
1
vote
1answer
30 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 ...
1
vote
1answer
35 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 ...
5
votes
1answer
121 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
27 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 ...
3
votes
1answer
100 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
35 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....
3
votes
2answers
556 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
1answer
30 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
30 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
20 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
98 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
53 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
13 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
22 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
1answer
18 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
45 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
28 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
49 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
150 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
32 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
234 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
112 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
22 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
14 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?