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.

3
votes
2answers
147 views

SEO: h1 & h2 - what should go into them?

I am still not quite sure today what should I put in H1 and H2 for SEO. For instance, should my site title be H1 and my article title be H2? <head> <title>My First Post - Another ...
1
vote
1answer
825 views

defer img loading / CSP: allow embeded img

My website is defering some img loading by setting the img src value by JavaScript (from the img data-src value). In order to have still valid HTML as long as the URL is not set to img src, I am ...
1
vote
1answer
30 views

Is it good for SEO if I attach a picture on my Tumblr text post using HTML?

I have a Tumblr blog and I'm using a custom domain for the Tumblr blog. For blogging I need to add images in my text blog. If I use <img src... HTML code to attach a picture, will it refer to my ...
1
vote
1answer
203 views

Div changing css style using chrome develop tools not working? [closed]

I'm trying to change the CSS settings of a webpage, so it fits my use. Below, as seen, that extended display a div width of 1200. The HTML code and css looks like The HTML code and css looks like I'...
4
votes
1answer
81 views

Simulation of text-writing, what is the best way for SEO to allow the written text to be crawled?

For a client's website, I made a script that simulates typing and deleting of text. The client can enter the text himself, using [verwijder]-tags (which means 'Delete' in Dutch). See the demo at ...
0
votes
0answers
28 views

How to make google ignore HTML text [duplicate]

I've been using a bunch of free SEO tools that all tell me "Learn" is my biggest keyword. This is because I have 17 Learn More buttons on my home page and many more throughout the site. How do I get ...
1
vote
1answer
1k views

Force visitors to get newest versions of resources (bypassing browser cache)

How can I (force) my visitors on my website to clean their cache, and get the new updated content? I find myself sometimes linking progress on some of my projects and sending it to others for feedback,...
2
votes
2answers
103 views

Does using HTML list markup in a blog post have advantages to using a paragraph with a dash at the beginning?

Inside the text of a blog post, I have a paragraph where I highlight some points. It is like a summary. Should I use ul li tags there? What is the best practice? Does it matter? Is there any ...
0
votes
1answer
84 views

Extracting from JSON REST API

I would like to know how to extract particular field of data from the REST API. I would like to get the "bits-per-second-tx" data, only and I have tried http://localhost/net/json?field=bits-per-...
-1
votes
1answer
18 views

RE MEDICAL SEO and web building [closed]

From an SEO Point of view, what is better for a medical or dental website? PHP, HTML or Wordpress and why? My SEO person said php is read better by google bots - Somebody verify....thanks
0
votes
1answer
41 views

Add content to start of all requests

In a .htaccess file or another server configuration file, is there a way to add content to the start of all requests, for example: index.html World! .htaccess or another server configuration file #...
1
vote
1answer
67 views

New domain SEO and default header file

I am migrating to a new domain, the previous domain that I had it was really just used for me to learn how to develop websites, so the traffic, if any, of the old website is not important for me, the ...
0
votes
1answer
762 views

Use robots.txt to prevent privacy policy, terms and conditions, and guarantees from being crawled and indexed by Google

I need to block pages such as privacy policy, terms and conditions, and guarantees from being crawled and indexed by Google. They might be unoriginal. I use them for my multiple websites and they ...
5
votes
2answers
121 views

Duplicate titles being flagged are on pages with different languages

Google Search Console flags duplicate titles for the following pages on my site - they all have the title 'prodname' /de/products/georadar/prodname /es/products/georadar-gpr-radar-de-penetracion-...
4
votes
1answer
506 views

Will Dynamically added alt tag and title tags to image or any tag counted in SEO crawling

In my page I need to add alt tags and Title tags from JavaScript after the DOM is loaded. So I would like to check whether these dynamically added values will be considered during Google SEO audit. ...
1
vote
0answers
164 views

How to fix xml and php live search [closed]

Hi i have been wondering on how to make a live search on my movie website and im trying to do it without a database. So i decided to go with php and xml. These are my code so far. please help me fix ...
1
vote
1answer
152 views

