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
41 votes
9 answers
33k 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 ...
WebbyTheWebbor's user avatar
27 votes
10 answers
11k views

SEO regarding using separate <h1> tags for the logo and website name

Is is true <h1> tag should not have more than 1 on every page for SEO? Every pages on the header, it includes and <h1> tag. Website Name which show an image from logo class, like this: &...
user avatar
5 votes
3 answers
3k views

My website title shows up slightly different from what's in my title tag, only in Google search [duplicate]

I've included my page title in the title tag in this format: " blah blah blah | sitename ". But for some reason it's showing up on Google search results as " sitename: blah blah blah ". It shows up ...
NeonBlueHair's user avatar
12 votes
5 answers
3k views

Absolute vs relative links for search engine crawlers and SEO

Our site's navigation links are currently in relative form: <a href="/section"> The SEO company I mentioned in my previous question recommends we change them to absolute links: <a href="...
Kaivosukeltaja's user avatar
71 votes
8 answers
88k 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 ...
Sangram's user avatar
  • 1,068
56 votes
17 answers
3k views

HTML validation: is it worth it?

What are the advantages and disadvantages (if any) of making sure that all pages validate compared to having non-valid HTML that however works on all major browsers? Also, is having valid HTML after ...
Andreas Bonini's user avatar
35 votes
4 answers
16k views

Is the title attribute (not tag) important to SEO?

The title attribute is an HTML standard element available across most tags. e.g. <li><a title="Widgets listed by household function" href="/widgets/by-function.html">by Function</a&...
JasonBirch's user avatar
  • 4,143
30 votes
4 answers
30k views

Can I use <link> tags in the body of an HTML document?

Can I use <link> tags in the body of an HTML page? I tried to find the answer to this question, but found contradictory information. When adding Schema.org microdata markup to an HTML page, I ...
Edward Touw's user avatar
13 votes
3 answers
7k views

Can microdata be implemented in meta tags?

Please consider the following code marked up with attributes to provide microdata: <!DOCTYPE html> <html> <head> <title>Micro data test - Normal version</title&...
user avatar
48 votes
13 answers
9k views

How can I see what my web site looks like in various browsers?

How can I see what my web site looks like in various browsers? Short of actually having every different browser version installed, is there any tool or service that can provide a preview?
Chris W. Rea's user avatar
  • 3,763
27 votes
7 answers
865 views

When designing a website, how do you usually start?

In the past I've done some HTML, CSS and PHP coding, but I've only ever worked on things that were already "finished" and I've never started a website from scratch. However, I recently purchased a ...
3 votes
2 answers
4k views

How to write JSON-LD for list of people?

I have a page that contains a list of people with a link of each that will open the main page of that person. Each link should have its own structured data. I'm using JSON-LD, but the example given ...
sirajalam049's user avatar
48 votes
7 answers
20k views

Why aren't we supposed to use <table> in a design?

What are some clear and logical reasons for why we shouldn't be designing websites with tables? Where are the benefits, what has been driving this idea in the industry? When is it okay to use a table?
Incognito's user avatar
  • 1,332
24 votes
3 answers
11k 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 ...
Kaivosukeltaja's user avatar
23 votes
4 answers
8k views

Should my Title tag be the same as my H1 tag?

I have read that I should make the contents of my <title> and <h1> tags the same. Is that the case or is does Google look at the content of those 2 tags separately?
Ben Hoffman's user avatar
  • 12.8k
16 votes
11 answers
4k views

Common optimizations to reduce HTML or XHTML page size?

What are some common optimizations performed to reduce HTML or XHTML page size? Some that come to mind are: removing comments, removing extraneous whitespace, moving repetitive inline styles to a ...
Chris W. Rea's user avatar
  • 3,763
11 votes
2 answers
4k views

Is content inside a <noscript> tag indexed by search indexes?

Is content inside a <noscript> (HTML4, HTML5) tag indexed by search engines? (Inspired by this question)
artlung's user avatar
  • 8,628
9 votes
4 answers
11k views

How to use more than 1 schema.org schema on a web page

