Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

Keep symbol and text on same line? [migrated]

I've got this and it's not working <div class="header"> <img src="./images/3d-graph-model.png" style="padding: 15px 0px 22px 0px" alt="3-d graph" ...
user avatar
  • 123
-1 votes
0 answers
18 views

Hey! I'd like if you can answer those three simple questions of... (Don't know how to describe that) [closed]

Should I add an a tag before the href? - I have target and href, where put the a tag? - <target="_blank" href="/"> Should I add an a tag before any href in my code? Should I ...
user avatar
0 votes
0 answers
23 views

Is there a term in web development for when text in input fields automatically scrolls leftward while typing beyond what there is room to show? [closed]

I would say “truncation” but that occurs on the right side with ellipses at the end.
user avatar
2 votes
2 answers
45 views

SEO-friendly duplicated (decorative) text

is there any "SEO-friendly" way to show a page title like below? It's easy to implement with an HTML code like this: <h2>Sample Title</h2> <span class="shadow">...
user avatar
1 vote
1 answer
21 views

Display last modification date for non-Wordpress website in Google Search results

I have a simple HTML+PHP website. Google prefers the fresh content in my niche .. but I don't know how can I tell google the published date or the last modified date of any page on my website. I ...
user avatar
0 votes
0 answers
20 views

Why can I use Google web fonts in CSS without an Internet connection or them being installed locally on my computer?

I used a Google font for my website, which isn't stored locally on my computer. When I refresh the page, nothing goes wrong and the font is working fine. However, when I disconnect my Internet ...
user avatar
0 votes
0 answers
11 views

Looking for web hosting with specific properties [duplicate]

I tried to search google and spent many hours trying to figure out whether are web hosting options with the following properties: A shared web hosting. Not a dedicated Server. PHP 8 or above. MySQL 8 ...
user avatar
2 votes
0 answers
17 views

Start hosting with firebase

I made a new firebase project and web app, and i want to use firebase hosting on it. I have a directory set up on replit with html, js, css, but how do i host it on firebase? I have tried looking at ...
user avatar
0 votes
1 answer
21 views

Refused to execute inline script with Comodo Trust Seal

I'm trying to add the Comodo Trust Seal on my site but it gives this error in chrome: Refused to execute inline script because it violates the following Content Security Policy directive: "...
user avatar
0 votes
0 answers
19 views

Should I use the "nofollow" attribute for external links (for more link juice)? [duplicate]

My main question is: Should I use the "nofollow" attribute (rel="nofollow" inside links)? My aim, of course, is to get my pages on my site better ranked by Google. So what are the ...
user avatar
2 votes
0 answers
26 views

What's recommended size for HTML(page) response

Consider following example: https://www.gnu.org/software/make/manual/make.html https://www.gnu.org/software/make/manual/html_node/index.html 1 is whole document in single html with large html ...
user avatar
  • 205
2 votes
1 answer
55 views

Can page text HTML structure big change affect on ranking?

On my website I use Wordpress and WP Bakery Page Builder plugin to construct my pages. I want to switch from WPBakery PageBuilder to Gutenberg editor. This will change the text HTML structure. Will ...
user avatar
  • 105
0 votes
1 answer
45 views

My website's image does not work with twitter cards (unclear issues with robots.txt)

Problem I am trying to properly set up metadata for a twitter summary card on my website. I have everything in place, but the card image is not showing. I use Grav, but I guess it does not matter. ...
user avatar
  • 188
1 vote
0 answers
11 views

hreflang sitemap with multiple language-region

i have 2 sitemaps only usage for template purpose, and use 2 sub-directory English(also other lang) and China with same contain. en-sitemap with 15urls (EN sub-directory), the contain like follow: ...
user avatar
  • 11
2 votes
2 answers
81 views

Having multiple keywords separated by comma in the title of the page?

I want to target multiple keywords with same piece of content (I am thinking to add multiple keywords separated by commas in title and description of the page). So, is it the right approach or I am ...
user avatar
1 vote
1 answer
53 views

Does onclick animation affect SEO?

We want to build the website with mind-blowing animations, but SEO is also important for us and I am wondering about the SEO effects in the case of CSS and JS animations. Let's say we want to build ...
user avatar
3 votes
1 answer
72 views

Is Largest Contentful Paint (LCP) measured only above the fold?

