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
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
9k 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
7answers
6k views

Can I hide <h1> tag? Will it hurt SEO?

My pages look better without a heading title. So I don't really want to use a heading, but I don't want to leave <h1> out. Is hiding the element an option? Will it hurt SEO?
5
votes
6answers
92 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
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
2k 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
265 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
1answer
219 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
290 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
110 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
4answers
1k views

Does valid HTML, CSS and/or XML affect SEO?

Can a page's HTML validity affect search engine optimization (SEO)? Assuming all other factors are exactly equal, will an HTML document with 0 errors and 0 warnings (W3C provides a tool to validate ...
5
votes
2answers
5k 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
3answers
3k views

Specifying image dimensions to improve browser performance

I recently ran an audit on my web site using Google Developer Tools. My images are all the same size (500 horizontal by 300 vertical pixels) so I thought it would be better if I left out the image ...
5
votes
2answers
2k views

Avoiding background and main menu reloads (white flash) when users navigate my site?

Not a major problem, but I would like to understand more about how some websites can serve different pages to a navigating user, such that the browser doesn't visibly pass through a blank white page. ...
5
votes
2answers
161 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
240 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
125 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
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
684 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
522 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
362 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 (to be downloaded) by requiring username and password. Do anyone has a simple solution? Thank you very much!
5
votes
3answers
92 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
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
1k 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
3k 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
257 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
273 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
10k 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
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 ...
5
votes
1answer
597 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
647 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 ...
5
votes
2answers
519 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 ...
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
5answers
4k 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> ...
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
3k views

Check for duplicate 'id' values in a HTML page

I am developing a web application and I would like to check for duplicate id values in a HTML page. I am running the application on my local machine. There is a way to do that? P.S.: I am using ...
4
votes
4answers
1k views

Self-referential hreflang attributes for single language website?

I've been told by an SEO company to add a hreflang attribute to every page on a single-language website (ie. 'self-referential' tags), but everything I've read about the hreflang tag, including ...
4
votes
3answers
259 views

Google follows disabled options on “get” forms

I have the following get form on my website for language switching. <form method="get" action="?"> <label for="language">Language: </label> <select id="language" ...
4
votes
3answers
504 views

html/css vs CMS

I am currently a CS student and an aspiring programmer/web developer. I am wondering whether it is worth taking the time to master html and css to make websites when these CMS services/wysiwyg editors ...
4
votes
2answers
852 views

Wordpress vs Clean html/css

When it comes to designing/coding presentational websites, with static content and few pages.. let's say, between 5 and 20. Would you go with wp, design a custom theme and update with content, or ...
4
votes
1answer
1k views

What's the deal with URLs for Yandex.Metrica not prepended with “http”?

The description of Yandex.Metrica explicitly says that URLs like //mc.yandex.ru/metrika/watch.js (no http: in front) that the web site owner has to insert into his pages are not erroneous. So for ...
4
votes
7answers
3k views

HTML/CSS website hosting [duplicate]

Possible Duplicate: How to find web hosting that meets my requirements? I would like to host my HTML/CSS website (actually, just one page, but it may grow). Since I don't need PHP, MySQL or ...
4
votes
1answer
214 views

How can I serve all resources under HTTPS instead of HTTP without changing their URLs in the HTML code

I know that by using an .htaccess file I can redirect everyone to https://. However, my SSL certificate complains if all the content isn't served under HTTPS. Is there a way to convert all the ...