How do you add more than one schema to a web page? I am using the Organization and WebSite schemas on my home page. I am writing the markup in JSON-LD format. The Organization schema for the ...
Brendan Vogt's user avatar
  • 1,105
9 votes
1 answer
6k views

Where is the ideal place in code to use Schema.org markup as JSON-LD?

Where is the best place to put Schema.org markup that uses JSON-LD? Some recommend inside <head> but scripts work inline too. It would be easier in an MVC to put them in the same scope as the ...
dhaupin's user avatar
  • 3,339
7 votes
5 answers
10k views

What is the maximum size of an HTML file that Google will crawl through?

I have a 10MB HTML file. Will Google crawl through the entire file, or does it only look at the first X MB?
Adelle's user avatar
  • 71
4 votes
5 answers
644 views

Google Webmaster Tools reporting crawl error 404 (Not found) for a page which has never existed

Google Webmaster Tools is reporting a crawl error "404 (Not Found)" for an .html page which has never existed on a web site I developed. The page being reported is "tyuiabmog.html", which doesn't ...
Andy Bowskill's user avatar
44 votes
7 answers
10k views

Why should we use tags like p, span, hx tags when we can use CSS instead?

Why should we use tags like p, span, hx tags when we can use CSS instead? Is it important from an SEO point of view?
sangee's user avatar
  • 451
28 votes
2 answers
31k 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 ...
Simon Hayter's user avatar
  • 32.9k
28 votes
4 answers
39k 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 ...
Jérôme Verstrynge's user avatar
26 votes
11 answers
18k views

Are HTML tables bad for SEO?

A lot of designers discourage the use of tables but I have a layout where I'll use more div structure to achieve something made simple with a table.. Are tables bad for search engines? edit: I will ...
user avatar
21 votes
2 answers
551 views

Which meta tags are not worth the effort?

After reading this question about meta keywords, I've been wondering : of all meta tags, which ones are really worth the effort ? I know that the description is used in google search results, and the ...
Wookai's user avatar
  • 1,597
13 votes
2 answers
19k views

SEO of <span> in <h1> header

Does the <span> element have any SEO side-effects? Are there any semantic preferences between the following two or parsing differences between search engines? Clean <h1>: <h1>...
Petrus Theron's user avatar
12 votes
1 answer
143 views

Why don't large popular sites such as SO use keyword and description meta headers?

Why don't Stack Overflow, Wikipedia or MSDN etc. include keyword and description meta tags in their page headers? For example Google indexes the first paragraph as a brief description. Is this a ...
Meh Man's user avatar
  • 241
11 votes
1 answer
2k views

Duplicate content on the same page - SEO ramifications?

In certain situations, I've seen Responsive Design websites with duplicate content on the same page. The pages had duplicate HTML structure and content in some parts of it due to Responsive Design. ...
Jake Wilson's user avatar
10 votes
3 answers
2k views

Is minifying id and class names a bad SEO practice?

I am a big fan of minifying everything whenever possible. It is a sin for me to don't do this. However, I recently read that one of the thousands tips to boost your website rank on search engines was ...
ajax333221's user avatar
6 votes
1 answer
1k views

What is the way to properly implement a Facebook Like button on a page for best SEO purposes?

On our site we want to put a Facebook Like button/widget-thingy. It is possible to create a like button, where the URL associated with the button is the page it sits on, rather than a Facebook page. ...
ElHaix's user avatar
  • 885
6 votes
3 answers
1k views

Can a <link /> element's href attribute be relative?

Can I use: <link rel="alternate" hreflang="en" href="?l=en" /> to link pages with different languages for SEO (recommended for example by Google)? Can that URL be relative as in the example ...
PetaspeedBeaver's user avatar
6 votes
4 answers
6k views

Google Webmaster Tools says my XML sitemap "appears to be an HTML page"

We're running a lot of sites and we've started to get a lot of these errors in Webmaster Tools: Sitemap is HTML Your Sitemap appears to be an HTML page. Please use a supported sitemap format instead. ...
Adam Lynch's user avatar
5 votes
4 answers
130 views

Twitter Product Preview on Tweets

