A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Windows 10 » Windows 10 Help Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Error: Stray start tag script.



 
 
Thread Tools Rate Thread Display Modes
  #1  
Old January 3rd 19, 01:16 AM posted to comp.infosystems.www.authoring.html,alt.html,alt.comp.os.windows-10
dale
external usenet poster
 
Posts: 139
Default Error: Stray start tag script.

Hi,

I am getting a HTML error when I use the W3C Nu checker on my site

https://www.dalekelly.org/

https://www.dalekelly.org/

Error: Stray start tag script.
From line 105, column 2; to line 105, column 9
/body↩↩ script'undef

while I am searching for lines, columns and potential syntax errors,
could anyone find the solution?

Note, I have a CSS for my main 5 pages. Error seems to have just showed
up lately.

There is an HTML and CSS checker button on each page. No errors when I
run the CSS checker on each page.

Occurs on Windows 10 with same error on Edge, Chrome, Internet Explorer
and Firefox browsers.

You can find the CSS scripts and code for all pages on:

https://github.com/dalekellytoo/website

https://github.com/dalekellytoo/website


--
dale - https://www.dalekelly.org/
Not a professional opinion unless specified.
Ads
  #2  
Old January 3rd 19, 01:59 AM posted to comp.infosystems.www.authoring.html,alt.html,alt.comp.os.windows-10
Good guy
external usenet poster
 
Posts: 13
Default Error: Stray start tag script.

On 03/01/2019 00:16, dale wrote:
Hi,

I am getting a HTML error when I use the W3C Nu checker on my site

https://www.dalekelly.org/

https://www.dalekelly.org/

Error: Stray start tag script.
From line 105, column 2; to line 105, column 9
/body↩↩ script'undef

while I am searching for lines, columns and potential syntax errors,
could anyone find the solution?

Note, I have a CSS for my main 5 pages. Error seems to have just
showed up lately.

There is an HTML and CSS checker button on each page. No errors when I
run the CSS checker on each page.

Occurs on Windows 10 with same error on Edge, Chrome, Internet
Explorer and Firefox browsers.

You can find the CSS scripts and code for all pages on:

https://github.com/dalekellytoo/website

https://github.com/dalekellytoo/website


Move the script just above the /body. See this:

/div


script'undefined'=== typeof _trfq || (window._trfq =
[]);'undefined'=== typeof _trfd &&
(window._trfd=[]),_trfd.push({'tccl.baseHost':'secureserver.net'}) ,_trfd.push({'ap':'cpsh'},{'server':'p3plcpnl0242' })
// Monitoring performance to make your website faster. If you want to
opt-out, please contact web hosting support./scriptscript
src='https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js'/script/html


/body


In HTML everything has to be within the page and the page ends when
/body is reached.


  #3  
Old January 3rd 19, 02:25 AM posted to comp.infosystems.www.authoring.html,alt.html,alt.comp.os.windows-10
dale
external usenet poster
 
Posts: 139
Default Error: Stray start tag script.

On 1/2/2019 7:59 PM, Good guy wrote:
On 03/01/2019 00:16, dale wrote:
Hi,

I am getting a HTML error when I use the W3C Nu checker on my site

https://www.dalekelly.org/

https://www.dalekelly.org/

Error: Stray start tag script.
From line 105, column 2; to line 105, column 9
/body↩↩Â*Â*Â* script'undef

while I am searching for lines, columns and potential syntax errors,
could anyone find the solution?

Note, I have a CSS for my main 5 pages. Error seems to have just
showed up lately.

There is an HTML and CSS checker button on each page. No errors when I
run the CSS checker on each page.

Occurs on Windows 10 with same error on Edge, Chrome, Internet
Explorer and Firefox browsers.

You can find the CSS scripts and code for all pages on:

https://github.com/dalekellytoo/website

https://github.com/dalekellytoo/website


Move the script just above the /body.Â* See this:

/div


Â* script'undefined'=== typeof _trfq || (window._trfq =
[]);'undefined'=== typeof _trfd &&
(window._trfd=[]),_trfd.push({'tccl.baseHost':'secureserver.net'}) ,_trfd.push({'ap':'cpsh'},{'server':'p3plcpnl0242' })
// Monitoring performance to make your website faster. If you want to
opt-out, please contact web hosting support./scriptscript
src='https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js'/script/html


Â*/body


In HTML everything has to be within the page and the page ends when
/body is reached.



Where do you see a script below /body?

The only thing I have below /body is /html

has always worked before. Are you suggesting I put /html before /body?

