We’re rewarding the question askers & reputations are being recalculated! Read more.

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
1
vote
0answers
10 views

Does the position of Google Analytics snippet within the document head (before or after scripts and css) affect tracking data?

The MonsterInsights plugin puts the Google Analytics tracking code before other java scripts and stylesheets. I wanted to reduce by one more the number of plugins that I’m using so I put the Google ...
1
vote
2answers
43 views

Are <p> tags important inside the <article> tag for SEO?

Since you can't put <h2> tags and lists and such inside <p> tags. How to go about creating articles with <h2> tags and lists. Can I replace the <p> tag with a <div>? Or ...
3
votes
2answers
124 views

AdSense units don't respect CSS margin rules

I just noticed that on sites with "auto ads" enabled, auto-placed AdSense units don't follow CSS rules regarding margin or padding in mobile view. They display across the entire viewport instead of ...
1
vote
0answers
8 views

Meta name description in og:description

I would like to ask if is there any difference when I have description and og:description separately and together. Is there just only difference that when it's separately I can add different text and ...
-1
votes
0answers
10 views

How to create Constant Glow Effect Icon? [on hold]

how to create such glowing effect in a icon through code???
1
vote
1answer
295 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 ...
4
votes
2answers
96 views

How many links per page maximum can we have in an HTML sitemap?

In the XML sitemap, there is a limit of 50,000 per XML sitemap. Is there a limit of links to be present on the HTML based sitemap? If I have more than 100k pages or posts, Should I used them as ...
1
vote
0answers
24 views

How to get site link image to show up reliably when posting to social sites?

I hope this is the right kind of question for this forum. I have seen this post but it didn't help or I didn't understand it well enough. I'm trying to have the feature so that when a link (to a ...
2
votes
1answer
22 views

Can robots.txt be used to prevent bots from seeing lazily loaded content?

Let's say that googlebot is scraping https://example.com/page. example.com has a robots.txt file that disallows /endpoint-for-lazy-loaded-content, but allows /page /page lazy loads content using /...
1
vote
0answers
23 views

Is there a way to use js templating with wordpress without impacting seo or ux?

I have one JSON file that contains the text content for my hundreds of Wordpress posts. I am using templating, mustache.js, to insert the text content and render the posts. This saves me a lot of time,...
9
votes
3answers
993 views

html: Should <code> be placed within a paragraph?

Markdown creates output like this: <p>see this example:</p> <pre><code>code</code></pre> Is this correct or should it be: <p>see this example <pre>&...
1
vote
1answer
25 views

Can sites get by with just mp4 video these days? Converting to other formats bloats the size

Is it important to convert mp4 video to another formats like webm or is mp4 enough? I tried to convert to webm in online services, but it makes the size of the video file much bigger. The size ...
2
votes
1answer
18 views

Is it possible to have a site that uses WordPress with some pages that don't

I am redoing an old static html site in WordPress and that's all fine, but there is a section of the site that is in a subdirectory that would be fine to keep the static html. I am building the ...
1
vote
1answer
48 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"...
5
votes
3answers
149 views

Should I compress very small HTML pages?

Here's the thing: More compression of a page means more work of the server CPU. 99% of my website for most visitors is gzip compressed. I have made error pages which are not compressed. They use 2 ...
13
votes
3answers
19k 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 ...
5
votes
3answers
63 views

Does rendered HTML from an angular app need to be styled and pretty when shown just to search engine bots?

I have an angular app, and while google does index those now, many other sites do not. I have built some middleware that intercepts requests from crawlers and serves static HTML pages that those ...
1
vote
1answer
88 views

Nodejs Express - How to point two urls to single html page

I have an HTML page template (player.html) which displays Football players information and information is loaded on to page using a rest API call. When the user select "Ronaldo" from a dropdown, ...
2
votes
1answer
119 views

How can I redirect a Blogger blog to another blog

