Title and Lists!


#1

Hi. We did the Social networking profile and got stuck. The title won't display and then the lists won't recognise that we have done 4 of them and come up with an error. Any thoughts would be marvelous!


#2

You switched up the <ul> and <li> tags.

Something like this should work for the list:

<p>Hobbies</p>
<ul>
    <li>Football</li>
    <li>Gaming</li>
    <li>Sleeping</li>
    <li>Watching youtube</li>
</ul>

<p>Work</p>
<ul>
    <li>Homework</li>
    <li>Schoolwork</li>
    <li>Chores</li>
    <li>Voluntary</li>
</ul>

The title should show up since your code for the title is correct.

Source(s): http://www.w3schools.com/tags/tag_li.asp


#3

@amandovledder indeed shows how list are build, there are two types of list:

<ul></ul>
<ol></ol>

unordered list (ul) and ordered list (ol) inside the (un)ordered list you can add list tags:

<ul>
  <li>list item</li>
</ul>
<ol>
  <li>list item</li>
</ol>

li1 and li2 are no valid tags.

Concerning title, is should show up in the browser tab, but due to codecademy use of iframe it won't. You can create a html file on your computer to see it work, or on jsbin, that allows your title as well


#4

Hi Marcus,

No guarantee fixing these will pass you, but they probably will:

  • You do not include numbers inside an <li> tag. Your lists should look like:

<ul>
  <li><!--content --></li>
  <li><!--content --></li>
  <li><!--content --></li>
</ul>
  • You closed your <body> too soon. Everything you want to show up should be inside the <body>

And the reason the <title> isn't showing up is because it displays in the tab.
And the reason it's not even showing up in the tab is because your page is being run inside an <iframe>, which is a container for other webpages inside a webpage. A page inside an <iframe> has restrictions on it, for both security and non-annoyance reasons - it would be really annoying if every page with an embedded YouTube video changed the tab's title and icon so you thought you were on YouTube when you weren't :)

EDIT:

& I was too slow in typing this up and stetim94 beat me :)


#5

Its really weird but if you erase the 'e' in the first title tag ie:(titl) you're title will show up on the tab and it doesn't give an error


#6

well, sometimes at least.


#7

no, title is suppose to show up in the browser tab, but because codecademy uses iframe, this can't happen. Try on jsbin or html file on your computer would be even better