doesn't html enclose body as the type of language body is, in the
beginning to end?

Nevertheless, Thank You Very Much !!!, it looks like my provider is
doing something new.


--
dale - https://www.dalekelly.org/
Not a professional opinion unless specified.
  #4  
Old January 3rd 19, 02:31 AM posted to comp.infosystems.www.authoring.html,alt.html,alt.comp.os.windows-10
Mayayana
external usenet poster
 
Posts: 6,438
Default Error: Stray start tag script.

"dale" wrote

| Error: Stray start tag script.
| From line 105, column 2; to line 105, column 9
| /body?? script'undef
|

Maybe because it's outside the body tag? But I'm
not sure if they consider that an error. It looks
like your webhost injected that and it could just
be removed. The rest of your code is very simple
and clean. (Though I don't know why you need
open graph markup.)

On the other hand, why do you care about W3C?
The letter of the law doesn't necessarily mean better
webpages. The important thing is whether it works
as you expect in the major browsers.

It looks like you're hosting on GoDaddy. You might
want to consider getting a more professional host
that doesn't inject crap into your pages.


  #5  
Old January 3rd 19, 02:53 AM posted to comp.infosystems.www.authoring.html,alt.html,alt.comp.os.windows-10
dale
external usenet poster
 
Posts: 139
Default Error: Stray start tag script.

On 1/2/2019 8:31 PM, Mayayana wrote:
"dale" wrote

| Error: Stray start tag script.
| From line 105, column 2; to line 105, column 9
| /body?? script'undef
|

Maybe because it's outside the body tag?


the footer is inside the body?


But I'm
not sure if they consider that an error. It looks
like your webhost injected that and it could just
be removed. The rest of your code is very simple
and clean. (Though I don't know why you need
open graph markup.)


that is for posting a link of my site to facebook or twitter, can't
recall this being an error last time I checked, wasn't reliably working
though


On the other hand, why do you care about W3C?
The letter of the law doesn't necessarily mean better
webpages. The important thing is whether it works
as you expect in the major browsers.


I have learned to check other browsers

It looks like you're hosting on GoDaddy. You might
want to consider getting a more professional host
that doesn't inject crap into your pages.


I'm stuck for awhile, have always been responsive though

Thanks Much !!!



--
dale - https://www.dalekelly.org/
Not a professional opinion unless specified.
  #6  
Old January 3rd 19, 03:41 AM posted to comp.infosystems.www.authoring.html,alt.html,alt.comp.os.windows-10
dale
external usenet poster
 
Posts: 139
Default Error: Stray start tag script.

On 1/2/2019 7:59 PM, Good guy wrote:
On 03/01/2019 00:16, dale wrote:
Hi,

I am getting a HTML error ...



....


Move the script just above the /body.Â* See this:

/div


Â* script'undefined'=== typeof _trfq || (window._trfq =
[]);'undefined'=== typeof _trfd &&
(window._trfd=[]),_trfd.push({'tccl.baseHost':'secureserver.net'}) ,_trfd.push({'ap':'cpsh'},{'server':'p3plcpnl0242' })
// Monitoring performance to make your website faster. If you want to
opt-out, please contact web hosting support./scriptscript
src='https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js'/script/html




I can get this error to show, before changing the code, if I select
"show source" before I check the page


Â*/body


In HTML everything has to be within the page and the page ends when
/body is reached.




--
dale - https://www.dalekelly.org/
Not a professional opinion unless specified.
  #7  
Old January 3rd 19, 04:09 AM posted to comp.infosystems.www.authoring.html,alt.html,alt.comp.os.windows-10
😉 Good Guy 😉
external usenet poster
 
Posts: 1,483
Default Error: Stray start tag script.

On 03/01/2019 02:41, dale wrote:


I can get this error to show, before changing the code, if I select
"show source" before I check the page


/body


In HTML everything has to be within the page and the page ends when
/body is reached.






Your source code should look like this:

