Stack Exchange Network

Stack Exchange network consists of 175 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.

28
votes
8answers
20k 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 ...
28
votes
10answers
10k 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: &...
8
votes
5answers
2k 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="...
5
votes
3answers
2k 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 ...
49
votes
8answers
49k 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 ...
32
votes
3answers
11k 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&...
52
votes
17answers
2k 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 ...
17
votes
3answers
12k 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 ...
9
votes
1answer
4k 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 ...
12
votes
3answers
5k 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&...
26
votes
7answers
785 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 ...
46
votes
13answers
7k 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?
41
votes
6answers
5k 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?
15
votes
11answers
3k 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 ...
15
votes
3answers
3k 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 ...
21
votes
4answers
7k 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?
18
votes
6answers
9k views

Do CSS class names have any effect on SEO?

I have seen some of our competitors using keyword-rich CSS class names. As an example, if I were in the pet grooming business, I would name my #menu as: #menu.pet.grooming.moreKeywords.etc { ... } ...
4
votes
5answers
571 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 ...
4
votes
1answer
542 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. ...
42
votes
7answers
9k 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?
22
votes
2answers
20k 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 ...
19
votes
2answers
469 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 ...
26
votes
11answers
15k 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 ...
5
votes
5answers
5k 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?
5
votes
3answers
4k 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 ...
8
votes
2answers
9k 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>...
1
vote
1answer
566 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 ...
12
votes
1answer
122 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 ...
10
votes
3answers
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 ...
10
votes
2answers
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)
5
votes
1answer
465 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?
5
votes
4answers
120 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 ...
2
votes
2answers
846 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 ...
0
votes
2answers
417 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 ...
6
votes
1answer
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. ...
6
votes
4answers
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 ...
5
votes
1answer
871 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 ...
5
votes
2answers
1k 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 ...
3
votes
1answer
336 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 ...
3
votes
2answers
340 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 ...
3
votes
3answers
175 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 ...
0
votes
1answer
776 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....
23
votes
10answers
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?
15
votes
4answers
15k 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 ...
20
votes
5answers
10k views

How can I validate HTML offline?

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 ...
16
votes
8answers
7k 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 ...
22
votes
10answers
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, ...
15
votes
2answers
20k 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 ...
13
votes
3answers
8k views

Proper usage of <title>, <header>, <h1> and <h2> in a HTML5 website?

I have been studying this subject for several days and have found many conflicting suggestions with regards to search indexing. I am working on a project which has a lot of different pages ranging ...
3
votes
2answers
4k views

What are reasons of latency for a HTTP request to load HTML?

I would like to know what are reasons of latency for a HTTP request to load HTML part of a webpage. I think about: loading webpage with proxy not having a good web server (apache vs nginx) having a ...