What are the safe web fonts and is there anyway around this problem?

How do you choose a font that will be both aesthetic and browser/OS friendly? I love Helvetica, but a lot of websites say that 90% of Windows users don't have it installed. What are the safe web ...
2
votes
1answer
194 views

Does Change in HTML hide aggregate rating in Google search results?

I have used schemes to show aggregate rating in Google search result: Few days before I changed some minor HTML in the frontend and saw that Google stopped showing the average rating in search ...
9
votes
3answers
689 views

Do characters encoded as HTML entities affect SEO?

We have a website made in asp.net with razor engine. The razor engine encodes the content from source/database. So, for example, the letter ö becomes &#246; if I look at the source code in the ...
1
vote
0answers
40 views

PHP database information in a table that can be displayed on a website [closed]

Hey guys i just want to put the information from the database into a table which i can display on a website but i have no idea how to do it. <?php include 'database_conn.php'; // make db ...
0
votes
2answers
21k views

Include header and footer html files into another html file [ERROR]

I'd like to know how to include my header.html and footer.html in the rest of my html files, so if I had to change something in my header or footer, I would have to do it once and not by editing every ...
1
vote
1answer
112 views

What is the alternative to using a “summary” attribute of an HTML table for screen readers?

Refer to the table attribute summary in MDN Usage Note: Do not use this attribute, as it has been deprecated. Instead, choose one of these methods to add a description of a table: Use prose ...
4
votes
2answers
9k views

Vertically and horizontally align div into parent div [closed]

I'm new in the web development industry and I struggle to vertically and horizontally align a child div in a parent div. I'm trying to build a homepage with a full-width image with a slogan in the ...
1
vote
3answers
2k views

Does target blank on internal links affect Google Analytics and search engines in any way?

We have a news site where many articles have "Read more" links. These internal links are often set with the attribute target="_blank", links opens in a new tab. Does it have any affect on Google ...
3
votes
1answer
299 views

Should the “Website” structured data be used only on the homepage?

I have combined the following json scripts into a single one as I found this should be the best practice: https://developers.google.com/search/docs/data-types/sitename https://developers.google.com/...
3
votes
1answer
290 views

Effects of converting literal ampersand to HTML Entity

I'm working on a site that has main/parent category names which include a literal ampersand & character, such as "Things & Stuff". This has been working fine for many years, even though it ...
4
votes
1answer
198 views

Does hyphenation/syllabication hurt SEO?

I have a header with a long keyword in it, which is ”pre-wrapped” per the designer's wish. Like so: <h1>Prewrapped super- ficial header</h1> The css: h1 { white-space: pre-wrap; } ...
1
vote
1answer
670 views

Link stylesheets up directories using .htaccess [duplicate]

How do I move up a directory using the <link> in HTML for my stylesheets to work while using htaccess? My directories are as: index.php .htaccess css/ styles.css php/ login.php In my ...
2
votes
0answers
27 views

Common header and footer in HTML, should I use JavaScript, PHP or other for SEO? [duplicate]

Firstly, I am aware this question is similar to others asked in the paste, however I'm specifically asking about the reliability of SEO in this question (also many of the other questions are outdated)....
1
vote
1answer
2k views

How to style an svg using external stylesheet? [closed]

I have an SVG file and I want to include it in an HTML page. I want to style it using an external CSS file, but I don't want to include the stylesheet reference in the SVG itself. Is this possible? ...
1
vote
2answers
5k views

How to configure videos from Google Drive embedded on Google Sites to auto-start and loop?

I have studied the methods to embed a video file into a Google site using the Embed Gadget. There is documentation about the case when the video is from YouTube. In this case, in the iframe clause we ...
3
votes
2answers
68 views

Personal page - name with foreign accent

I am writing HTML code for my personal webpage. I used GitHub page to host it. I am French and my firstname Céline contains accents. Assume my surname is Foo. There is two kind of request from the ...
3
votes
1answer
317 views

SEO for importing the page header with JavaScript rather than PHP