!DOCTYPEhtml
htmllang="en"
head
titleWelcome!/title
metahttp-equiv="content-type"content="text/html; charset=UTF-8"
metaname="author"content="Dale Kelly"
metaname="keywords"content="HTML,CSS"
linkrel="icon"href="https://www.dalekelly.org/atom.png"
linkrel="stylesheet"type="text/css"href="https://www.dalekelly.org/mystyle.css"
metaname="viewport"content="width=device-width, initial-scale=1.0"
metaproperty="og:type"content="website"/
metaproperty="og:url"content="https://www.dalekelly.org/"/
metaproperty="og:description"content="A place for me to share my
thoughts."/
metaproperty="og:title"content="Dale's Website"/
metaname="robots"content="nofollow"
/head
body
ulclass="sidenav"
liahref="#title"CLICK THESE/a/li
liaclass="active"href="https://www.dalekelly.org/index.html"HOME/a/li
liahref="https://www.dalekelly.org/images.html"IMAGES/a/li
liahref="https://www.dalekelly.org/howto.html"HOWTO/a/li
liahref="https://www.dalekelly.org/links.html"LINKS/a/li
liahref="https://www.dalekelly.org/weblog.html"BLOG/a/li
/ul
divclass="content"
h1Dale's Website/h1
iThis is my personal website for ethusiastic expression. These
expressions should not be interpreted as professional opinions./i
br
pMin. Dale R. Kelly B.S.E.Chem.E., B.Msc., M.Sc., Ph.D./p
iAmerican Association of Drugless Practitioners Certificate#
56603712/ibr
iAmerican Alternative Medicine Association Certificate# 92383802/i
brbr
ahref="https://www.facebook.com/dalekellytoo/"imgsrc="https://www.dalekelly.org/images/facebook_icon32.jpg"
alt="Valid HTML 4.01 Strict"style="width:32px;height:32px;"/a
ahref="https://www.instagram.com/dalekellytoo/"imgsrc="https://www.dalekelly.org/images/Instagram_Icon32.png"
alt="Valid HTML 4.01 Strict"style="width:32px;height:32px;"/a
"
alt="Valid HTML 4.01 Strict"style="width:32px;height:32px;"/a
ahref="https://plus.google.com/116137004384124936507"imgsrc="https://www.dalekelly.org/images/googleplus_icon32.jpg"
alt="Valid HTML 4.01 Strict"style="width:32px;height:31px;"/a
ahref="https://www.youtube.com/channel/UC3rs7-EVEmwkp2n1TogWuFg"img
src="https://www.dalekelly.org/images/youtube_icon32.png"alt="Valid
HTML 4.01 Strict"
style="width:32px;height:32px;"/a
ahref="https://linkedin.com/in/dalekellytoo"imgsrc="https://www.dalekelly.org/images/linkedin_icon32.jpg"
alt="Valid HTML 4.01 Strict"style="width:32px;height:32px;"/a
ahref="https://github.com/dalekellytoo"imgsrc="https://www.dalekelly.org/images/github_icon32.jpg"
alt="Valid HTML 4.01 Strict"style="width:32px;height:32px;"/a
ahref="https://www.altopia.com"imgsrc="https://www.dalekelly.org/images/btn_logo.jpg"
alt="Valid HTML 4.01 Strict"style="width:88px;height:31px;"/a
"imgsrc="http s://www.dalekelly.org/images/email_icon_32.jpg"
alt="Valid HTML 4.01 Strict"style="width:32px;height:32px;"/a
br
h2In process .../h2
imgsrc="https://www.dalekelly.org/images/working-with-chemicals.gif"
alt="Valid HTML 4.01 Strict"width="198"height="142"
br
ul
"mailto:dale @dalekelly.org/abr/br/li
"mailto: /abr/br/li
lisocial media - dalekellytoo - or click icons above/li
/ul
footer
ahref="https://validator.w3.org/check?uri=referer"imgsrc="https://www.w3.org/Icons/valid-html401"
alt="Valid HTML 4.01 Strict"height="31"width="88"/a
ahref="https://jigsaw.w3.org/css-validator/check/referer"img
style="border:0;width:88px;height:31px"src="https://jigsaw.w3.org/css-validator/images/vcss-blue"
alt="Valid CSS!"//a
br
iI am looking for a more environmentally conscience .gif
chemistry animation./i
iThanks to W3 Schools for teaching website programming./i
br
/footer
/div
script'undefined'=== typeof_trfq || (window._trfq = []);
'undefined'=== typeof_trfd && (window._trfd = []), _trfd.push({
'tccl.baseHost': 'secureserver.net'}), _trfd.push({ 'ap': 'cpsh'}, {
'server': 'p3plcpnl0242'}) // Monitoring performance to make your
website faster. If you want to opt-out, please contact web hosting
support./script
scriptsrc='https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js'/script
/body
/html




--
With over 950 million devices now running Windows 10, customer
satisfaction is higher than any previous version of windows.

  #8  
Old January 3rd 19, 04:22 AM posted to comp.infosystems.www.authoring.html,alt.html,alt.comp.os.windows-10
😉 Good Guy 😉
external usenet poster
 
