Forum Moderators: not2easy

Message Too Old, No Replies

College class web page

I have to make a simple web page for a project

         

HombrePeso

6:02 am on Feb 7, 2019 (gmt 0)

5+ Year Member



 <!DOCTYPE html>
<html lang = "en-US">
<head></head>
<meta charset="UTF-8">
<link href="Lab01.css" rel="stylesheet" type="text/css">
<title>Lab 1 - Gabriel Martinez</title>
<body>
<section></section>
<h1>Lab 1 - Gabriel Martinez</h1>
<h2>South Park</h2>
<p>South park is one of the longest running show of Comedy Central and is the third longest-running animated series on American Television. The series is set in a town called South Park, Colorado. The show follows the adventures of four friends named Stan Marsh, Kyle Broflovski, Eric Cartman, and, Kenny McCormick.</p>
<article>
<h3>Episode Process</h3>
<p>Trey Parker and Matt Stone, the creators of South Park, don't take long to make a South Park episode. They start their process about two weeks before their air date. They start on Thursday and usually are done within a week. They've only missed a deadline once in their twenty-two year career.</p>
<aside> Trey Parker and Matt Stone made the first episode with stop motion and the whole episode was made with construction paper. It took about three to three and a half months to finish. </aside>
<footer>They have been nominated for 17 emmy's in which they've won 5 times.</footer>
</article>
</body>


I keep getting a parse error on line 18.

lucy24

6:24 am on Feb 7, 2019 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You’re not asking us to do your homework for you, are you?

By my count, line 18 is the </body> closing tag. In other words “parse error on line 18” really means there is something wrong in lines 1-17, most likely an unclosed element. In fact, there is a lot wrong. For ### and giggles I fed the whole thing into the w3 validator [validator.w3.org]. It listed only three errors ... because in line 4 it encountered a Fatal Error and stopped checking. (One of the first two is also glaringly obvious.)

HombrePeso

7:15 am on Feb 7, 2019 (gmt 0)

5+ Year Member



I just started college for IT about a month ago. So I'm still kind of new to this

phranque

8:11 am on Feb 7, 2019 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



welcome to WebmasterWorld [webmasterworld.com], HombrePeso!

you can learn a lot by using the validator.
fix the first problem found and then revalidate.
rinse and repeat.

tangor

10:40 am on Feb 7, 2019 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hint ... tags exist to enclose something.

Welcome to the forum, and please take the ribbing good-naturedly. Else how are you going to learn?

HombrePeso

1:43 pm on Feb 7, 2019 (gmt 0)

5+ Year Member



I fixed most of it but it still tells me that there's a parse error somewhere and I don't know where it could be

NickMNS

1:56 pm on Feb 7, 2019 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Here is a hint: "use your head". Or I should say "use your head correctly".

In HTML one must follow the correct hierarchy of tags. Certain tags can only be children of some other tags. Here is a reference that maybe help you figure this out:
[developer.mozilla.org...]

brotherhood of LAN

2:23 pm on Feb 7, 2019 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You're also missing a closing element

One way of figuring that out is to tabulate your output. There are some 'prettifier' tools that can help you do that.

Selen

4:15 pm on Feb 7, 2019 (gmt 0)

10+ Year Member Top Contributors Of The Month



Using <article>, <section> etc. is flexible, but here is my version that validates:

<!DOCTYPE html>
<html lang = "en-US">
<head>
<meta charset="UTF-8">
<link href="Lab01.css" rel="stylesheet" type="text/css">
<title>Lab 1 - Gabriel Martinez</title>
</head>
<body>
<article>
<h1>Lab 1 - Gabriel Martinez</h1>
<section>
<h2>South Park</h2>
<p>South park is one of the longest running show of Comedy Central and is the third longest-running animated series on American Television. The series is set in a town called South Park, Colorado. The show follows the adventures of four friends named Stan Marsh, Kyle Broflovski, Eric Cartman, and, Kenny McCormick.</p>
</section>

<section>
<h3>Episode Process</h3>
<p>Trey Parker and Matt Stone, the creators of South Park, don't take long to make a South Park episode. They start their process about two weeks before their air date. They start on Thursday and usually are done within a week. They've only missed a deadline once in their twenty-two year career.</p>
</section>
</article>

<aside>
Trey Parker and Matt Stone made the first episode with stop motion and the whole episode was made with construction paper. It took about three to three and a half months to finish.
</aside>

<footer>
They have been nominated for 17 emmy's in which they've won 5 times.
</footer>

</body>
</html>

[edited by: Selen at 5:16 pm (utc) on Feb 7, 2019]

NickMNS

4:22 pm on Feb 7, 2019 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



@HombrePeso, you owe @Selen a big thank you for doing your homework for you.

@Selen we were trying to guide the OP to find the answer himself.

lucy24

4:54 pm on Feb 7, 2019 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



And then, once everything el'se ha's been taken care of, we'll talk about the grocer's apo'strophe in "emmy's".

:: suppressing digression about correct and incorrect uses of technology as it relates to "typewriter quotes" vs. “curly quotes” ::

tangor

8:19 pm on Feb 7, 2019 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Whew! The light bulb of "eureka" did not have a chance to light up. Oh well.

brotherhood of LAN

11:09 pm on Feb 7, 2019 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



eureka


There's 150 million websites and "view source", maybe it can boil down to the 'what to learn' thing versus need to know. For sure, the client side stuff has a low barrier to entry, so many examples.

lucy24

1:58 am on Feb 8, 2019 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Depressing query: How many of those 150 million sites are WordPress-or-similar, and if so, would View Source provide any information other than “do not do this at home”?

tangor

7:50 am on Feb 8, 2019 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



@HombrePeso ... @Selen's fix still contains display errors (but will still validate). You get points if you figure them out.

Hint: HTML is a STRUCTURED MARKUP

tangor

8:26 am on Feb 8, 2019 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Also consider using an editor that supports color coded tags, such as Notepad ++

Even the most experienced coders have typos or dumb mistakes while in the heat of creating a page.