jlhaslip
Nov 19 2006, 02:07 AM
This code: CODE <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>HTML 4.0 Strict document</title> <meta http-equiv="content-type" content="text/html;charset=utf-8" > <meta http-equiv="Content-Style-Type" content="text/css" > </head>
<body>
<p>... Your HTML content here ...</p> <p>... More HTML content here ...</p> </body> </html> represents a minimum, acceptable web-page according to the W3C which is the organisation that sets the standards for the World Wide Web, or as we call it, the Internet. In another Tutorial, you can learn about the html code, but in this Tutorial, I wish to emphasis the importance of the DTD or Document Type Declaration, the first line in the sample code above. What it does is tells the Browser that a certain set of rules are to be applied to this page when the Browser renders the document. In this case, the author expects the Browser to use the rules as defined by the W3C for their Html 4.0 Strict documents and the rules are available at the link described in the DTD. (http://www.w3.org/TR/html4/strict.dtd). This ruleset is public as declared in the DTD. The importance of using a DTD is that 'most' Browsers will display the document in a specific manner, according to the rules as defined by the DTD in use. Of course, there are exceptions and we all know the Browser by name , but let's not get into Browser wars here. Without using a DTD, or using an incorrect one for the code you insert in the page, the Browser will be forced to interpret the code in a manner it deems appropriate, regardless of the known standards, so there will be a larger variation in the Browser rendering of the page in 'Quirks' mode. Without the DTD, each Browser uses its own set of rules and the output can be different in each Browser, so if you are experienceinfg difficulties with cross-browser rendering, also ensure the DTD used in a page is a correct, valid one for the code you have used on the page. The DTD used above is html4.0 Strict. If you intend on using it, ensure your code does not include elements which are invalid for that standard, or expect the Browser to display your page in Quirks Mode, and unpredictable results may occur. There are, of course, other DTD's and a good source of them is at the W3C site. Any questions, post here and I will do my best to answer them.
Reply
Similar Topics
Keywords : document, type, declarations, html, pages
- Naming Web Page Files
Which way you like- MyPage.html or my-page.html or my_page.html (5)
Add Flashing Inbox To Invisionfree Forum
Html code for invsiionfree!! (0) Do you find it annoying when you are on your invisionfree forum, and you get a new message, and it
ends up taking you 5 minutes to notice? This code makes the inbox link flash bold red saying how
many messages you have. In version 1 the word inbox stays the same, and doesnt change at all (for
Example this is flashing: Inbox (2) In version 2 (the second code) the word inbox changes to
messages (constantly, so that if you have none, it says messages (0) instead of inbox (0). It still
flashes Red Put the following In the Header and Body Section (Admin Cp>>>Skinning ....
Canadian Dcma-type Bill Introduced
Canada's version of the Digital Millennium Copyright Act (1) Today on June 12, 2008, Industry Canada Minister Jim Prentice introduces the Canadian version of the
Digital Millennium Copyright Act. This means that Canada will also seek to prosecute and sue average
citizens through the monitoring of bit torrent and p2p sharing clients and tracking IP addresses
with fake trackers. In 1998, the Digital Millennium Copyright Act has be passed in the United
States, causing over tens of thousands of downloaders their lifetime's savings, due to the high
lawyer fees and outrageous fines. In an attempt to protect copyright holders, this....
What Is The Best Free Html Editor?
(8) im looking for any kind that is free really.... i use windows but if you have one for a different
platfor, go ahead and add it for reference for other users. If you have one for normal text editor
and wysiwyg, add them both. i have been using notepad as my normal html editor but im looking for
something different... at least so i can see the different colors of the codes. Right now i am
downloading moxilla's seamonkey suite but im not sure how good it is... i will post a review if
i ever use one. If you have used the html editor you suggest or you just heard abou....
Html Problem
(9) how to make my intro page in the middle not CENTER ....
Flash Media Into Html/css Website
does anyone know how to import a flash into a webpage with transparenc (1) Hi I need some help , Im designing this website for school studies However, I made a flash drop down
menu, works perfectly, but you know how flash has a background when you export it in to a SWF file?
For example my flash is width= 800, and height = 200 but my div box on my html page for my
navigation is only 50 px my buttons is width of 50px and the rest of the content is the drop down
animations i want to insert it into my navigation div box but i want to set the flash background to
transparent so that when the drop down menu comes down it overlaps the text or whateva....
Mime Type Trouble
(3) I have been trying to validate my site with xhtml 1.1 and I am supposed to serve it as an
application vs. text/html... 1. It recommends changing to .xml or .xhtml extension but when I do
this in my home folder it doesn't recognize the extension and calls is text/generic. 2. Yes, i
have added the mime type in apache, but I don't know why it doesn't recognize it?? It
recognized a pearl script I made. 3. I also tried adding a perl script to the top of my pages to
declare mime type but it doesn't seem to be working. How can I get cpanel to recognize these ....
Learn Html, Css, C And C++ Online For Free
Wanna learn to write programs and/or make websites? You can do it fre (12) Have you ever used an application or played a game and thought, "If you could only..." or "If I knew
how I would add..." but didn't know where to start? I did and decided to do a lil research. I
came across a site with great tutorials. There are many ranging from beginner all the way to
advanced. After each tutorial there is a test to practice what you just learned. I dunno if I am
allowed to post the url to these sites here due to spam filters but I will say that if you search
for "c programming" in any major search engine it should be the first link (after the....
Html Form!
Using MySQL?! (4) Hey, I need your help again! I need some good working tutorial how I can update my SQL through
HTML form. I did use some tutorials online found with the help of google; but they do not work
properly; I mean there are still small mistakes. I need to have a good tutorial to follow. It
should be based on security and more things. It has to be done in proper way.......
A Twist On Basic Authentification
html help (1) Alright, i am working on a website where a number of different users from different companies will
be looking hooking into one website. What i want is to know how i can differentiate between the
users based on the information passed by the webserver. I've been told to that information
will be passed along html_user(and if i have a distinct user then i can just query the database with
that info and get what i want) But how does this work? I am sorry i know this is cryptic i'm
kind of searching to see if this strikes a bell with anyone. So to sum, many user....
Html Page Not Showing Up In Firefox
(1) Hi, I've tried to make a webpage in HTML using the frameset tag. Here is the code of the
webpage Sai's Makeshift Wiki And it's not displaying in Firefox. (I
mean is shows a blank page) It will show up in safari (I'm a mac user), all pages individually
work on firefox, just not the above page. Any ideas as to why? Thanks....
Has Anybody Tried Ms Expression Web Html Editor
It's much better than Frontpage (3) I was desperate to finish a site I was designing after I lost my hard drive and my software. I
downloaded Expression Web from the Microsoft site for a 3 month free trial, and guess what? It's
surprisingly good! Nothing like that crappy frontpage, it's standards compliant and very
good for writing CSS. Haven't heard anybody mention the program and wondering if anybody else
has tried it out. It's free to try from the MS site.....
Best Html Webdesign Studio
Make A Website Very Easily (2) QUOTE Antenna enables you to make great looking web sites rapidly. Create a professional web
site to promote yourself or your company. You can create your own web pages and digital photo
galleries in minutes, without any HTML knowledge. You can also create smooth gradient backgrounds
and attractive glossy buttons without switching between applications - it's all built in!
And Many More Download Antenna Web Design Studio 15 Days Trail Now For Free.
http://www.stormdance.net/ copied from
http://www.stormdance.net/software/antenna...%20overview.htm....
Simple Javascript And Password System
How to protect your pages with password (6) The quickest way to get a password protection system up and running is to use a Prompt box in
JavaScript that has a title like "Enter your Email Address". Only you and the relevant users know
what the password should be, could even be one each, that can be sorted out at the next page then
pass the "input" directly through the url by changing the .href, like
http://www.iSource.net.nz/users/?leTmeIn= The page that then processes this should also check for
the referring page, and three fails from an IP if you like the php (the next page): CODE
<?php // processdo....
Where Is There A Good Site To Learn Web Html?
(18) im a noob when it comes to web html to design web sites, can some one tell me where to find a good
website that has good tutorials on how to use web html?....
Html Code Tester. Online Script
(15) Yes, yes. I have another script that I have written and I am distributing. I am not entirely sure if
this works. I have not tested it yet, but I will later and post back with a demo and fix it up.
Current script: CODE <?php //Save this as something like htmltest.php function
CheckForm() { $html_unsafe=$_POST['code']; //Gives us our user
input $html_safe=str_replace("<?php"," ",$html_unsafe);
//Starts security measures $html_safe=str_replace("?>","
",$html_sa....
Help! Php Or Just Html?
i want to start buliding my website. which is better, php or basic htm (13) i try to start this topic in webhost category but it seems like i cant. i dont have the permission
so i just post my topic here. im sorry mod.. i want to build a website which contains: - Links to
videos - Informations - photos - flash i don't know if i should use php or just HTML. guys,
what are your opinions..??....
Problem With Firefox, Latest Version, Not Loading Pages
any ideas? (4) Hi all Ive had this problem for a little while now, i cant say exactly when but it started with
sites such as youtube and has spread out from there really, the biggest culprits are youtube and
myspace. The issue is that if i was on youtube and wanted to watch a video i would obviously click
the link, firefox would then show the loading bar and my page loading timer would start but it would
never actually begin loading, the status bar would say "loading" or if i clicked the link again it
would show "stopped" yet the loading bar would be there. Needless to say the loadin....
Learn Html Quick And Easy
HTML, javascript, and CSS (14) well eversince i got interested in web desighn i've looked for tutorials but they where not that
helpfull and uderstanderble but there where two web sites that i liked 1. my favorite one was
htmldog it had tutorials on HTML, CSS, and a little bit of javascript. they where very
comprehenseve . and i read through all of them, understoode them, in about less than a week. also
has full references for HTML, and CSS tags. 2.since html dog did not provide realy good javascript
tutorial i looked to w3school for that while it wasnt very understandable too me, maybe it....
Bloobs
Fun puzzle type shooting game (5) Anyone heard of Bloobs ? You shoot pieces called Bloobs to form 3 bloobs. Then it clears the
pieces. You do this until all bloobs clear off the screen. It is fun and mildly addictive. I am
writing a guide for this game, so people can become more aware of it and play better. /smile.gif"
style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> Try it and see. NOTICE: The
page may not display properly in Opera. It will display in Avant Browser, Netscape, IE, Maxthon and
Mozilla/SeaMonkey.....
Rpg Maker 2003
Does anyone use this or any other type of game maker? (7) Hi i just recently installed RPG Maker 2003 on my computer and it seems preety good so far of what
i've seen, I used RPG maker 95 a wile ago and found that anoying, frustrating and just plain
crap with basically no customization, But this one looks much better. Does anyone use this or any
sort of similar type of program?....
Adding Rows & Columns In Html Table Using Javascript
(1) I'm trying to create a website with a form that collects some user information to store in MySQL
database. However, I've a problem when I want to dynamically add new rows and columns in the
HTML table so that the user can add more information in the dynamically added textboxes. Here's
what I have: CODE <table border="0" width="90%"
align="center" id="itemsTable"> <tr>
<td width="20%"> Quantity
<....
Html Countdown For Your Wallpaper For Your Computer?
(5) Can you have a HTML countdown for your wallpaper for your computer? I know you can have a animation
wallpaper for your computer. But can you have a HTML countdown as your wallpaper? I want to use a
HTML countdown for my wallpaper for my computer. So the wallpaper for my computer would be a HTML
countdown. Can you/does anyone know how to put a HTML countdown for your wallpaper for your
computer?....
How To: Make A Simple Php Site
Making one file show up on all pages using php (21) I have looked all over the site and could not find anything that was like this simple, or just like
this at all.. For some people i know that you are using a basic HTML site...and having a big menu
if you want to add somthing you have to go into every one of the pages and add or remove or edit
what you want to do, but with somthing verry simple all you would have to do is edit one file, and
all of the pages that have the PHP script on them would suddenly change to what that one file is.
So to start off if you are planning on using this little tirck, the page that you a....
How Fast Can You Type The Alphabet?
Warning: addictive. (63) http://www.morpheme.co.uk/frenzy/ - This game is very addictive for me, but it is good practice
for knowing where all the letters are if you are not that great at typing. Also if you have a chance
check out the video section they have, there are 3 videos I think but the people are really fast at
typing the alphabet. - My record was 4.207 I could probaly get faster but I put alot of time doing
this nd dont want to get too addicted to it. - Post your times heres.....
Html Tag For A Code Box
Where You Put HTML Code For Your Users (4) Well I have seen it all over the web. Lots of sites have code boxes so you can promote them or they
show you a code you can use for javascript and stuff like that. I would like to know the HTML code
for those boxes. Thanks in advance for your help.....
The Best And Free Website/html Editors + Text Editors
A good collection! Check it out. (48) Here they are, the best html editors. Just pick one because they are all free, or choose one of the
ones i most recommend. WebCore Designer 2005 http://www.mpsoftware.dk/webcoredesigner.php
HTMLGate Free http://www.mpsoftware.dk/htmlgate.php Ma Page Web http://www.aldweb.com
MAX's HTML Beauty++ 2004 http://www.htmlbeauty.com WebWorks http://w1.213.telia.com
PageBuilder HTML Editor http://www.tafweb.com Website Mentor http://www.dark-street.com
Cascade DTP http://www.price-media.demon.co.uk BPlainPro http://home5.swipnet.se/~w-52253/hy....
Test Your Php Pages W/o Upload/internet
complete *working* guide on how to test your php pages (57) In this tutorial, I'm going to show you how to test your PHP pages without the Internet or
uploading the files to your trap17 server. This tutorial is similar to doom's, but the links he
provided does not work, so I decided to make my own tutorial with working links. The program that I
will be using for this tutorial is called XAMPP . XAMPP is a modification of the popular Apache
server, and I'm using XAMPP because of its simplicity to install as well as maintain. The
current version of XAMPP is 1.4.13 and it has the following bundled in the download: QUOT....
Does Anyone Know Where I Can Get A Free Html Maker
(13) I was curious. There is a program clled dreamweaver which does what I want but it cost to much.....
where did you learn html from?
(84) HI, i am intresting in knowing where you began learning html of what inspired you to start learning
html. which programs did you use or which progs dyu use?....
Looking for document, type, declarations, html, pages
|
|
Searching Video's for document, type, declarations, html, pages
|
advertisement
|
|