Is there any pros to use HTML 5 doctype <!DOCTYPE html> even if i'm not using any new HTML 5 tag? Is there any benefit to replace XHTML doctype with HTML 5 doctype even if i'm not using any new HTML 5 tag?
or in new projects which i'm going to start?
or it can create problems in any type of functionality if i 'm using any thing XML rel...
I am working on an html5 audio player and everything is working fine when I server the .ogg file from the same host as the html page. When I put the ogg file in my cdn it fails and the error code is MEDIA_ERR_SRC_NOT_SUPPORTED
For example, this works fine
<audio src="/song.ogg" id="player">
Your browser does not support the <code>aud...
I currently have a problem reading in XHTML as the XML parser doesn't recognise HTML character entities so:
<?php
$text = <<<EOF
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Entities are Causing Me Problems</title>
</head>
<body>
<p>Copy...
Is there any way for me to share a variable between two web workers? (Web workers are basically threads in Javascript)
In languages like c# you have:
public static string message = "";
static void Main()
{
message = "asdf";
new Thread(mythread).Run();
}
public static void mythread()
{
Console.WriteLine(message); //outputs "asdf"
}
...
Assuming the following:
The browser in question doesn't limit the size of data URIs.
There is actually a purpose to doing this (so please refrain from asking "what's the point?" and "you do realize base64 encoding will expand your file by 33%, right?").
Is it technically possible to encode an entire video or audio file into base64, a...
I have implemented through jQuery the placeholder HTML 5 attribute for the browsers that don't support it (all except webkit at this time).
It works really great but it has a small problem: it breaks the HTML 5 required="required" and pattern="pattern" attributes on Opera (it's the only browser that supports them currently).
This is be...
I am looking for development software that has a live preview of the page as you code it, and is aware of HTML5 and CSS3 syntax. Obviously it'd be useful if the live preview enngine was HTML5 and CSS3 capable too. I favor lightweight editors over heavyweight IDE's as I don't want much more than syntax highlighting, suggesting and checkin...
I see that you can play ogg audio files, but I was wondering if you can play video ogz files using it using Apache?
http://www.xiph.org/oggz/
...
I’ve seen some people wrap their navigation (<ul> tag) inside a <div>, and the <div> just has margin/padding CSS properties applied to it.
We can just style the navigation without a <div> and put the margin and padding on the <ul> tag. So it is necessary to put the <ul> tag inside the <div>, or is it just personal preference/favor?
And...
I'm interested in building a custom video player in HTML5. I have no problem embedding html5 video media utilizing the dual format of Ogg and h.264. My main issue is in referencing the API for the video tag element. What properties and event listeners do I have access to via javascript?
...
I want to build a fixed width website (say 960px, to pluck a number at random) aligned to the left, but with a background which is wider than this and that fills the space to the right if the user has a screen wider than 960px.
This is easy using a background image:
body {background:url(myreallywidebgimage.png) 0 0 no-repeat}
#wrapper ...
I am looking for a good book on HTML5. I am in particular interested in things like AppCache, Canvas, and the new video tag.
Thank you very much for your help
...
I want to make an HTML/Javascript web app. Is there a website where I can compare what webrowser already support the HTML 5 tags? And WebGL?
...
Please help me with this validation error. I can't understand what it means or what's not standards complaint with my HTML.
I'll repost it here since hopefully I'll fix it and that link will no longer work:
Table column 2 established by element td has no cells beginning in it.
…="tooltip_table"><tr><td colspan="2">20 yd range</td></tr...
I would like to support playing audio on a web page with HTML5. Currently I support IE with an embedded media player. The Javascript on the page interacts with the media player control to start, stop, skip, change volume etc.
I would like to have the same control over the audio with HTML5. What kind of interface is available to the audio...
I'm experimenting a bit with the new tag and I've already hit my first roadbump. I figured I'd start getting my feet wet by implementing a version of the classic board game Go/Baduk/Weiqi.
I've drawn the xy grid using moveTo() and lineTo(), and I've drawn a wood background using fillRect() that needs to be "under" that XY grid of cours...
Hi,
I need to use HTML 5 audio to play sounds. However, the codec support is very irritating:
Firefox: Ogg, Wav
Safari: Mp3, Wav
Chrome: Ogg, Mp3
Opera: Wav
I basically need to encode in Wav and Ogg/Mp3. However, Wav's are terrible in size and that is very crucial point for me. So, I guess I should go for Mp3 + Ogg leaving Opera and...
I'm trying to create a thumbnail image on the client side using javascript and a canvas element, but when I shrink the image down, it looks terrible. It looks as if it was downsized in photoshop with the resampling set to 'Nearest Neighbor' instead of Bicubic. I know its possible to get this to look right, because this site can do it j...
I'm confused.
If I point by browser (Chrome or Safari on OSX) to this web site, it shows all the SVG perfectly:
http://emacsformacosx.com/
Now, if I view source on that page, copy it, and paste it into a new HTML document on my desktop, then view that with either browser, I get no SVG at all.
Why the difference?
Why does SVG work on...
similar to what is shown here.
I don't need total image editing... only rotation, maybe cropping. But the user being able to drag'n drop a photo and then minor editing is what I'm after. I'm sure there's a jQuery plugin for something like it. (preferably not an HTML5 solution)
However, I've refrained from using uploaders that use an aj...