Slide 1
CSS Debugging
Joan Boone
jpboone@email.unc.edu
CSS Debugging Joan Boone jpboone@email.unc.edu Slide 1 Some common - - PowerPoint PPT Presentation
INLS 572 Web Development CSS Debugging Joan Boone jpboone@email.unc.edu Slide 1 Some common problems Changed the document, but it looks the same in the browser Did you save your changes first? Is the page you are viewing the same
Slide 1
Joan Boone
jpboone@email.unc.edu
Slide 2
Changed the document, but it looks the same in the browser
Added a graphic, but the broken image icon appears
include the folder name so the browser can find it. For example,
reference it as “/images/cool-photo.jpg”.
then you might reference it as “../images/cool-photo.jpg”
structure.
Style rules are not being applied (or only some of them)
Slide 3
Links to pages are no longer valid
resulting in “link rot”
they are still valid. The website may still exist, but if it has been reorganized or perhaps dated material is removed, then you may have a broken link.
resources, then some of your links may break
is an HTTP response code of 404 – Page not found. Most web hosting services provide a default 404 page for you, but you can create your own
Validation tool: W3C Link Checker
Slide 4
HTML
are found, the page will still be displayed. Browsers have built-in rules that define how to interpret incorrectly written markup.
closing quotes, improper nesting of elements.
Chrome DevTools and Firefox Developer Tools
CSS
Browsers also parse CSS permissively
ignore the declaration and move on to the next one.
Firefox Developer Tools Source: MDN web docs: Debugging CSS
Slide 5
nc-national-parks-debug.html
Should look like this