Posts: 1,483
Default Error: Stray start tag script.

On 03/01/2019 02:41, dale wrote:



I can get this error to show, before changing the code, if I select
"show source" before I check the page




This is in plain text:

!DOCTYPEhtml
htmllang="en"
head
titleWelcome!/title
metahttp-equiv="content-type"content="text/html; charset=UTF-8"
metaname="author"content="Dale Kelly"
metaname="keywords"content="HTML,CSS"
linkrel="icon"href="https://www.dalekelly.org/atom.png"
linkrel="stylesheet"type="text/css"href="https://www.dalekelly.org/mystyle.css"
metaname="viewport"content="width=device-width, initial-scale=1.0"
metaproperty="og:type"content="website"/
metaproperty="og:url"content="https://www.dalekelly.org/"/
metaproperty="og:description"content="A place for me to share my
thoughts."/
metaproperty="og:title"content="Dale's Website"/
metaname="robots"content="nofollow"
/head
body
ulclass="sidenav"
liahref="#title"CLICK THESE/a/li
liaclass="active"href="https://www.dalekelly.org/index.html"HOME/a/li
liahref="https://www.dalekelly.org/images.html"IMAGES/a/li
liahref="https://www.dalekelly.org/howto.html"HOWTO/a/li
liahref="https://www.dalekelly.org/links.html"LINKS/a/li
liahref="https://www.dalekelly.org/weblog.html"BLOG/a/li
/ul
divclass="content"
h1Dale's Website/h1
iThis is my personal website for ethusiastic expression. These
expressions should not be interpreted as professional opinions./i
br
pMin. Dale R. Kelly B.S.E.Chem.E., B.Msc., M.Sc., Ph.D./p
iAmerican Association of Drugless Practitioners Certificate#
56603712/ibr
iAmerican Alternative Medicine Association Certificate# 92383802/i
brbr
ahref="https://www.facebook.com/dalekellytoo/"imgsrc="https://www.dalekelly.org/images/facebook_icon32.jpg"
alt="Valid HTML 4.01 Strict"style="width:32px;height:32px;"/a
ahref="https://www.instagram.com/dalekellytoo/"imgsrc="https://www.dalekelly.org/images/Instagram_Icon32.png"
alt="Valid HTML 4.01 Strict"style="width:32px;height:32px;"/a
"
alt="Valid HTML 4.01 Strict"style="width:32px;height:32px;"/a
ahref="https://plus.google.com/116137004384124936507"imgsrc="https://www.dalekelly.org/images/googleplus_icon32.jpg"
alt="Valid HTML 4.01 Strict"style="width:32px;height:31px;"/a
ahref="https://www.youtube.com/channel/UC3rs7-EVEmwkp2n1TogWuFg"img
src="https://www.dalekelly.org/images/youtube_icon32.png"alt="Valid
HTML 4.01 Strict"
style="width:32px;height:32px;"/a
ahref="https://linkedin.com/in/dalekellytoo"imgsrc="https://www.dalekelly.org/images/linkedin_icon32.jpg"
alt="Valid HTML 4.01 Strict"style="width:32px;height:32px;"/a
ahref="https://github.com/dalekellytoo"imgsrc="https://www.dalekelly.org/images/github_icon32.jpg"
alt="Valid HTML 4.01 Strict"style="width:32px;height:32px;"/a
ahref="https://www.altopia.com"imgsrc="https://www.dalekelly.org/images/btn_logo.jpg"
alt="Valid HTML 4.01 Strict"style="width:88px;height:31px;"/a
"imgsrc="http s://www.dalekelly.org/images/email_icon_32.jpg"
alt="Valid HTML 4.01 Strict"style="width:32px;height:32px;"/a
br
h2In process .../h2
imgsrc="https://www.dalekelly.org/images/working-with-chemicals.gif"
alt="Valid HTML 4.01 Strict"width="198"height="142"
br
ul
"mailto:dale @dalekelly.org/abr/br/li
"mailto: /abr/br/li
lisocial media - dalekellytoo - or click icons above/li
/ul
footer
ahref="https://validator.w3.org/check?uri=referer"imgsrc="https://www.w3.org/Icons/valid-html401"
alt="Valid HTML 4.01 Strict"height="31"width="88"/a
ahref="https://jigsaw.w3.org/css-validator/check/referer"img
style="border:0;width:88px;height:31px"src="https://jigsaw.w3.org/css-validator/images/vcss-blue"
alt="Valid CSS!"//a
br
iI am looking for a more environmentally conscience .gif
chemistry animation./i
iThanks to W3 Schools for teaching website programming./i
br
/footer
/div
script'undefined'=== typeof_trfq || (window._trfq = []);
'undefined'=== typeof_trfd && (window._trfd = []), _trfd.push({
'tccl.baseHost': 'secureserver.net'}), _trfd.push({ 'ap': 'cpsh'}, {
'server': 'p3plcpnl0242'}) // Monitoring performance to make your
website faster. If you want to opt-out, please contact web hosting
support./script
scriptsrc='https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js'/script
/body
/html