My website has the same header/sidebar/footer on every page, so I have been importing them using PHP. To do this I forced all html files to be processed through the apache servers PHP handler via ...
6
votes
6answers
2k views

Is it bad practice to put PHP directives in .html files and have the server interpret them as PHP?

I've been running my company's website, which uses the same header, footer and left column on every page, since late 2014. Because of this I set up the Apache server to interpret HTML documents as if ...
1
vote
3answers
90 views

Will Googlebot take text appearance into account?

The Google bot will rank words by the surrounding tag. A text between h1 tags will have more score than the content of another h{n} element or the p element, of course. However, is the Google bot ...
3
votes
1answer
94 views

Issue with 301 redirect to Index page only

I have a bunch of 301 redirects in my .htaccess for old pages, which work great. But a problem that's been plaguing me for years is that there's a lot of links out there to my old index page (index....
3
votes
1answer
79 views

Only rel=“prev” attribute

At my site I can set only <link rel='prev' /> without next part. Will robots index pages in appropriate way (show first page instead of random page from list) with only prev attr?
4
votes
1answer
35 views

Fixed media player

The following website has a fixed media player at the top of the page. When you click internal links and browse through the site, the audio feed is uninterrupted. http://www.kcrw.com/music/shows/...
-1
votes
1answer
417 views

How to use a canonical link tag in a static page?

What is canonical linking and how can I use it in a static site? How do we use canonical linking? Suppose we have two pages page1.html and page2.html, I want to canonical linking for page2. Where ...
2
votes
2answers
51 views

SEO effects of wrapping thumbnails and titles with one common <a> tag

I've tried searching and read the Questions that may already have your answer list, but couldn't find an answer. This is about a category page that lists products in it, you click one and go to the ...
2
votes
1answer
75 views

Html headers structure for SEO without content and broken hierarchy

I've been given this markup structure as a recommendation from a SEO agency, about the way to best use html Headers for SEO purposes: <h2>{{section-title}}</h2> <div class="carousel"&...
0
votes
3answers
501 views

Identify what CSS rule is adding arrows next to list elements

I'm trying to identify the CSS that is generating the arrows next to the items in the "Recent Jobs" section of my site's homepage (scroll down, sidebar on right). The code is being generated by a ...
-3
votes
1answer
324 views

Does redirecting root folder to subdirectory affect SEO?

I'm developing a very simple static website for my band (only four pages) and I'm currently struggling with structured data markup. Right now my website hierarchy looks like this: / /home/ /music/ /...
3
votes
1answer
53 views

Will a client's site be penalized by another site redirecting and false meta?

I am building a site for a client, and i have noticed that their former web developer has another site that simply redirects to my clients actual site. He purchased this site after losing a domain ...
2
votes
0answers
273 views

MailChimp form with single opt-in (API)

How to easily make MailChimp API form without double opt-in? Using their API is hard for people with no coding skills and 3rd party tools like POWr or Privy don't have option to disable MailChimp ...
1
vote
1answer
64 views

Title tag content length based on character pixel width

I read that the length of the contents in a title tag depends on the character pixel width. What does this mean? I'm referring to an article that I read on Search Engine Land: http://...
2
votes
1answer
331 views

SEO for custom elements created by Angular.js

I have this user case where we render Angular 2 app on the server for Google to be able to see the DOM. It is all good with indexing, but I doubt that html tags are good for SEO. I have structure ...
0
votes
0answers
65 views

Web page is not crawled completely by Google

I have a webpage which is built by converting the docx document to html page. The page is added to the google webmaster tool and the sitemap file also been submitted and maintained regularly. There ...
0
votes
1answer
38 views

Appropriate way to introduce a hashtag on a web page SEO wise

I want to introduce a hashtag in a site's slider and I know it shoudn't be an anchor tag what's the correct tag for this considering SEO.
0
votes
1answer
34 views

SEO benefits of serving simplified pages to crawlers

we're currently rebuilding a client's application and are wondering if there are any benefits of serving specific pages to crawlers? I.E. Semantic html, no stylesheets, additional meta tags? Would ...