Highlighted

How do I fix these errors, since everything has gone to HTML 5?

Community Beginner ,
Aug 22, 2018

Copy link to clipboard

Copied

I am needing to add/correct some stuff in the CSS page for my website and not sure what to add or edit for the following errors:

Line 50: The allowtransparency attribute on the iframe element is obsolete. Use CSS instead

Line 50: The frameborder attribute on the iframe is obsolete. Use CSS instead

Line 135: Bad value 0% for attribute aria-valuenow on element div : Expected a decimal point, e, E or a digit but saw % instead.

www.renegadescookingteam.com/sponspack_b.html

Any assistance would be greatly appreciated.

John

Adobe Community Professional
Correct answer by Jon Fritz II | Adobe Community Professional

The allowtransparency attribute is an old IE only thing with no real css fix for it. You can wrap that attribute in a conditional comment so it validates and IE recognizes it...

<!--[if IE] allowTransparency="true" -->

The frameborder attribute doesn't exist in HTML5. You can use css "border:0" on a class or id associated with your iframe, or the ifram element itself, and remove the frameborder attribute from the html.


The value for the aria-valuenow attribute needs to be a plain number. The % symbol is not allowed.

Views

392

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

How do I fix these errors, since everything has gone to HTML 5?

Community Beginner ,
Aug 22, 2018

Copy link to clipboard

Copied

I am needing to add/correct some stuff in the CSS page for my website and not sure what to add or edit for the following errors:

Line 50: The allowtransparency attribute on the iframe element is obsolete. Use CSS instead

Line 50: The frameborder attribute on the iframe is obsolete. Use CSS instead

Line 135: Bad value 0% for attribute aria-valuenow on element div : Expected a decimal point, e, E or a digit but saw % instead.

www.renegadescookingteam.com/sponspack_b.html

Any assistance would be greatly appreciated.

John

Adobe Community Professional
Correct answer by Jon Fritz II | Adobe Community Professional

The allowtransparency attribute is an old IE only thing with no real css fix for it. You can wrap that attribute in a conditional comment so it validates and IE recognizes it...

<!--[if IE] allowTransparency="true" -->

The frameborder attribute doesn't exist in HTML5. You can use css "border:0" on a class or id associated with your iframe, or the ifram element itself, and remove the frameborder attribute from the html.


The value for the aria-valuenow attribute needs to be a plain number. The % symbol is not allowed.

Views

393

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 22, 2018 0
Adobe Community Professional ,
Aug 22, 2018

Copy link to clipboard

Copied

The allowtransparency attribute is an old IE only thing with no real css fix for it. You can wrap that attribute in a conditional comment so it validates and IE recognizes it...

<!--[if IE] allowTransparency="true" -->

The frameborder attribute doesn't exist in HTML5. You can use css "border:0" on a class or id associated with your iframe, or the ifram element itself, and remove the frameborder attribute from the html.


The value for the aria-valuenow attribute needs to be a plain number. The % symbol is not allowed.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 22, 2018 0
Adobe Community Professional ,
Aug 22, 2018

Copy link to clipboard

Copied

Errors 1 & 2 are not critical errors.  You can skip them if you want to. 

Nancy O'Shea, ACP
Alt-Web Design & Publishing

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 22, 2018 1
Community Beginner ,
Aug 24, 2018

Copy link to clipboard

Copied

Thanks Jon, What number would I use instead of %, since this is for a manually edited progress bar?

John

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 24, 2018 0
Adobe Community Professional ,
Aug 24, 2018

Copy link to clipboard

Copied

Typically, you'd use a simple whole number and then add the % in the script.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 24, 2018 0