RootsWeb.com Mailing Lists
Total: 2/2
    1. Re: [FreeHelp] The basic HTML Document
    2. Joe - Wakefield
    3. Using HTML5 (which is what this code is) causes errors in the footer inserted by Rootsweb. cellpadding, cellspacing and border are creating these invalidations. Can this be rectified, please. Joe Wakefield On 25 February 2012 02:33, Barry Carlson <barrycarlson@clear.net.nz> wrote: > Following some recent posts on FreeHelp, I noticed that the odd page for > which an url had been provided failed to conform to the basic HTML mark-up. > > Many pages will display with missing mark-up, as the average browser does > try to make sense of the mark-up it is given to parse. However, there can > be > occasions even the browser gives up, and the outcome can be anything other > than desired. One other problem commonly found with pages rendered on > FreePages is the Rootsweb masthead and/or footer banners are displaced and > often affect the legibility of the page content. > > All this can be overcome by the use of some very basic HTML mark-up before > you enter the content that you want displayed, e.g. > <!--code> > > <!DOCTYPE html> > <html> > <head> > <meta charset="utf-8"> > <title>My Page Name</title> > <style> > My styles go here > </style> > </head> > <body> > My Content goes here > </body> > </html> > > <code--> > Pretty simple eh? So with that in mind, the simplest content you can insert > is some text with a <pre> tag enclosing it, i.e. > > <pre>Lorem Ipsum Dolor etc.. and more of the same!</pre> > > .. and that will display in mono-spaced type in all browsers just as you > typed it, including the 'white space' - with one proviso, and that is; if > you have used a word-processor, any quotation marks of the left/right > variety will normally not be recognised by the browser. This results in > some > 'odd-ball' default symbol replacing the offending quotation mark. The > solution is to open the page in a Text Editor - Notepad will do, but free > ones such as Araneae or PSP are more user friendly. Use the Search & > Replace > function to change the the quotation marks to either &ldquo; &rdquo; > (left/right double quote) or &lsquo; &rsquo; (left/right single quote). > Ideally they could all be replaced with either the vertical double/single > quote the Editor will insert from your keyboard. > > I suggest that you Copy & Paste the basic mark-up shown above (excluding > the > <code> tags) into your Text Editor and Save As !HTML.html in your webpage > folder. Now open the folder in Explorer, go to the file and right-click on > it and select Properties from the drop-down menu. Click Read-only, then > Apply and Close. You now have the start file for any page you wish to > start, > and to save your added content, Save As with a "file-name.html" of your > choice. You may wish to add some refinements to your !HTML.html file, such > as <link rel="stylesheet" href=""> in the <head> section, or add a > permanent > <div id="wrapper"> and <div id="content"> plus their closing tags in the > <body> section, but that is up to you. > > Using <!DOCTYPE html> ensures that a browser opening your page knows that > it > can parse it in Standards Mode, and furthermore, no closing of single tags > such as <meta>, <image>, <br>, <hr> is required. There is also no need to > use type="text/css" in <style> or <link rel="stylesheet" href=""> tags or > similar type declarations elsewhere such as <script > type="text/javascript">. > The browser knows the tag name and can quickly determine the data type for > itself. > > The content is up to you - text, images, tables etc.., but how you glue it > all together can be a challenge. If you need to know how to do any type of > styling, all you need to do is ask on this list, and if you don't know what > to ask, tell us what you would like to do. Remember, its dumb not to ask, > and asking will make you and others wiser! > > Barry > > > > ------------------------------- > To unsubscribe from the list, please send an email to > FREEPAGES-HELP-request@rootsweb.com with the word 'unsubscribe' without > the quotes in the subject and the body of the message >

    02/24/2012 11:29:49
    1. Re: [FreeHelp] The basic HTML Document
    2. Barry Carlson
    3. On Saturday, February 25, 2012 7:29 PM (UTC+13) Subject: Re: [FreeHelp] The basic HTML Document Joe wrote:- > Using HTML5 (which is what this code is) causes errors in the footer > inserted by Rootsweb. > cellpadding, cellspacing and border are creating these invalidations. > Can this be rectified, please. -------------------------------- Joe, The Rootsweb banners are HTML4 XHTML and the cellpadding, cellspacing and border declarations in the Footer are valid. When using an HTML5 Validator, those same declarations report as invalid, but they are valid HTML, just deprecated in HTML5. All browsers treat deprecated code as valid and render it in their legacy mode. More importantly, the hosted content of the Rootsweb page is valid and the banners can be considered as valid though deemed deprecated due to the hosted page using the <!DOCTYPE html>. At least the browser will run in Standards Mode rather than adopting Quirks Mode when confronted by a hosted page with no Doctype, or even worse, missing html or body tags! I think the aim of the exercise is to write good HTML, and there will always be a validation conflict when HTML3, HTML4 or HTML5 standards and variants become mixed. Barry

    02/25/2012 03:12:57