473,387 Members | 1,476 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Why does this not validate?

Hi!

On my website (http://michaelsremarks.blogspot.com/) I use a so called
flickr-badge. That's some source-code that makes it possible to show a
random image out of my gallery on flickr.

Now my problem is that this code does not validate on xhtml 1.0
strict. Can please somebody help me get this code right, so that it
validates? (I am not guru enough to do this by myself.)

The not validating source code is the "picture" beneath the
sidebar-caption "Aktuelles Bild".

Thanks,

Michael
Jul 23 '05 #1
3 2221
On 29 Oct 2004 07:18:35 -0700, Michael Kalina <m.******@gmail.com> wrote:
On my website (http://michaelsremarks.blogspot.com/) I use a so called
flickr-badge. That's some source-code that makes it possible to show a
random image out of my gallery on flickr.

Now my problem is that this code does not validate on xhtml 1.0
strict. Can please somebody help me get this code right, so that it
validates? (I am not guru enough to do this by myself.)


Change all those & to &amp;

Steve
Jul 23 '05 #2
Els
Michael Kalina wrote:
Hi!

On my website (http://michaelsremarks.blogspot.com/) I use
a so called flickr-badge. That's some source-code that
makes it possible to show a random image out of my gallery
on flickr.

Now my problem is that this code does not validate on xhtml
1.0 strict. Can please somebody help me get this code
right, so that it validates? (I am not guru enough to do
this by myself.)

The not validating source code is the "picture" beneath the
sidebar-caption "Aktuelles Bild".


Your <a> element in that bit of code should be wrapped in a
<div> or a <p>, which I think would normally sit inside a
<noscript> element. Not needed for validation though afaik.

In the <img> element an alt attribute is required.

Also the last <script> should have type instead of language.

Like this it would validate:
<script type="text/javascript" src="http://www....."></script>
<noscript><div><a href="http://www....."><img
src="http://www......" class="flickrimg" id="flickrimg1"
alt=""></a></div></noscript><script type="JavaScript"
src="http://www...."></script>

Plus what Steve said :-)

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Twarres - Between Two Houses
Jul 23 '05 #3
"Steve Pugh" <st***@pugh.net> wrote in message news:<opsgmyljfk06el5p@staff6>...
On 29 Oct 2004 07:18:35 -0700, Michael Kalina <m.******@gmail.com> wrote:
On my website (http://michaelsremarks.blogspot.com/) I use a so called
flickr-badge. That's some source-code that makes it possible to show a
random image out of my gallery on flickr.

Now my problem is that this code does not validate on xhtml 1.0
strict. Can please somebody help me get this code right, so that it
validates? (I am not guru enough to do this by myself.)


Change all those & to &amp;


This was just too easy. Thank you very very much!

Michael
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Megha Vishwanath | last post by:
Hi, I have a struts form <html:form> in which although the focus rests on the submit button, hitting the enter key does not submit the form. I tried capturing the Enter key event and followed...
1
by: Mad Scientist Jr | last post by:
I have a textbox control (for simplicity call it Text1) with autopostback turned on. It has a couple validators: RequiredFieldValidator_Text1 RegularExpressionValidator_Text1 The Text1...
5
by: Jim Heavey | last post by:
When should you use the Page.Validate() method? I thought you would use this method if you have some Server side validation (CustomControl's) you wanted to use and this would cause them to be...
22
by: Gianni Rondinini | last post by:
hi all. please excuse the misusage of some tech terms, but writing in english is not as easy as in italian :) i'm designing our new website and, since i want to do something that will last as...
11
by: cj | last post by:
Public Class MyStringLogger Private Shared m_loglock As New Object Public Shared Sub Write(ByVal str As String) SyncLock (m_loglock) Dim sw As New System.io.StreamWriter("c:\validate.log",...
1
by: dlutz | last post by:
Hello to all -- I am familiar with Xml in general and NET 1.1 Xml, but I am new to the ..NET 2.0 changes in System.Xml. I am trying to validate an XML document that is based on a schema that...
6
by: Andy Fish | last post by:
Hi, From what I can gather, under Asp.Net 2.0, it is safe to put data and config files underneath the app_data in the web root and they will not be served directly to the browser from a URL. ...
24
by: Mike Hofer | last post by:
Please forgive the cross-post to multiple forums. I did it intentionally, but I *think* it was appropriate given the nature of my question. I'm working on an open source code library to help...
1
by: Kyle Morris | last post by:
so the challenge is how to create a regex that validates a control when it doesnt contain particular words or phrases. I've used the validator plenty of times to validate correct input in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.