ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    HTML5 and CSS adventures

    Water Closet
    html5 html css markup
    4
    16
    1.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • WrCombsW
      WrCombs
      last edited by scottalanmiller

      I've been learning HTML and HTML5 on free Code Camp
      I've gotten up to the Radio Buttons and Labels Page.
      https://i.imgur.com/XooolLl.png

      In this lesson/challenge I have to create 2 radio buttons, with labels and put them under the same name attribute

      https://i.imgur.com/jeCKNIo.png

      the Code here as I have it right now:

      <h2>CatPhotoApp</h2>
      <main>
        <p>Click here to view more <a href="#">cat photos</a>.</p>
        
        <a href="#"><img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>
        
        <p>Things cats love:</p>
        <ul>
          <li>cat nip</li>
          <li>laser pointers</li>
          <li>lasagna</li>
        </ul>
        <p>Top 3 things cats hate:</p>
        <ol>
          <li>flea treatment</li>
          <li>thunder</li>
          <li>other cats</li>
        </ol>
        <form action="/submit-cat-photo">
          <input type="text" placeholder="cat photo URL" required>
          <button type="submit">Submit</button>
      
        <label for="indoor">
          <input id="indoor" type="radio" name="indoor-outdoor">indoor
        <label>
       <label for="outdoor">
          <input id="outdoor" type="radio" name="indoor-outdoor">outdoor </label>
      >
      
          </form>
      </main>
      

      Can anybody tell me why when I run the test I still get the following errors?

      https://i.imgur.com/Mk8ko4c.png

      I've tried reading and trying different things any help would be appreciated

      dafyreD scottalanmillerS 2 Replies Last reply Reply Quote 0
      • WrCombsW
        WrCombs
        last edited by

        Actually i found it .
        apparently I forgot a </label> in one of the button elements.

        1 Reply Last reply Reply Quote 1
        • WrCombsW
          WrCombs
          last edited by

          I was beating my head on the wall trying to figure this out yesterday..
          for it to simply be a syntax error..
          /sigh. /facepalm

          travisdh1T 1 Reply Last reply Reply Quote 0
          • dafyreD
            dafyre @WrCombs
            last edited by dafyre

            @WrCombs said in HTML5 Radio Buttons/Labels-:

            <label for="indoor">
            <input id="indoor" type="radio" name="indoor-outdoor">indoor
            <label>

            Glad you got it sorted!

            WrCombsW 1 Reply Last reply Reply Quote 0
            • WrCombsW
              WrCombs @dafyre
              last edited by

              @dafyre said in HTML5 Radio Buttons/Labels-:

              @WrCombs said in HTML5 Radio Buttons/Labels-:

              <label for="indoor">
              <input id="indoor" type="radio" name="indoor-outdoor">indoor
              <label>

              Should that be </label> ?

              Yes.
              /Sigh.
              Why that took so long to figure out IDK.
              Maybe doing 12 Lessons in a day isn't a great Idea...

              dafyreD 1 Reply Last reply Reply Quote 0
              • dafyreD
                dafyre @WrCombs
                last edited by

                @WrCombs said in HTML5 Radio Buttons/Labels-:

                @dafyre said in HTML5 Radio Buttons/Labels-:

                @WrCombs said in HTML5 Radio Buttons/Labels-:

                <label for="indoor">
                <input id="indoor" type="radio" name="indoor-outdoor">indoor
                <label>

                Should that be </label> ?

                Yes.
                /Sigh.
                Why that took so long to figure out IDK.
                Maybe doing 12 Lessons in a day isn't a great Idea...

                Maybe you should stop at 10, lol.

                WrCombsW 1 Reply Last reply Reply Quote 1
                • travisdh1T
                  travisdh1 @WrCombs
                  last edited by

                  @WrCombs said in HTML5 Radio Buttons/Labels-:

                  I was beating my head on the wall trying to figure this out yesterday..
                  for it to simply be a syntax error..
                  /sigh. /facepalm

                  It's almost always a simple syntax error somewhere.

                  Just be thankful that you're not dealing with c and a missing ;. 2000 errors, what do you mean 2000 errors, my code is only 200 lines!

                  WrCombsW dafyreD 2 Replies Last reply Reply Quote 1
                  • WrCombsW
                    WrCombs @dafyre
                    last edited by

                    @dafyre said in HTML5 Radio Buttons/Labels-:

                    @WrCombs said in HTML5 Radio Buttons/Labels-:

                    @dafyre said in HTML5 Radio Buttons/Labels-:

                    @WrCombs said in HTML5 Radio Buttons/Labels-:

                    <label for="indoor">
                    <input id="indoor" type="radio" name="indoor-outdoor">indoor
                    <label>

                    Should that be </label> ?

                    Yes.
                    /Sigh.
                    Why that took so long to figure out IDK.
                    Maybe doing 12 Lessons in a day isn't a great Idea...

                    Maybe you should stop at 10, lol.

                    Potentially..
                    We'll see what happens.

                    1 Reply Last reply Reply Quote 0
                    • WrCombsW
                      WrCombs @travisdh1
                      last edited by

                      @travisdh1 said in HTML5 Radio Buttons/Labels-:

                      @WrCombs said in HTML5 Radio Buttons/Labels-:

                      I was beating my head on the wall trying to figure this out yesterday..
                      for it to simply be a syntax error..
                      /sigh. /facepalm

                      It's almost always a simple syntax error somewhere.

                      Just be thankful that you're not dealing with c and a missing ;. 2000 errors, what do you mean 2000 errors, my code is only 200 lines!

                      Yeah, friend of mine does C# Same errors there.

                      1 Reply Last reply Reply Quote 0
                      • dafyreD
                        dafyre @travisdh1
                        last edited by

                        @travisdh1 said in HTML5 Radio Buttons/Labels-:

                        @WrCombs said in HTML5 Radio Buttons/Labels-:

                        I was beating my head on the wall trying to figure this out yesterday..
                        for it to simply be a syntax error..
                        /sigh. /facepalm

                        It's almost always a simple syntax error somewhere.

                        Just be thankful that you're not dealing with c and a missing ;. 2000 errors, what do you mean 2000 errors, my code is only 200 lines!

                        Sounds like C, PHP, and Turbo Pascal are all the same... When in doubt, put a ; at the end of the line, lol.

                        1 Reply Last reply Reply Quote 1
                        • WrCombsW
                          WrCombs
                          last edited by

                          I have finished my first segment of HTML5 and now an turning to CSS

                          <!-- I did a comment and it told me my post needed at least 2 characters -->

                          1 Reply Last reply Reply Quote 0
                          • scottalanmillerS
                            scottalanmiller @WrCombs
                            last edited by

                            @WrCombs said in HTML5 / CSS /Coding adventures:

                            I've been learning HTML and HTML5 on free Code Camp

                            Just for some clarity, and I know I appear to be the semantics warrior this morning, but this stuff matters a lot especially when you are attempting to learn something new...

                            HTML and CSS are markup languages, not programming languages. They are design languages. Making an HTML document is the same as making a Word Document or a Latex document, for example.

                            Coding, in this context, refers to being a developer (aka programmer.) In the more general, non-technical world, coding does imply "adding codes to things, like a "medical coder" is nothing like programming.

                            So here you would not say that you are coding, developing, or programming. What you would say is that you are marking up or designing.

                            HTML, Latex, and CSS are languages used by designers. JavaScript, PHP, C# are languages used by developers.

                            WrCombsW 1 Reply Last reply Reply Quote 1
                            • WrCombsW
                              WrCombs @scottalanmiller
                              last edited by

                              @scottalanmiller said in HTML5 / CSS /Coding adventures:

                              @WrCombs said in HTML5 / CSS /Coding adventures:

                              I've been learning HTML and HTML5 on free Code Camp

                              Just for some clarity, and I know I appear to be the semantics warrior this morning, but this stuff matters a lot especially when you are attempting to learn something new...

                              HTML and CSS are markup languages, not programming languages. They are design languages. Making an HTML document is the same as making a Word Document or a Latex document, for example.

                              Coding, in this context, refers to being a developer (aka programmer.) In the more general, non-technical world, coding does imply "adding codes to things, like a "medical coder" is nothing like programming.

                              So here you would not say that you are coding, developing, or programming. What you would say is that you are marking up or designing.

                              HTML, Latex, and CSS are languages used by designers. JavaScript, PHP, C# are languages used by developers.

                              I believe that says " I've been learning HTML and HTML5 on free code camp"
                              www.freecodecamp.org
                              Title was updated.

                              scottalanmillerS 1 Reply Last reply Reply Quote 0
                              • scottalanmillerS
                                scottalanmiller @WrCombs
                                last edited by

                                @WrCombs said in HTML5 and CSS adventures:

                                I believe that says " I've been learning HTML and HTML5 on free code camp"

                                It was the "coding adventures" bit.

                                WrCombsW 1 Reply Last reply Reply Quote 0
                                • WrCombsW
                                  WrCombs @scottalanmiller
                                  last edited by

                                  @scottalanmiller said in HTML5 and CSS adventures:

                                  @WrCombs said in HTML5 and CSS adventures:

                                  I believe that says " I've been learning HTML and HTML5 on free code camp"

                                  It was the "coding adventures" bit.

                                  I gotcha.
                                  I corrected that after you're post.

                                  scottalanmillerS 1 Reply Last reply Reply Quote 0
                                  • scottalanmillerS
                                    scottalanmiller @WrCombs
                                    last edited by

                                    @WrCombs said in HTML5 and CSS adventures:

                                    @scottalanmiller said in HTML5 and CSS adventures:

                                    @WrCombs said in HTML5 and CSS adventures:

                                    I believe that says " I've been learning HTML and HTML5 on free code camp"

                                    It was the "coding adventures" bit.

                                    I gotcha.
                                    I corrected that after you're post.

                                    It's a great discussion to have because as you look at coding, it'll be really important to understand which things you like and don't like and know which parts are programming and which are not.

                                    1 Reply Last reply Reply Quote 1
                                    • 1 / 1
                                    • First post
                                      Last post