A lot of sources mention that LCP is measured only above the fold, and stops measurements after a user action like scroll or key press. Though, I am able to get LCP for an image which is lazy-loaded ...
user avatar
0 votes
1 answer
38 views

Will it affect SEO to use one header and footer file or copy the code in every page? [closed]

I want to create a static website. All of my pages have same header and footer. Should I have a single header/footer file and include it in my pages? OR should I reuse the code in all pages? Will any ...
user avatar
  • 11
1 vote
1 answer
50 views

How can I have either php or html file running - whichever exists

I have these two rules and they appear to be working. How can I combine them into one rule #Force hmtl extn RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html -f RewriteRule ^(....
user avatar
2 votes
0 answers
26 views

Gatsby View Page Source not showing HTML

I'm trying to get my HTML code to show on view page source for SEO purposes. When I visit another Gatsby website, such as https://afsp.org/ for example and look at the view page source, and you try ...
user avatar
2 votes
0 answers
10 views

How to whitelist page from Google Mobile Usability issues check?

My site has a page that admittedly only looks good on desktop. How can I tell Google Search Console "Thanks for the Mobile Usability issues warnings, no need to tell me again about this ...
user avatar
3 votes
1 answer
31 views

What would be the proper rel value for an api endpoint?

I need to expose an API endpoint in the html documents, so I can later do client-side rest calls (for search and/or subsequent pagination). As the JS needs to stay agnostic of config files, I suppose ...
user avatar
  • 697
3 votes
1 answer
47 views

naming HTML anchors

So I'm probably overthinking this, as I do with everything. But I'm just curious to what others think. In general, naming a HTML anchor link should be short and related, but if you have a table of ...
user avatar
  • 83
2 votes
1 answer
32 views

I am unable to view the contents of my website which I deployed on Firebase

I deployed a simple website (made using only HTML and a bit of CSS & JavaScript) which only contains a button. After the deployment I ran the project by copying the given domain on the web browser ...
user avatar
1 vote
1 answer
44 views

How to cache the html file of redirected website

I have a website A whose content gets updated every minute(Its content is related to stock price). However, because displaying the content of website A requires expensive computation, I want to create ...
user avatar
1 vote
1 answer
54 views

Core Web Vitals - Field data difference Mobile vs Desktop

I am observing a strange problem related to Core Web Vitals, I have same website for both mobile and desktop(same server/same page/same DOM size) but I when I look into search console I get different ...
user avatar
2 votes
1 answer
33 views

Can I create a custom 404 page with a parameter value?

I have a very basic website https://myappname.example with only a home page that allows users to go and download my app from Apple store or Google play. I have a use case when user can click on ...
user avatar
4 votes
1 answer
111 views

Core web vitals - LCP is being recounted on element outside viewport

I have been trying to control LCP on my website but unfortunately a strange phenomenon is continuously occurring, An element which is not in viewport is considered to be an LCP. Opposite to that ...
user avatar
3 votes
1 answer
35 views

Should I change the 'preconnect' URLs from href="//" to href="https://"?

In order to speed up the load of my webpages, that use ads from Google Adsense, I'm considering to modify the following 'preconnect' directives: <link rel="preconnect" href="//...
user avatar
  • 423
2 votes
2 answers
54 views

My website has been cloned without authorization. What can I do?

I have the following problem: I operate an online service and about 2 months ago a Copy Cat clone appeared under a strange domain unknown to me. My portal is simply mirrored/redirected to another ...
user avatar
2 votes
1 answer
41 views

How should canonical and alternate links be defined?

I'm afraid I couldn't understand the information available about this feature. A canonical link should be the "canonical" or "preferred" version of a web page. An alternate link ...
user avatar
  • 21
2 votes
2 answers
62 views

Why is google search console misreading my URLs and sitemap.xml?

I have a very stranget issue on my site with Google Search Console. I've added my sitemap here: https://formulastocks.com/sitemap.xml which links to 2 other site maps: https://formulastocks.com/...
user avatar
2 votes
1 answer
69 views

Are H1, title, and meta tags mandatory on a 404 error page?

