Welcome to WebmasterWorld Guest from 54.242.115.55

Forum Moderators: not2easy

College class web page

I have to make a simple web page for a project

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

New User

joined:Feb 7, 2019
posts: 3
votes: 0


 <!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.
6:24 am on Feb 7, 2019 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
posts:15507
votes: 752


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.)
7:15 am on Feb 7, 2019 (gmt 0)

New User

joined:Feb 7, 2019
posts: 3
votes: 0


I just started college for IT about a month ago. So I'm still kind of new to this
8:11 am on Feb 7, 2019 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:11613
votes: 195


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.
10:40 am on Feb 7, 2019 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member tangor is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 29, 2005
posts:9252
votes: 785


Hint ... tags exist to enclose something.

Welcome to the forum, and please take the ribbing good-naturedly. Else how are you going to learn?
1:43 pm on Feb 7, 2019 (gmt 0)

New User

joined:Feb 7, 2019
posts: 3
votes: 0


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
1:56 pm on Feb 7, 2019 (gmt 0)

Senior Member

WebmasterWorld Senior Member Top Contributors Of The Month

joined:Apr 1, 2016
posts:2419
votes: 647


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...]
2:23 pm on Feb 7, 2019 (gmt 0)

Senior Member from GB 

WebmasterWorld Senior Member brotherhood_of_lan is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 30, 2002
posts:4982
votes: 42


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.
4:15 pm on Feb 7, 2019 (gmt 0)

Full Member

5+ Year Member

joined:Dec 11, 2013
posts:275
votes: 54


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]

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

Senior Member

WebmasterWorld Senior Member Top Contributors Of The Month

joined:Apr 1, 2016
posts:2419
votes: 647


@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.
4:54 pm on Feb 7, 2019 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
posts:15507
votes: 752


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” ::
8:19 pm on Feb 7, 2019 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member tangor is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 29, 2005
posts:9252
votes: 785


Whew! The light bulb of "eureka" did not have a chance to light up. Oh well.
11:09 pm on Feb 7, 2019 (gmt 0)

Senior Member from GB 

WebmasterWorld Senior Member brotherhood_of_lan is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 30, 2002
posts:4982
votes: 42


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.
1:58 am on Feb 8, 2019 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
posts:15507
votes: 752


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”?
7:50 am on Feb 8, 2019 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member tangor is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 29, 2005
posts:9252
votes: 785


@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
8:26 am on Feb 8, 2019 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member tangor is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 29, 2005
posts:9252
votes: 785


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.