You are viewing our Forum Archives. To view or take place in current topics click here.
Is there anything wrong with this coding so far?
Posted:

Is there anything wrong with this coding so far?Posted:

Glxy
  • Rising Star
Status: Offline
Joined: Nov 19, 201311Year Member
Posts: 705
Reputation Power: 29
Status: Offline
Joined: Nov 19, 201311Year Member
Posts: 705
Reputation Power: 29
<!DOCTYPE html>
<html lang="en">

<head>
<title>HTML5/CSS3 Responsive Theme</title>
<meta charset="utf-8" />

<link rel="stylesheet" href="style.css" type="text/css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>

<body class="body">

<header class="mainheader">
<nav><ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Portfolio</a></li>
<li><a href="#">Contact</a></li>
</ul<>/nav>
</header>

<div class="mainContent">
<div class="content">
<article class="topcontent">
<header>
<h2><a href="&" title="First Post">first post</a></h2>
</header>
</article>
</div>
</div>

</body>

</html>
#2. Posted:
Mason_FX
  • New Member
Status: Offline
Joined: Dec 05, 201410Year Member
Posts: 2
Reputation Power: 0
Status: Offline
Joined: Dec 05, 201410Year Member
Posts: 2
Reputation Power: 0
The Code In Bold Needs To Be On Its Own Line. Your Welcome


<!DOCTYPE html>
<html lang="en">

<head>
<title>HTML5/CSS3 Responsive Theme</title>
<meta charset="utf-8" />

<link rel="stylesheet" href="style.css" type="text/css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>

<body class="body">

<header class="mainheader">
<nav><ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Portfolio</a></li>
<li><a href="#">Contact</a></li>
</ul<>/nav>
</header>

<div class="mainContent">
<div class="content">
<article class="topcontent">
<header>
<h2><a href="&" title="First Post">first post</a></h2>
</header>
</article>
</div>
</div>

</body>

</html>
#3. Posted:
-Third-
  • Wise One
Status: Offline
Joined: Nov 16, 201410Year Member
Posts: 544
Reputation Power: 25
Status: Offline
Joined: Nov 16, 201410Year Member
Posts: 544
Reputation Power: 25
1. <!DOCTYPE html>
2. <html lang="en">
3.
4. <head>
5. <title>HTML5/CSS3 Responsive Theme</title>
6. <meta charset="utf-8" />
7.
8. <link rel="stylesheet" href="style.css" type="text/css" />
9. <meta name="viewport" content="width=device-width, initial-scale=1.0">
10. </head>
11.
12. <body class="body">
13.
14. <header class="mainheader">
15. <nav><ul>
16. <li><a href="#">Home</a></li>
17. <li><a href="#">About</a></li>
18. <li><a href="#">Portfolio</a></li>
19. <li><a href="#">Contact</a></li>
20. </ul<>/nav>
21. </header>
22.
23. <div class="mainContent">
24. <div class="content">
25. <article class="topcontent">
26. <header>
27. <h2><a href="&" title="First Post">first post</a></h2>
28. </header>
29. </article>
30. </div>
31. </div>
32.
33. </body>
34.
35. </html>


I gave every line it's own number. This makes it a lot easier to work with.

Now, as you might have noticed already, you have a code error on line 20. The tags aren't closed properly. It should be </ul></nav>
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.