404 error page is not used to enhance SEO (see: https://support.google.com/webmasters/answer/2445990), so does it really necessary to have the H1 tag, a page title, a meta description, and a ...
user avatar
4 votes
1 answer
328 views

Does it make sense to host media on a .onion site on the darknet, or can I link to lightweb as well?

There is a resource on the light web (normal Internet), hosted on multiple servers and subdomains. Let's nominally call servers A (main, with code) and B (auxiliary, with photos and videos), and the ...
user avatar
  • 121
2 votes
1 answer
77 views

How JSON works in HTML Script Tag regarding SEO Search availability?

I know this topic already all over the forum. But still, I'm confused if there is no exact example of what they mean with dynamic render using Javascript. so here is the background of my question: I ...
user avatar
1 vote
0 answers
25 views

Reviews and E-A-T: 3rd party aggregators vs. self managing vs other options?

One of my clients is a hotel chain and I've recently recommended to implement reviews from their customers in their hotels' landing pages. The developer I work with usually picks the (good) reviews ...
user avatar
1 vote
1 answer
39 views

Use in the breadcrumb article tag

I'm using the breadcrumb inside the article tag, would that be a good use? let me give an example <article> <nav aria-label="Breadcrumb"> <ol> <li><a href="/&...
user avatar
  • 109
0 votes
1 answer
27 views

Include a URL is in the page so JavaScript can access it without users viewing it

I have a media URL in each page from my database. I play the media with JavaScript code and I have to include it in my page so the JS cat get the media URL and play it. Is it OK to include the URL in ...
user avatar
3 votes
3 answers
84 views

Is an HTML only website a problem for SEO?

I consider to build a website without any JavaScript/CSS. I want it to be the most light weight a website can be ever. Only HTML. There won't be any images, videos, audios, embeddings, iframes or ...
user avatar
5 votes
2 answers
791 views

Domain names mirroring my domain except for small details

I am just an amateur web editor and have had a non-commercial personal website www.mysurname.example with useful technical tips and culture content since 1999. I code my web pages directly in HTML and ...
user avatar
  • 173
1 vote
1 answer
118 views

sitemap and canonical url for website that has only one page: "index.html" hosted using GitHub Pages

I have the almost same question as this: How do I correctly add index page to xml sitemap - do I need a canonical expression? But I am confused with the accepted answer, as for my case, the website ...
user avatar
  • 13
2 votes
1 answer
57 views

Does noreferrer or noopener impact SEO [duplicate]

I was wondering if the html attribute tag noreferrer or noopener had an impact on my google SEO, and if yes, how?
user avatar
4 votes
2 answers
81 views

Does inserting meta elements into the <head/> using JS effect SEO?

I am developing a static HTML/CSS website I have multiple meta tags I add to the head on each page. As it stands currently whenever I want to change the meta information I need to manually update each ...
user avatar
  • 143
2 votes
2 answers
99 views

Why should we use semantic HTML5 elements such as header and footer instead of div?

I'm designing a website, but some websites use semantic HTML5 tags like <header> or <footer> instead of div. My question is, why do they use them like this, is there any harm in terms of ...
user avatar
2 votes
1 answer
75 views

In terms of SEO, what are the implications if you mix h1, h2, etc with role="heading"?

In terms of SEO, what are the implications if you mix h1, h2, h3, etc with role="heading", if any? For example: <div role="heading" aria-level="1">Header 1</div&...
user avatar
3 votes
1 answer
214 views

Figure or Div, which should I use?

I'm designing a news site. I use thumbnails of news on the homepage. Should I use the div or figure tag for them? Sample figure, <a href="/news_url"> <figure> <img src="...
user avatar
  • 109
3 votes
3 answers
377 views

Which one is the correct way to use h1 tag?

In a website that provides content which is divided into parts, what is the more correct way to use the H1 tag? <div class='header'> <span>Episode 2</span> <h1 class='large'&...
user avatar
  • 141
3 votes
2 answers
90 views

Display SEO-friendly musical chords above text in HTML

I'm currently rendering guitar chords above lyrics on my website like this: span.chunk { position:relative; top: 15px; display: inline-flex; flex-direction: column; vertical-...
user avatar
0 votes
1 answer
26 views

<title> tag and favicon aren't correctly showed by Google Search [duplicate]

I'll go straight to the point. For a few days I've been working on the SEO on my website and I noticed that the favicon still isn't showed by Google Search and that the <title> tag is showed ...
user avatar
3 votes
1 answer
72 views

Understanding role="complementary" attribute and <aside> tag

In MDN the documentation for ARIA: complementary role says: The complementary landmark role is used to designate a supporting section that relates to the main content, yet can stand alone when ...
user avatar

1
2 3 4 5
28