Hi all; Tribute page assignment just completed; any comments are welcome. Thank you.
Your page looks good @rajgorakshay. Some things to revisit;
- Most importantly, the first line you have should be replaced with;
<!DOCTYPE html>
This says that what follows is an HTML5 version. Thatâs what FCC teaches. Youâve contradicted it by making it v4.1. You donât want to do that.
Further, codepen provides the boilerplate for you. It only expects the code youâd put within the body
element in HTML. (No need to include the body tags). For anything you want to add to the <head>
element click on the âSettingsâ button, then HTML and add it into the âStuff for <head>â box.
- Run your HTML code through the W3C validator.
- Since copy/paste from codepen you can ignore the first warning and first two errors. (Only if you made the mods I previously mentioned. If not, then correct every error.)
- There are HTML coding errors you should be aware of and address.
- You have this
<div class = "timeline container">
in HTML. In CSS you incorrectly call it as.timeline container {
.- Incorrect because written the way you did is two different class names. One called âtimelineâ the other called âcontainerâ. If you want it to be one word then it needs to be written as âtimeline-containerâ.
- Donât use
<br>
to force spacing or line breaks. Thatâs what CSS is for. - Codepen provides validators for HTML, CSS and JS. Click on the down arrow in the upper right of each section and then click on the respective âAnalyzeâ link.
- The one for CSS is good. Use it, thereâs something to clean up.
- The one for HTML misses things which is why I recommend W3C
- Review the lesson about giving meaningful text to links.
- Web Accessibility in Mind has a more thorough explanation.
- âwikipedia linkâ is not accessible
@Roma Thank you for your time; providing valuable feedback. Based on your comments; I have addressed the following:
- is now not only limited to v4.1 instead to HTML in general.
- Class name âtimeline containerâ is now rectified as #timeline-container"
-
is removed and instead CSS has another line of code as per MDC docs - Meaningful text is now re-written and not sure but each time I click on the link (URL) it opens up the desired Wikipedia link on my machine.
Above all; as per your kind feedback yes I have now used the âAnalyze HTMLâ option that does tell me there were no errors found now; we ll CSS looks okay as well. Please let me know if I have now done what was meant to âŚand thank you heaps for your time.
Looks better @rajgorakshay. There are still things to revisit.
- I mentioned this earlier. Codepen provides the boilerplate for you. It only expects the code youâd put within the
body
element in HTML. (No need to include the body tags). For anything you want to add to the<head>
element click on the âSettingsâ button, then HTML and add it into the âStuff for <head>â box.- Mentioning again because you have elements out of order. The code that the browser renders belongs in the
body
element. Thehead
element, and the elements it contains, do not go in thebody
element. Review this to understand the tags in HTML boilerplate
- Mentioning again because you have elements out of order. The code that the browser renders belongs in the
- Run your HTML code through the W3C validator again. Thereâs another error to clean up in addition to the
head
element being out of order. - Codepen provides validators for HTML, CSS and JS. Click on the down arrow in the upper right of each section and then click on the respective âAnalyzeâ link.
- The one for CSS is good. Use it, thereâs a typo to clean up.
@Roma thank you once againâŚhave corrected CSS errors; plus removed body tag although there is something in here that I canât get rid off . When I run this of W3C validatorâŚthere is some parse error along with tag that I havenât touched when doing my assignmentâŚif you could plsss help me.
Youâre seeing that because the CSS checkbox is checked. You donât want that checked when validating HTML.
Btw, when I say codepen provides the boilerplate for you. It only expects the code youâd put within the body
element in HTML. (No need to include the body tags). For anything you want to add to the <head>
element click on the âSettingsâ button, then HTML and add it into the âStuff for â box. That mean take away everything above and below the body
element. Not just delete the body
tags.
So these are not needed by codepen either;
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Shri SWAMI VIVEKANAND</title>
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
</head>
And of course the closing html
tag isnât needed either.
If youâd like to see all the boilerplate tags codepen provides, in Edit mode, click on the âExportâ tab, then âexport .zipâ. When you expand the zip file the files youâll want to look at are in the âdistâ folder.
Why youâre seeing that error message. Uncheck the CSS checkbox when checking HTML code.