Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > A Name

Reply
Thread Tools

A Name

 
 
thedarkman
Guest
Posts: n/a
 
      10-29-2011
This is my latest effort

http://validator.w3.org/check?uri=ht...Inline&group=0

899 errors and 2 warnings. Can someone tell me what the warnings mean?
And what they might be?

Some errors appear to be cumulative because when I took out 34 errors
the number dropped from around 990 to 899.

A couple of points; when I learned the basics I read that some codes
don't need closing, especially <br> and <p>, so I left them out. I
noticed that when you close with </br> you get an extra space between
lines that I didn't want.

Incidentally, I have never used Frontpage. I code manually most of the
time using notepad or even WordStar 6, a DOS program I still use every
day.

 
Reply With Quote
 
 
 
 
Denis McMahon
Guest
Posts: n/a
 
      10-29-2011
On Sat, 29 Oct 2011 12:01:13 -0700, thedarkman wrote:

> A couple of points; when I learned the basics I read that some codes
> don't need closing, especially <br> and <p>, so I left them out. I
> noticed that when you close with </br> you get an extra space between
> lines that I didn't want.


<br> doesn't need closing in html. <p> doesn't need closing in html, but
it's good practice to close paragraphs.

Rgds

Denis McMahon
 
Reply With Quote
 
 
 
 
Jonathan N. Little
Guest
Posts: n/a
 
      10-29-2011
thedarkman wrote:
> This is my latest effort



What happended to "the final word on my limerick page" I won that bet.

>
> http://validator.w3.org/check?uri=ht...Inline&group=0
>
> 899 errors and 2 warnings. Can someone tell me what the warnings mean?
> And what they might be?


Because you are unable to 'copy and paste' in addition to 'do HTML'. You
removed the doctype declaration that Edwin correctly added to your code.

Question: What is the reason for your aversion to simply closing your
anchor elements?


--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
Doug Miller
Guest
Posts: n/a
 
      10-29-2011
On 10/29/2011 3:01 PM, thedarkman wrote:
> This is my latest effort
>
> http://validator.w3.org/check?uri=ht...Inline&group=0
>
> 899 errors and 2 warnings. Can someone tell me what the warnings mean?
> And what they might be?


Never mind the warnings. Fix the 899 errors first.
>
> Some errors appear to be cumulative because when I took out 34 errors
> the number dropped from around 990 to 899.
>
> A couple of points; when I learned the basics I read that some codes
> don't need closing, especially<br> and<p>, so I left them out.


<br> didn't -- and in HTML, still doesn't -- need closing. It does in XML.

<p> on the other hand has always been required to be accompanied by </p>.

> I noticed that when you close with</br> you get an extra space between
> lines that I didn't want.


Try using it correctly: <br/>
>
> Incidentally, I have never used Frontpage. I code manually most of the
> time using notepad or even WordStar 6, a DOS program I still use every
> day.


Coding manually makes it even more important for you to learn how to
code *correctly*.


 
Reply With Quote
 
Denis McMahon
Guest
Posts: n/a
 
      10-29-2011
On Sat, 29 Oct 2011 17:45:12 -0400, Doug Miller wrote:

> <p> on the other hand has always been required to be accompanied by
> </p>.


I beg to differ. Quoting the w3.org online HTML 4.01 spec:

9.3.1 Paragraphs: the P element