--
With over 950 million devices now running Windows 10, customer
satisfaction is higher than any previous version of windows.
  #9  
Old January 3rd 19, 04:36 AM posted to comp.infosystems.www.authoring.html,alt.html,alt.comp.os.windows-10
😉 Good Guy 😉
external usenet poster
 
Posts: 1,483
Default Error: Stray start tag script.

On 03/01/2019 02:41, dale wrote:


I can get this error to show, before changing the code, if I select
"show source" before I check the page




This is in pen:

https://codepen.io/anon/pen/BvJEdj

You can copy and paste it in your document and it will validate. I have
checked it myself!!!!!!!!!!!!!!!

You seem to have problems understanding what I am saying here!!!!!!!!!!!!!


--
With over 950 million devices now running Windows 10, customer
satisfaction is higher than any previous version of windows.

  #10  
Old January 3rd 19, 04:42 AM posted to comp.infosystems.www.authoring.html,alt.html,alt.comp.os.windows-10
David E. Ross[_2_]
external usenet poster
 
Posts: 1,035
Default Error: Stray start tag script.

On 1/2/2019 5:25 PM, dale wrote:
On 1/2/2019 7:59 PM, Good guy wrote:
On 03/01/2019 00:16, dale wrote:
Hi,

I am getting a HTML error when I use the W3C Nu checker on my site

https://www.dalekelly.org/

https://www.dalekelly.org/

Error: Stray start tag script.
From line 105, column 2; to line 105, column 9
/body↩↩Â*Â*Â* script'undef

while I am searching for lines, columns and potential syntax errors,
could anyone find the solution?

Note, I have a CSS for my main 5 pages. Error seems to have just
showed up lately.

There is an HTML and CSS checker button on each page. No errors when I
run the CSS checker on each page.

Occurs on Windows 10 with same error on Edge, Chrome, Internet
Explorer and Firefox browsers.

You can find the CSS scripts and code for all pages on:

https://github.com/dalekellytoo/website

https://github.com/dalekellytoo/website


Move the script just above the /body.Â* See this:

/div


Â* script'undefined'=== typeof _trfq || (window._trfq =
[]);'undefined'=== typeof _trfd &&
(window._trfd=[]),_trfd.push({'tccl.baseHost':'secureserver.net'}) ,_trfd.push({'ap':'cpsh'},{'server':'p3plcpnl0242' })
// Monitoring performance to make your website faster. If you want to
opt-out, please contact web hosting support./scriptscript
src='https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js'/script/html


Â*/body


In HTML everything has to be within the page and the page ends when
/body is reached.



Where do you see a script below /body?

The only thing I have below /body is /html

has always worked before. Are you suggesting I put /html before /body?

doesn't html enclose body as the type of language body is, in the
beginning to end?

Nevertheless, Thank You Very Much !!!, it looks like my provider is
doing something new.



The script is neither in the head nor the body. Yes, the page ends with
/html, not with /body. However, everything -- except for html and
/html -- should be in either the head or the body; and neither one of
those can be in the other. The whole is then within html and /html.

Your script must be part of either (a) or (b) in the following:

html
head
head content (a)
/head
body
body content (b)
/body
/html

There should be nothing between html and head, between /head and
body, or between /body and /html. The only thing that can be
before html is !DOCTYPE. Nothing can follow /html.

--
David E. Ross
http://www.rossde.com/

President Trump still insists that Mexico will eventually pay for
his border wall. If he really believes that, why does he not pay
for it out of his personal billions of dollars and then personally
collect from Mexico?
  #11  
Old January 3rd 19, 10:01 AM posted to comp.infosystems.www.authoring.html,alt.html,alt.comp.os.windows-10
Andy Burns[_6_]
external usenet poster
 
Posts: 1,318
Default Error: Stray start tag script.

dale wrote:

I am getting a HTML error when I use the W3C Nu checker on my site

