Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Iram Pacheco Garcia
9,099 PointsSeems to be a bug with the form tag. Is anyone else having this issue?
Workspace is closing all tags I already have.
Here is my HTML. Try and add some new tags inside the form tags.
<!DOCTYPE>
<html>
<head>
<title>Warped Tour shows and Events</title>
<link rel="stylesheet" type="text/css" href="CSS/index.css">
</head>
<body>
<!-- This is the title of the web page -->
<div class="title">
<ul>
<li><a href="#"><img src="Images/warpedTourLogo2.jpg" alt="warpedTourLogo"></a></li>
<li id="title">Warped Tour Shows and Events</li>
</ul>
</div>
<!-- This is the END OF THE title of the web page -->
<form>
</form>
</body>
</html>
2 Answers
Arthur Baghdasaryan
9,238 Pointsthe answer is use <!DOCTYPE html> intead of <!DOCTYPE>
Iram Pacheco Garcia
9,099 PointsWhet I try to add more tags inside the opening and closing form tag, all my code after it gets highlighted in red. Then when I try to close any tags, it will automatically add the closing form tag. Also, if I enter a "</" after the additional form tag, it will then begin to automatically select a closing html tag. If I continue, the next closing tag would be a closing head tag. etc.
Robert Richey
Courses Plus Student 16,352 PointsRobert Richey
Courses Plus Student 16,352 PointsHi Iram,
I don't see anything technically wrong with your HTML other than the DOCTYPE tag is usually written as <
!DOCTYPE html>, however, it's not clear how that would cause a bug withformtags. Can you describe in more detail what bug you're seeing?Also, I fixed the markdown for your code. If you're curious about how to add markdown like this on your own, checkout this thread on posting code to the forum . Also, there is a link at the bottom called Markdown Cheatsheet that gives a brief overview of how to add markdown to your posts.
Cheers!