Wickham's Profile
Reputation: 233
Excellent
- Group:
- Moderators
- Active Posts:
- 2,671 (2.74 per day)
- Joined:
- 11-June 09
- Profile Views:
- 12,008
- Last Active:
Today, 07:42 PM- Currently:
- Offline
My Information
- Member Title:
- Web Guru
- Age:
- 69 years old
- Birthday:
- January 1, 1943
- Gender:
-
Male
- Location:
- Salisbury UK
- Interests:
- Mountain-biking on farm tracks and footpaths over the chalk downs near my home; environment and animals generally
Contact Information
- E-mail:
- Private
- Website URL:
-
http://www.wickham43.com/
Users Experience
- Experience:
- Intermediate
- Area of Expertise:
- Web Developer
Latest Visitors
-
Stephen Axe 
17 Jan 2012 - 11:31 -
FashionCore 
29 Dec 2011 - 22:39 -
sash_oo7 
27 Dec 2011 - 10:03 -
RobbieD90 
18 Dec 2011 - 14:00 -
predatorx 
17 Dec 2011 - 19:30 -
Bulley 
10 Dec 2011 - 23:16 -
Northpad 
05 Dec 2011 - 17:11 -
takeroot 
29 Nov 2011 - 09:08 -
empek 
23 Nov 2011 - 20:29 -
Dizi 
20 Nov 2011 - 19:51
Topics I've Started
-
Closing tags in HTML5
23 December 2011 - 08:02 AM
Read this:-
http://tiffanybbrown...f-closing-tags/
and then wade though this extremely long W3C HTML5 working draft:-
http://dev.w3.org/ht...normal-elements
and notice that it uses > without a space/slash:-
<meta http-equiv="Refresh" content="20; URL=page4.html"> <hr> <p><img src="carouge.svg" alt="The coat of arms depicts a lion, sitting in front of a tree."></p> <p>P. Sherman<br> 42 Wallaby Way<br> Sydney</p>
but note that the <p> is closed with </p> whereas in old HTML the </p> could be omitted and only > used. HTML5 spec says "A p element's end tag may be omitted [ just > instead of the full end tag </p> ] if the p element is immediately followed by an address, article, aside, blockquote, dir, div, dl, fieldset, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, hr, menu, nav, ol, p, pre, section, table, or ul, element, or if there is no more content in the parent element and the parent element is not an a element."
hr img and br are not shown with a space/slash.
I don't use self-closing tags like
<p>The coat of arms depicts a lion, sitting in front of a tree. />
but it seems that these are allowed (for meta tags too, I suppose). I haven't really got my head around where closed tags, unclosed tags and self-closed tags can be used and what happens in older browsers like IE7 or IE8. Personally, I've gone back to html4 type coding for html5 with <br> etc. HTML5 is still in draft and an experimental feature but it can be used (with a little risk I suppose that some things may change). -
Hotlinking protection for html email images
06 October 2011 - 07:54 AM
I added a .htaccess file in my public_html directory because some of my images were being used, and the hotlinking protection works well (I tested from another domain, while my domains are listed as exceptions).
However, when I send an html email with an image from the same domain server the hotlinking protection works to sustitute another image, but I don't want it to work in my email!
I think this is because although the php procees file is inside the public_html directory, the mail function must be using the mail directory which is outside the public_html directory.
Do you think I can add the same .htaccess file to the mail directory? I used the server cPanel menu to add the file inside the public_html directory but it didn't add another in the mail directory, so I don't know whether it's possible.
Help




Find My Content
Display name history