• Hello,everyone.Recently i encoutered a problem that when i insert HTML code into the Page,i find the additinal html code with the use of chrome developer tool, sometimes add the html tag
    or <p> the html code i inserted is here:

    <form id="contactform">
    <div><label for="name">Your Name:</label><input type="text" /></div>
    <div><label for="email">Email:</label><input type="text"></div>
    <div><label for="website">Your Website:</label><input type="text"></div>
    <textarea id="contactmessage"></textarea>
    <input type="submit" value="Submit">
    </form>

    In chrome, it’ll add html tag
    before the label tag within the elements window of developer tool.

Viewing 3 replies - 1 through 3 (of 3 total)
  • A form is wrapped in one div (as necessary):

    <div>
    <form id="contactform">
    <label for="name">Your Name:</label><input type="text" />
    <label for="email">Email:</label><input type="text">
    <label for="website">Your Website:</label><input type="text">
    <textarea id="contactmessage"></textarea>
    <input type="submit" value="Submit">
    </form>
    </div>

    I did not check the code inside the div…that said look at shortcodes.

    Thread Starter wudiemperor

    (@wudiemperor)

    Thanks, swanson,When i insert the code like this:

    <div id="about">
    You can contact me via the ways below:
    <ul class="socialize">
    <li><a href="#" class="fb" title="Follow me on Facebook"></a></li>
    <li><a href="#" class="tw" title="Follow me on Twitter"></a></li>
    </ul>
    </div>

    It’ll produce additional html tag p before the ul tag.I’ll check the shortcodes.but i use the default theme twentyeleven without shortcodes.php contained.

    Thread Starter wudiemperor

    (@wudiemperor)

    Does it mean if i want to insert other html tags into the page that i should use the shortcodes?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problems in insert HTML code in the Page’ is closed to new replies.