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.

learn more… | top users | synonyms (1)

6
votes
4answers
4k 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 ...
6
votes
1answer
1k views

About the <link rel=“index” /> tag

I'm trying to figure out how to use it. I understand that this tag tell Google which page is the root parent / parent of the current page. So, for example, on a page that's listing a product from a ...
6
votes
3answers
266 views

How can I decrease relevancy of Creative Commons footer text? (In Google Webmaster Tools)

I know that I may just have to link the image to make this happen, but I figured it was worth asking, just in case there's some other semantic markup or tips I could use... I have a site that uses ...
6
votes
2answers
2k views

Schema.org WebPage structure for single page site

I am building a single page portfolio site with WordPress for a client which is divided into sections that would traditionally be separate pages like - about, portfolio, contact. Can I nest multiple ...
6
votes
1answer
982 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
1answer
411 views

rel=author and rel=me without Google profile

Based on the post at Google Webmasters, a Google profile seems to be needed for rel=author to work. But this post on our forum does not indicate that. How do I implement rel=author and rel=me ...
6
votes
2answers
531 views

Duplicate alt tags in a big gallery

Our website mainly consists of galleries, while usually smaller, they sometimes reach over 100 images per post. As each image is bound to the same topic, they are automatically named after the post ...
6
votes
1answer
223 views

If all content is on a single page and hidden/shown with JS would it make sense to use hashbangs?

I have a page where the general structure is <a href="#section1">section 1</a> <a href="#section2">section 2</a> <a href="#section3">section 3</a> <a ...
6
votes
4answers
4k views

Free search tool for static website

I am looking for a free search tool for a website hosting html documentation files. the tool should display the results as listings of page title and few lines of text from that page. It should also ...
6
votes
3answers
688 views

Schema.org: Having a Product as “about” property

I want to define a Product as the main content of a webpage using Schema.org markup. My idea with the following HTML is to use the structure: - Webpage -- WebPageElement (mainContentOfPage of ...
6
votes
1answer
1k views

Firefox, iframes and redirects

I encountered this same behavior years ago and gave up back then when I couldn't find a solution. I'm hoping someone knows what's going on here and how to solve it. I have found that if you have a ...
5
votes
8answers
10k views

easier way to include Google Analytics script code on every page?

I have a website made up of only HTML pages. Instead of copy pasting the Google Analytics code on every .html file, is there a better way to include the Google code on every page?
5
votes
6answers
94 views

Should Marketing departments have basic HTML skills?

Working within an organisation as part of the in-house site development team, a lot of my team's throughput is driven by the colouring-in (marketing) department. It is their responsibility to provide ...
5
votes
4answers
2k views

SEO and browser compatibility differences for headings <H1> though <H9>

We all know the importance and significance of Headings for Professional Webmasters. These were known for professional developers as: <h1>Heading 1</h1>, and H2 through H6. As a daring ...
5
votes
5answers
6k 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> ...
5
votes
2answers
3k 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 ...
5
votes
2answers
3k views

HTML5 `html` `xmlns` attribute

Is xmlns appropriate in HTML5? <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> ... </html> Also, which is preferred, <!DOCTYPE html> or <!doctype html>?
5
votes
5answers
269 views

Speeding up website“speed”?

We use Google Analytics to measure traffic on one of our websites (who doesn't?). One of the thing that strikes us is the "page speed" tab. It shows that our website takes on average 5.69 seconds to ...
5
votes
2answers
6k views

Should menu titles (h1, h2, h3…) be inside or outside the <nav> tag?

Let's say I want to write a simple menu in HTML5. Should I write like this: <h1>My Menu</h1> <h2>Submenu 1</h2> <nav> <ul> <li><a ...
5
votes
1answer
230 views

Why is email HTML stuck in the 90's? [closed]

(disclaimer - I've already tried asking this on StackOverflow, but apparently it was off topic. If the same is true here please let me know and I'll close/delete this question.) I've spent about a ...
5
votes
2answers
327 views

Alt attributes for dynamically generated images

I have an image gallery for a commerce website which consists of several small thumbnail images and one large image. All of the images are photographs of the same product. What would be the most ...
5
votes
4answers
111 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 ...
5
votes
3answers
3k views

Does the 'blockquote' element harm or help SEO?

Can anyone please clarify the actual relation of the blockquote element with search engine optimization?
5
votes
2answers
167 views

Which method is the best to specify the language of a page?

There seems to be two ways to specify the language of a page: <meta http-equiv="Content-Language" content="en-us"> and <html lang="en-us"> Which one is the preferred way? I know I ...
5
votes
3answers
142 views

Alt attribute for SEO recommendation

If I want my site to be no.1 for a particular keyword search, would it harm me or help me if I put alt="keyword" in all of the images I have in the site?
5
votes
3answers
244 views

Uses of LINK tag

The <link> tag appears to have many uses aside from stylesheets. For example the W3 suggest using it for previous/next/index pages. I know that Opera also has a Navigation toolbar that will ...
5
votes
1answer
131 views

buttons (text or images)

I would like to know if I should create CSS buttons or image buttons for my site. What is better? Problem is that the text is formatted with Helvetica Neue ( I like that font very much) and I can't ...
5
votes
3answers
2k views

How many H2, h3 h4 are the maximum recommended?

I know that only one H1 is recommended, but what about the other titles? I've read that you can put "as many as required H2 elements to denote sections on the page". Is it correct?
5
votes
4answers
3k views

Linux HTML/XML W3C Validation Utilities

What programs can I use to validate HTML/XML markup? Basically, I want a local, command-line based, version of W3C HTML validation service (like lint) that I can use for detecting errors. Update I ...
5
votes
3answers
1k 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 ...
5
votes
1answer
541 views

When opening a local HTML file, how do I ensure I get the content not a cached version?

I have an issue where the newest content of a local HTML file is sometimes not displayed. Instead, the browser shows a cached version. The workaround is to press <Ctrl>+<F5> but I'd like ...
5
votes
1answer
4k views

Is it valid to have multiple form input elements with the same name?

Is it valid markup and is it valid to the html/http spec? If I wanted to have <form> <input name="email" /> <input name="email" /> <input name="email" /> </form> is ...
5
votes
3answers
2k views

Semantic Form Markup for Yes or No Questions

I frequently receive mock-ups of HTML forms with the following prototype: Some long winded yes or no question?   (o) Yes   ( ) No The (o) and ( ) in this prototype represent radio buttons. ...
5
votes
1answer
2k views

Does Microdata have to be visible to the visitor to be displayed in Google search results?

Does Microdata (for rich snippets) have to be visible to the visitor to be displayed in Google search results? I want to add the rich snippet to my page, but I don't want it in the format that is ...
5
votes
1answer
379 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
3answers
110 views

How do i make it difficult for users to make multiple accounts

I'm creating a website for my business and I want to offer free first deliveries for the first week but I'm afraid people will take advantage of that. I don't take any money or credit card info ...
5
votes
2answers
715 views

How to mark up acceptable payment methods for a Schema.org Offer with Microdata?

I am not sure how to markup accepted payment methods for an offer. Here are the Schema.org types: Offer PaymentMethod Here is my basic example, is this correct? <div itemscope="" ...
5
votes
2answers
1k views

# id - urls with id first display full page, then move to #id

I've noticed this in the new version of chrome, and ie9 and 10. Some urls in a photo gallery have a #id tag as they are supposed to display a full view of a picture. Basically, a div in a lower ...
5
votes
1answer
2k 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.mywebsite.com/help_faq.html#contribution However, sometimes, I need to track where user come from, if I use ...
5
votes
2answers
4k views

Is &shy; safe now?

Is it safe to use &shy; now? I remember there were problems with this entity, such as rendering it everywhere (instead of only when the web browser decides to split a word), or splitting a word ...
5
votes
2answers
279 views

Automatically generate and cut off the blog post preview texts from the full post text? Yes, no?

I run a blog with over 1000 posts that are only separated by tags, so each post can have multiple of those. As it is mostly short news, videos and galleries, the description consists of 3-5 lines of ...
5
votes
1answer
206 views

HTML encoding in the alt attribute

Why is it that &#187; valid for an alt atribute but &raquo; is not?
5
votes
1answer
120 views

Canonical Tag Not Being Recognized

I'm puzzled by the first Google search result in this list. The first result has the following rel="canonical" tag: <link rel="canonical" ...
5
votes
2answers
295 views

CSS/HTML element formatting template

I'm trying to locate an HTML template that shows all the elements in HTML, so that the basic aspects of typography, colour schemes, margins and so on can be applied to it using CSS. Those styles can ...
5
votes
3answers
11k views

Possible to only load specifiv div of a website?

I have this project i'm working on and id like to add a really small list of nearby places using facebooks places in an iframe feature from touch.facebook.com I can easily just use ...
5
votes
1answer
671 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
1answer
685 views

Looking for a desktop application similar to jsFiddle

Is there a desktop application or IDE for Windows or GNU/Linux similar to jsFiddle where I can insert my JavaScript code, HTML and CSS and see how it executes? I don't mind writing HTML, CSS and ...
4
votes
5answers
3k views

Are the space and the / required in the <br /> tag?

Back in the day, I remember writing many a webpage without using / in the tag. What changed? Also, is the space "required?"
4
votes
7answers
3k views

Do tabs, spaces, and line-breaks in HTML markup affect search engine optimization?

I am looking for information regarding tabs, spaces, and line-breaks in HTML/XHTML markup and whether it affects SEO. I have found sources which state that extra white space hurts search engine ...
4
votes
4answers
2k views

Breadcrumbs in H1 - How does it affect Google?

Is it good for Google? Like this: <h1> Home >> Services >> Toilet cleaning >> Showcase </h1>