Magento Expert Forum - Improve your Magento experience

Results 1 to 19 of 19

Do all HTML tags come in pair?

  1. #1

  2. #2
    Junior Member
    Join Date
    Oct 2016
    Posts
    605
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default

    Most of tags are come in pair but some of tags are not required closing tags. These tags are called self closing tags. For example, <hr>, <br>.

  3. #3
    Junior Member
    Join Date
    May 2017
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    For self closing tags, you also can use <br/> or <hr/>

  4. #4
    Junior Member
    Join Date
    Jul 2017
    Location
    Delhi
    Posts
    60
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default

    Nopss...there is tag <br> tag is html is not use in pair but work as individual tag when designing a website.

  5. #5
    Junior Member
    Join Date
    Mar 2017
    Location
    Delhi
    Posts
    211
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default

    NO, not all the HTML tags do not come in pair like
    <br />
    <area />
    <base />
    <col />
    <embed />
    <image />
    <hr />
    <br />
    <wbr />
    <source />
    <meta />
    <link />
    <input />

  6. #6
    New member
    Join Date
    May 2016
    Location
    Jalandhar, Punjab, India
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You can use </ br> tag for self closing.

  7. #7
    Junior Member kajal's Avatar
    Join Date
    Sep 2014
    Location
    Bangalore
    Posts
    567
    Thanks
    0
    Thanked 8 Times in 8 Posts

    Default

    All tag come in pairs except for Void elements, which at the time of this writing include: area, base, br, col, embed, hr, img, input, keygen, link, meta, param, source, track, and wbr.

  8. #8
    Junior Member
    Join Date
    Apr 2017
    Posts
    132
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    No not always all tags are in pair. Use some other tags like </ br>

  9. #9
    Junior Member
    Join Date
    Feb 2017
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by barbara glowam View Post
    Most of tags are come in pair but some of tags are not required closing tags. These tags are called self closing tags. For example, <hr>, <br>.
    The best reply, nothing to add here. Just remembered about free html tools from Templatemonster available now https://www.templatemonster.com/blog...imation-tools/ , if you're eager to create an animation - these products will be extremely useful. Good luck!

  10. #10
    New member
    Join Date
    Jan 2018
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You can use </ br> tag for self closing.

  11. #11
    Junior Member petershene's Avatar
    Join Date
    Aug 2017
    Location
    South Africa
    Posts
    36
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default

    HAhai used to type <br></br> so much and i always thought it was weird how the spaces where so big ( it counts both as a break ) . When i ran it through w3 it always used to show an error but not explain thqat this is a self closing tag . Ther are only a few i know of <col />
    <command />
    <embed />
    <hr />
    <img />
    <input />
    <keygen />
    <link />
    <meta />
    <param />

  12. #12
    New member trishana12's Avatar
    Join Date
    Jan 2018
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Most HTML labels come in sets, an opening and shutting set. The content to be designed by the labels is composed of the match. It is basic for the two labels to be available for the archive to work effectively. All labels are encased in left and right point sections (<) and (>).

    Hope you got the answer.

  13. #13
    New member
    Join Date
    Mar 2018
    Posts
    2
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    you also can use <br/> or <hr/> when design website.
    Last edited by jame; 08-03-2018 at 06:56 AM.

  14. #14
    Member
    Join Date
    Jun 2017
    Location
    jalandhar
    Posts
    42
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I agree with above comments

  15. #15
    New member
    Join Date
    Apr 2018
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    you also can use <br/> or <hr/> For self closing tags

  16. #16
    Junior Member
    Join Date
    Oct 2017
    Location
    Germany
    Posts
    23
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Most HTML tags come in pairs, an opening and closing set. The text to be formatted by the tags is written between the pair. All tags are enclosed in left and right angle brackets (<) and (>). Closing tags are preceded by a backslash (/).

  17. #17
    New member
    Join Date
    Jul 2015
    Location
    Bangalore, India
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    you can use <br> and <hr> tags.. its self closing tag..

  18. #18
    Junior Member
    Join Date
    Oct 2017
    Location
    Germany
    Posts
    23
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    no except some like <br> <hr> and soo on

  19. #19
    Junior Member nairjeet's Avatar
    Join Date
    Aug 2016
    Location
    Mumbai
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Most HTML tags come in pairs, an opening and closing set. The text to be formatted by the tags is written between the pair. It is essential for both tags to be present for the document to work correctly. All tags are enclosed in left and right angle brackets (<) and (>).

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •