CS 2205 Programming Assign

.docx

School

University of the People *

*We aren’t endorsed by this school

Course

2205

Subject

Computer Science

Date

May 10, 2024

Type

docx

Pages

3

Uploaded by AdmiralTitaniumMule39 on coursehero.com

Programming Assign. Unit 1 1. Identify 3 websites, which you've visited in the past. Run the HTML validating software against each site. You can select any of the validating tools available online. Here are the websites I visited: 1. CNN: https://edition.cnn.com/ 2. Fox News: https://www.foxnews.com/ 3. NBC News: https://www.nbcnews.com/ I checked all of those using the "w3c markup validation service". 2. Provide comments on the results of your exercise for each website. Make sure to list any problems identified. Also, provide a link to the validation tool you used. 1.cnn.com Validator link: https://validator.w3.org/nu/?doc=https%3A%2F%2Fedition.cnn.com %2F Here are some of the errors and warnings that the validator identified: The html tag was missing the 'lang' attribute. A meta element with an http-equiv attribute whose value is X-UA-Compatible must have a content attribute with the value lE=edge. Bad value text/html for attribute content on element meta A document must not include both a meta element with an http-equiv attribute whose value is content-type, and a meta element with a charset attribute. Bad value for attribute href on element link: Must be non-empty. CSS: cursor: hand is not a cursor value. CSS: transition: scale(1.3,1.3) is not a transition value. width: col(7) is not a width value. The type attribute on the li element is obsolete. Use CSS instead. Attribute mode is not allowed on element li at this point. 2.foxnews.com Validator link: https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.foxnews.com %2F The validator included a total of 153 errors and warnings. Many of those were repetitive and happened multiple times on the page.
Here are some of the errors that the validator identified: The scheme attribute on the meta element is obsolete. Bad value x-dns-prefetch-control for attribute http-equiv on element meta. When the scheme attribute has any image candidate string with a width descriptor, the sizes attribute must also be present. Element source is missing the required attribute scheme. Article lacks heading. Consider using h2-h6 elements to add identifying headings to all articles. Empty heading. 3.nbcnews.com Validator link: https://validator.w3.org/nu/?doc=https%3%2F%2Fwww.nbcnews.com %2F The validator included a total of 18 errors and warnings. Many of those were repetitive and happened multiple times on the page. Here are some of the errors that the validator identified: A charset attribute on a meta element found after the first 1024 bytes. Consider avoiding viewport values that prevent users from resizing documents. Element div not allowed as child of element span in this context. (Suppressing further errors from this subtree.) Section lacks heading. Consider using h2-h6 elements to_add identifying headings to all sections. Duplicate ID search_label. The first occurrence of ID search_label was here. Duplicate ID q. Section lacks heading. Consider using h2-h6 elements to add identifying. headings to all sections. Article lacks heading. Consider using h2-h6 elements to add identifying headings to all articles. Start tag a seen but an element of the same type was already open. End tag a violates nesting rules. Cannot recover after last error. Any further errors will be ignored. 3. For each site answer: What works well on this site? What could be improved: 1.Cnn.com What is working well
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help