<!ELEMENT P - O (%inline* -- paragraph -->
<!ATTLIST P
%attrs; -- %coreattrs, %i18n, %events --
>


Start tag: required, End tag: optional

Rgds

Denis McMahon
 
Reply With Quote
 
Doug Miller
Guest
Posts: n/a
 
      10-29-2011
On 10/29/2011 5:58 PM, Denis McMahon wrote:
> On Sat, 29 Oct 2011 17:45:12 -0400, Doug Miller wrote:
>
>> <p> on the other hand has always been required to be accompanied by
>> </p>.

>
> I beg to differ. Quoting the w3.org online HTML 4.01 spec:
>
> 9.3.1 Paragraphs: the P element
>
> <!ELEMENT P - O (%inline* -- paragraph -->
> <!ATTLIST P
> %attrs; -- %coreattrs, %i18n, %events --
> >

>
> Start tag: required, End tag: optional


Thanks for the correction, Denis.
 
Reply With Quote
 
Denis McMahon
Guest
Posts: n/a
 
      10-29-2011
On Sat, 29 Oct 2011 18:40:23 -0400, Doug Miller wrote:

> On 10/29/2011 5:58 PM, Denis McMahon wrote:
>> On Sat, 29 Oct 2011 17:45:12 -0400, Doug Miller wrote:
>>
>>> <p> on the other hand has always been required to be accompanied by
>>> </p>.

>>
>> I beg to differ. Quoting the w3.org online HTML 4.01 spec:
>>
>> 9.3.1 Paragraphs: the P element
>>
>> <!ELEMENT P - O (%inline* -- paragraph --> <!ATTLIST P
>> %attrs; -- %coreattrs, %i18n, %events
>> --
>> >
>> >

>> Start tag: required, End tag: optional

>
> Thanks for the correction, Denis.


It's still IMO best practice to close <p> elements with </p> though, even
if it's 'optional' - but then I'm pretty firmly sat in the corner of
"text must be enclosed in an appropriate block level text element" anyway.

Basically because when I started writing html in the mid 90's it was the
way everyone said to do it, and although now you don't have to do it,
I've never seen any convincing reason not to.

Rgds

Denis McMahon
 
Reply With Quote
 
picayunish
Guest
Posts: n/a
 
      10-30-2011
On 29-10-2011 23:45, Doug Miller wrote:
> On 10/29/2011 3:01 PM, thedarkman wrote:
>> This is my latest effort
>>
>> http://validator.w3.org/check?uri=ht...Inline&group=0
>>
>>
>> 899 errors and 2 warnings. Can someone tell me what the warnings mean?
>> And what they might be?

>
> Never mind the warnings. Fix the 899 errors first.
>>
>> Some errors appear to be cumulative because when I took out 34 errors
>> the number dropped from around 990 to 899.
>>
>> A couple of points; when I learned the basics I read that some codes
>> don't need closing, especially<br> and<p>, so I left them out.

>
> <br> didn't -- and in HTML, still doesn't -- need closing. It does in XML.
>
> <p> on the other hand has always been required to be accompanied by </p>.


perhaps is the closing tag for paragraph not needed for html 4.01 but
for xml / xhtml is the closing tag needed.

http://www.webstandards.org/learn/faq/#p2131
[qoute]
XHTML 1.0 also uses the model of three DTDs: Strict, Transitional, and
Frameset. This model originally emerged in HTML 4.0 and followed through
to HTML 4.01.

Some important technical practices from XML onto XHTML includes:

That all document types are declared via the correct DOCTYPE
declaration
That the structure of a conforming document contain the DOCTYPE
declaration, an html element with the XHTML namespace declared, a head
element including the title element, and a body element
That all elements and attribute names are written in lower case,
and that all attribute values are quoted
That all non-empty elements (e.g. p, li) are properly terminated
with a closing tag
That all empty elements (e.g. br, hr, img) are properly terminated
with a trailing slash (<br />)
That documents validate against the DTD that is declared
[/qoute]

--
Edwin van der Vaart
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
adding a variable name to a hash to name is part of the variable name Bobby Chamness Perl 2 04-22-2007 09:54 PM
print("my name is {name}, and {age}-year old {gender}", name, age, gender); =?iso-8859-1?B?bW9vcJk=?= Java 7 01-02-2006 04:39 PM
IE name="name" & form.name property bug Java script Dude Javascript 5 06-30-2004 03:07 AM
name = name.substring(0, name.lastIndexOf('.')); Help please Jack-2 Javascript 3 12-24-2003 04:39 PM
Re: Urgent! how to get object name, method name and attribute name based on the strings? ding feng C++ 2 06-25-2003 01:18 PM



Advertisments