I just saw that twitter can also preview the products as it is on below Tweet: http://twitter.com/#!/gillcleeren/status/131640082397528065 In this case, it is an Amazon product. I was wondering ...
tugberk's user avatar
  • 787
5 votes
1 answer
952 views

How to overcome politics of the net (Google translate code refuses to work from a specific region)

According to the FAQ's I am not sure if my question is a ok to ask or will be closed or should I post it in the meta or even I would blame some one for downvoting it. However it is one that has been ...
Jawad's user avatar
  • 123
5 votes
2 answers
3k views

Images as hyperlinks and SEO implications

I manage several websites, one of which is an e-commerce site with a lot of images. At the top of some product category pages, there are image links to specific products (think image banners). I am ...
CreMedian's user avatar
  • 103
5 votes
1 answer
523 views

Is there a simple way to protect my webpage by password?

I am writing some simple HTML pages. I need to protect some pages and some files (from being downloaded) by requiring a username and password. Does anyone know a simple solution?
Anand's user avatar
  • 153
4 votes
1 answer
408 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 ...
Awais fiaz's user avatar
3 votes
1 answer
442 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 ...
Kyle Postlewait's user avatar
3 votes
3 answers
3k views

Does Google index images declared using 'srcset'?

As of Chrome 40, the srcset attribute is supported, but will Google index the images within it?
Undistraction's user avatar
3 votes
2 answers
361 views

As a beginner, I would like to know which should be the markup language to startup with [closed]

I am a beginner in Web Designing. For sure a CMS like Joomla (Joomla 3.1, now) is very useful for one who doesn't care about coding. But... I know for sure that the ability of coding really helps a ...
user22911's user avatar
3 votes
3 answers
180 views

Problem with description of my site and google search

My HTML page : http://www.faressoft.com <meta name="description" content="فارس سوفت الاسم الرائد في عالم البرمجيات العربية" /> When I search for my site name "فارس سوفت" using google, the ...
faressoft's user avatar
  • 193
1 vote
1 answer
863 views

Does changing strong element CSS styling affect SEO?

<strong> HTML elements have default black and bold CSS styling. I want my strong elements to have light blue background, have blue as font color and underline strokes. But does changing the ...
Jessia's user avatar
  • 13
0 votes
2 answers
555 views

Multiple sites, same markup, different content, tier linkage = SEO penalty?

I've developed a site, and I'd like to apply the exact same theme with the same HTML markup but different CSS styling to multiple different sites on different domains. The sites will be related in ...
Chad Johnson's user avatar
0 votes
1 answer
948 views

How to transform RDF to Microdata in a WordPress site?

I have a breadcrumb with RDF data and I want to adapt it to Microdata. First of all, I'm not sure about the structure, because it will work on a WordPress template. But I found this code: http://www....
Unix's user avatar
  • 323
25 votes
10 answers
1k views

What's the importance of the "title" tag?

Talking with some other people recently, it came up an interesting topic. The core question at hand is: What's the real importance and weight of the <title> tag in a web site? For instance, ...
Matteo Mosca's user avatar
24 votes
6 answers
13k views

How can I validate HTML offline? [closed]

When I'm developing a website locally sometimes I want to check if the html is valid but I haven't been able to find a good tool. I want it partial as a sanity check when I'm troubleshooting layout ...
citadelgrad's user avatar
23 votes
10 answers
2k views

What is new in HTML5/CSS3?

I've seen this site and this site, but that's a lot to digest. What are the main things about HTML5 that make it different/better than regular old (X)HTML/CSS?
Jason's user avatar
  • 2,148
20 votes
8 answers
8k views

Is inline JavaScript good or bad?

I've currently switched from WordPress to Yii framework and an external developer is rebuilding my site. One thing I notice is that each time he invokes AJAX / jQuery the Yii way, it embeds inserts ...
Steven's user avatar
  • 489
18 votes
2 answers
33k views

Correct image dimensions when using Schema.org's logo/image

What are the correct image dimensions when using Schema.org’s logo/image (e.g., for a Brand)? I want to create a logo for the brand with correct dimensions so that it doesn't look too distorted when ...
Brendan Vogt's user avatar
  • 1,105