SitePoint Sponsor |
|
User Tag List
Results 26 to 39 of 39
-
Jan 6, 2009, 16:53 #26
- Join Date
- Oct 2008
- Location
- Banned
- Posts
- 506
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
So, onto html, how about that doctype syntax change eh?
Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
Code:<!DOCTYPE html>
-
Jan 6, 2009, 20:00 #27
- Join Date
- Sep 2005
- Location
- Sydney, NSW, Australia
- Posts
- 16,875
- Mentioned
- 25 Post(s)
- Tagged
- 1 Thread(s)
Of course HTML5 is still a really early draft so everything in oit could be completely different when it gets formally adopted in 20+ years time. Best avoid using it for anything serious until then or you'll be constantly updating all your pages every time they change something in the draft.
The current live version of the specification HTML is 4.01.Stephen J Chapman
javascriptexample.net, Book Reviews, follow me on Twitter
HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
<input name="html5" type="text" required pattern="^$">
-
Jan 6, 2009, 20:08 #28
- Join Date
- Oct 2008
- Location
- Banned
- Posts
- 506
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I was looking at some of the new tags and some of them are very..interesting...and specific..
-
Jan 6, 2009, 21:21 #29
- Join Date
- Sep 2005
- Location
- Sydney, NSW, Australia
- Posts
- 16,875
- Mentioned
- 25 Post(s)
- Tagged
- 1 Thread(s)
And there is already discussion about whether those tags are the most appropriate additions as many of them are too specific. Many of them are near certain to be removed from the draft before too long as they can be considered as a single example of something that would require the addition of hundreds of additional tags to implement fully as separate tags and so the single tag covering all those options is the only practical alternative and that tag <object> is already a part of HTML 4.
Stephen J Chapman
javascriptexample.net, Book Reviews, follow me on Twitter
HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
<input name="html5" type="text" required pattern="^$">
-
May 14, 2009, 13:33 #30
- Join Date
- Jan 2008
- Location
- Hot Springs, Montana
- Posts
- 195
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanks to all for this thread. Definitely it straightened (or... somewhat decrookified...) my understanding about the relationship between xhtml strict and html strict.
Should I be aware of any other necessary coding changes from a strict .xhtml served text/css (and therefore, not really a strict .xhtml) syntax to a html 4.01 doc?
EDIT: also, am I correct with this doctype statement:
Code HTML4Strict:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
Code HTML4Strict:<html xmlns="http://www.w3.org/1999/xhtml">
-
May 14, 2009, 16:34 #31
- Join Date
- Jul 2002
- Location
- Toronto, Canada
- Posts
- 39,347
- Mentioned
- 63 Post(s)
- Tagged
- 3 Thread(s)
yes, i believe it does -- but just the attribute, not the HTML tag itself
here's what i use --Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> ...
-
May 14, 2009, 19:09 #32
- Join Date
- Jan 2008
- Location
- Hot Springs, Montana
- Posts
- 195
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanks R,
However, one note: I had to insert a forward slash at the end of the meta statement to get it to "validate" using my editor tool. For now I'm just using the homesite validator tool... which has its shortcomings...
-
May 14, 2009, 21:41 #33
- Join Date
- Nov 2004
- Location
- Ankh-Morpork
- Posts
- 12,158
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
You should state the natural language of the document in the root element. I don't know if screen readers support it, but it's helpful for search engine spiders and lets users search for content in a specific language.
Code HTML4Strict:<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Document Title</title> </head>
Birnam wood is come to Dunsinane
-
May 15, 2009, 05:16 #34
- Join Date
- Aug 2007
- Location
- Netherlands
- Posts
- 10,287
- Mentioned
- 51 Post(s)
- Tagged
- 2 Thread(s)
Originally Posted by Tommy
<h1>blah blah blah blah</h1>
<p lang="nl">blah blah blah blah blah</p>
then it'll say
Blah blah blah blah
Dutch blah blah blah blah.
My version 7 comes with a few other languages including it seems Portuguese. The coder for us is using anchors for users to select their desired language, and the name of the language is set with the lang attribute. So what happened was, as I went through the page, each name of the language was read out properly if I had the language for it, but then the last flag is Portugal, so the rest of the page got read out in Portuguese pronunciation : ( I guess because it was the last language mentioned, even though the lang attribute is supposed to be limited to the element it's in. The page is set to nl in the HTML element AND with the lang meta both.
Though thinking now, maybe I accidentally clicked on Portugal? I don't think so because I didn 't go back to the beginning of the page... instead the h1 came next, Dutch words with Portuguese pronounciation. It was lawlers. But not cool.
Setting language with a link I guess isn't the smartest in the first place, since things like Faster Fox would try to pre load it anyway. We sure don't have the correct headers in place to prevent it : (
-
May 15, 2009, 08:57 #35
- Join Date
- Jan 2008
- Location
- Hot Springs, Montana
- Posts
- 195
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Ok, thanks.
-
May 15, 2009, 10:32 #36
- Join Date
- Nov 2004
- Location
- Ankh-Morpork
- Posts
- 12,158
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
-
May 15, 2009, 11:37 #37
- Join Date
- May 2009
- Posts
- 5
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
What is the exact difference between HTML and XHTML??
-
May 15, 2009, 12:55 #38
- Join Date
- Sep 2005
- Location
- Sydney, NSW, Australia
- Posts
- 16,875
- Mentioned
- 25 Post(s)
- Tagged
- 1 Thread(s)
They are two totally different languages intended for two completely different purposes.
See http://www.sitepoint.com/forums/showthread.php?t=393445Stephen J Chapman
javascriptexample.net, Book Reviews, follow me on Twitter
HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
<input name="html5" type="text" required pattern="^$">
-
May 18, 2009, 01:42 #39
- Join Date
- Aug 2007
- Location
- Netherlands
- Posts
- 10,287
- Mentioned
- 51 Post(s)
- Tagged
- 2 Thread(s)
I thought the point was that it would automaticallly switch over to the Dutch speech module (if installed) and pronounce those words properly.
You can imagine how difficult it is to test anything-- usually I have to make Engrish versions of everything or I can't follow.
Bookmarks