I have a blogger blog with its own domain (I'll call it www.example.com); that's to say: this site used to be a www.example.blogspot.com and I purchased a name domain later; I can continue to manage ...
4
votes
7answers
22k views

How can I determine the background color of a site?

How can I determine the background color of a site (so I can use that color in Photoshop)? I looked at the source code, but I don't know code well enough to figure out what's what...
22
votes
2answers
22k views

Using Schema.org for blogging: Article VS BlogPosting

I have been remaking my website for some time now and I want to launch it as quickly as possible but I want to make it leading edge if possible. I am currently using a modified template (I know! web ...
2
votes
1answer
232 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 ...
9
votes
2answers
7k views

The right way of using index.html

I have quite a lot of issues I'd like to hear your opinion on, so I hope I'll manage to explain it well enough. I should also note that I'm beginner equipped only with the knowledge of HTML and CSS so ...
0
votes
3answers
50 views

The webpage is in JS but still text browsers are reading the content. How is it? [closed]

I was checking the site giftedandtalented.com. first of all the the source code is so cluttered. When i disabled the JS in my browser, except for top navigation nothing showed up but when i checked ...
1
vote
1answer
92 views

How to link PDF and PS for best indexing while still maintaining proper design?

Assume that you are having a single web page with several links to your papers: ... Author list 1, Paper Title 1 [PDF] [PS], publication venue 1, year 1 Author list 2, Paper Title 2 [PDF] ...
3
votes
2answers
633 views

Same text for <h1> and <h2>

What do you think about having the same content for H1 and H2 tag in the article? It seems like keyword stuffing, right? Example: <h1>Bananas <span>Musa × paradisiaca</span></...
2
votes
1answer
36 views

How do you create a home page without a file name or .HTML extension?

When we make HTML pages, we generally save it with a .htm or .html extension. But most webpages on the internet have extensions like .com or .org, for example, https://example.com. How do these pages ...
3
votes
1answer
45 views

Standard or common way to secure a destination-email-address of a client-side contact-form

I have a website with a minimal, client-side HTML-CSS-JavaScript contact form but I desire to hide the destination email address of that form from the HTML source code so that form users would not be ...
1
vote
0answers
16 views

I am trying to make a file upload form for my website, I have some code but it is not working [closed]

I cannot get this to work am I doing something wrong? $extensions= array("jpeg","jpg","png"); if(in_array($file_ext,$extensions)=== false){ $errors[]="extension not allowed, please choose a ...
2
votes
0answers
16 views

Is there a better way to find and replace html site files? [closed]

I've a large 1000 page site I'm trying to edit. I tried a find and replace with Dreamweaver but apparently the template is broken and split up. So when I do a find and replace it updates the template ...
1
vote
0answers
40 views

Getting following errors Text too small to read, Clickable elements too close together, Content wider than screen [closed]

I am getting the following errors in the GSC in mobile usability area. 1. Text too small to read 2. Clickable elements too close together 3. Content wider than screen I got the same error in the ...
3
votes
1answer
28 views

<pre> tag generates a blue box behind the pre-formatted text and a table around it on the printable version. How to disable this?

I use Pre tags to embed code lines into my MediaWiki page. Problem is that Pre tag generates a blue-ish box behind the pre-formatted text which is parsed into a table when you set printable=yes in the ...
1
vote
3answers
62 views

What are the benefits of utilizing a Web Server vs opening an HTML file directly via your browser

I've just begun coding in Javascript. I'm looking for an in depth answer that explains the features that are available to me when using a web server to serve up my index.html file vs simply opening ...
2
votes
0answers
82 views

Is there a problem in adding Adsense verification code via JavaScript?

I work with a certain CMS (MediaWiki) in which there is no direct control over HTML (as there is in Drupal Twig files for example); Hence, in this case, I have to load my Adsense verification code via ...
3
votes
1answer
99 views

How to make a website have an icon when placed on an Android home screen?

How can I make Dance Culture have an icon on the Android wallpaper like it has with WolframAlpha. See screenshot below. I've found favicon but can't tell what's different in the html source code to ...
6
votes
2answers
6k views

Unable to use anchor hash tag if using Google Analytics utm

If I want to user to go a particular section of my webpage, I will use http://www.example.com/help_faq.html#contribution However, sometimes, I need to track where user come from, if I use http://...
5
votes
2answers
4k views

Star rating not showing in rich snippets [duplicate]

We've recently been doing a lot of work on our site's SEO (www.betterthanreviews.com). We recently did a push to update the rich snippets breadcrumb, meta description, and star rating. After giving ...
1
vote
1answer
79 views

MediaWiki: Hiding certain HTML elements for non-logged-in users

In a MediaWiki-based non-communal website there are some HTML elements that should be presented only for logged-in-users (an administration menu or some of its links). Usually if I want to hide ...
3
votes
2answers
28 views

Can display:none CSS be used on a div with a rich snippet?

I'd like to use the following code: <div itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating"> <div> <span itemprop="ratingValue">[rating]<...
0
votes
3answers
52 views

Where do I put my static HTML and CSS files when migrating my site from Joomla?

I previously made a website with the Joomla CMS. Once it was online, I started over from scratch to re-do my website using only handwritten HTML/CSS (and a little of JavaScript). My question is: How ...
11
votes
7answers
26k views

Use p tag inside a div tag for text?

What is better in terms of SEO ? <div class="box1" > <p> A bunch of text right here</p> </div> or <div class"box1" > A bunch of text right here </div> ...
1
vote
1answer
108 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 ...
1
vote
1answer
25 views

Change my website's photo on a the mobile Google search results

I have noticed that google has started to show little images next to search results on mobile devices. The first photo I have displayed on my website is my logo. Currently this is the image that is ...
4
votes
2answers
99 views

Adsense ads don't appear even if account approved

I have a website that runs on Apache 2 and has code in PHP and JS + HTML. This is the code of my ad unit: I have an approved AdSense account that already was showing (and getting revenue) from AdMob ...
1
vote
2answers
42 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 ...
0
votes
2answers
46 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,...
0
votes
0answers
17 views

m.me links not working chrome mobile

I just got into a problem when links to messenger (m.me/PageNumber) are not working on mobile chrome. It works fine on desktop chrome, it redirects straight to messenger.com/PageNumber. But on ...
0
votes
0answers
10 views

Processing iframes reliably when webserver can only handle one request at a time

I'm trying to serve HTML from a web server made in MS-DOS that is capable of processing one web request at a time. I made some HTML in which two iframes must be loaded. I use iframes because ...
2
votes
5answers
11k views

Google Chrome displays the wrong favicon that I've linked to in my html

I have an HTML file with the following markup in the head tag: <link rel="shortcut icon" href="myFavicon.ico" /> With that, I expect to see my "myFavicon.ico" icon display in Chrome's tab and ...
2
votes
2answers
1k views

Unicode icons in <title>

If I want to put various unicode icons in my <title> for the sake of looks, could that hurt my SEO? Are there particular classes of unicode (code ranges) that offend search engines? I've ...