Presumably the script element is not something you have included in
the page yourself, but your web host has "injected" it for you? The
comment implies that you can ask them to turn the performance monitoring
off.

The error is because any script elements must be within the head or
body elements and the web host has clumsily inserted it after the body
  #12  
Old January 3rd 19, 12:59 PM posted to comp.infosystems.www.authoring.html,alt.html,alt.comp.os.windows-10
dale
external usenet poster
 
Posts: 139
Default SOLVED Error: Stray start tag script.

On 1/2/2019 8:31 PM, Mayayana wrote:
"dale" wrote

| Error: Stray start tag script.
| From line 105, column 2; to line 105, column 9
| /body?? script'undef
|

Maybe because it's outside the body tag? But I'm
not sure if they consider that an error. It looks
like your webhost injected that and it could just
be removed. The rest of your code is very simple
and clean. (Though I don't know why you need
open graph markup.)

On the other hand, why do you care about W3C?
The letter of the law doesn't necessarily mean better
webpages. The important thing is whether it works
as you expect in the major browsers.

It looks like you're hosting on GoDaddy. You might
want to consider getting a more professional host
that doesn't inject crap into your pages.



The script in question was from my hosting provider. I called and
opted-out. THANKS EVERYONE!


--
dale - https://www.dalekelly.org/
Not a professional opinion unless specified.
  #13  
Old January 3rd 19, 01:03 PM posted to comp.infosystems.www.authoring.html,alt.html,alt.comp.os.windows-10
dale
external usenet poster
 
Posts: 139
Default Error: Stray start tag script.

On 1/2/2019 10:36 PM, 😉 Good Guy 😉 wrote:
On 03/01/2019 02:41, dale wrote:


I can get this error to show, before changing the code, if I select
"show source" before I check the page




This is in pen:

https://codepen.io/anon/pen/BvJEdj

You can copy and paste it in your document and it will validate.Â* I have
checked it myself!!!!!!!!!!!!!!!

You seem to have problems understanding what I am saying here!!!!!!!!!!!!!




The script in question wasn't mine. It was from my hosting provider. I
called and opted-out. I didn't want any javascript on my page anyway.

THANKS MUCH!!!

--
dale - https://www.dalekelly.org/
Not a professional opinion unless specified.
  #14  
Old January 6th 19, 02:51 AM posted to comp.infosystems.www.authoring.html,alt.html,alt.comp.os.windows-10
Joy Beeson
external usenet poster
 
Posts: 3
Default Error: Stray start tag script.

On Wed, 2 Jan 2019 20:31:09 -0500, "Mayayana"
wrote:

On the other hand, why do you care about W3C?


Because getting rid of errors that don't matter makes it much easier
to find errors that do matter.


--
Joy Beeson
joy beeson at comcast dot net
http://wlweather.net/PAGEJOY/


  #15  
Old January 6th 19, 04:34 AM posted to comp.infosystems.www.authoring.html,alt.html,alt.comp.os.windows-10
Mayayana
external usenet poster
 
Posts: 6,438
Default Error: Stray start tag script.

"Joy Beeson" wrote

| On the other hand, why do you care about W3C?
|
| Because getting rid of errors that don't matter makes it much easier
| to find errors that do matter.
|

That doesn't make sense. If they don't matter then
they don't affect anything.

W3C takes a letter-of-the-law approach. The main
point is whether your pages display properly in different
browsers. For instance, not declaring DOCTYPE is
considered an error. But that's used to indicate quirks
mode for IE. I don't want my pages parsed as HTML5.
It's too brittle. You can say I'm wrong, but my
pages display right.

Many of the errors that come up are describing HTML
attributes as obsolete. But they work. It's just a stickler's
attitude that all attributes should be in CSS. Not all CSS
is recognized, especially by older IE versions.

It tells me A NAME is obsolete. It's standard HTML 4.
W3C says I should put an ID on the nearest container
instead. But that only relates to scripting. If I use
A HREF="someID" and then assign someID to a DIV, the
link won't jump to the DIV. It will look for a file named
someID.
And in older versions of IE a DIV is not a block container.
It makes no sense. A NAME has a very specific purpose.

It tells me VALIGN for a TD is obsolete. But it works.
It tells me multiple matching IDs are an error.
It tells me an IMG element mush have an ALT attribute.
That's for accessibility. But an IMG that's just used for
formatting is not relevant to the blind.

Web design is not a science. There are too many
quirks in browsers for that.


 




Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off






All times are GMT +1. The time now is 10:33 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.