Magento Expert Forum - Improve your Magento experience

Page 1 of 2 12 LastLast
Results 1 to 20 of 21

Do all HTML tags come in pair?

  1. #1

  2. #2
    Junior Member
    Join Date
    Oct 2016
    Posts
    984
    Thanks
    1
    Thanked 4 Times in 4 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
    68
    Thanks
    0
    Thanked 3 Times in 3 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
    244
    Thanks
    0
    Thanked 1 Time in 1 Post

    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
    1,446
    Thanks
    0
    Thanked 20 Times in 20 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 2 Times in 2 Posts

    Default

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

  9. #9
    New member
    Join Date
    Jan 2018
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

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

  10. #10
    Junior Member petershene's Avatar
    Join Date
    Aug 2017
    Location
    South Africa
    Posts
    91
    Thanks
    2
    Thanked 3 Times in 3 Posts

    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 />

  11. #11
    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.

  12. #12
    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 07:56 AM.

  13. #13
    Member
    Join Date
    Jun 2017
    Location
    jalandhar
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I agree with above comments

  14. #14
    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

  15. #15
    Junior Member
    Join Date
    Oct 2017
    Location
    Germany
    Posts
    21
    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 (/).

  16. #16
    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..

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

    Default

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

  18. #18
    Junior Member nairjeet's Avatar
    Join Date
    Aug 2016
    Location
    Mumbai
    Posts
    21
    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 (>).

  19. #19
    Junior Member aishwaryaV's Avatar
    Join Date
    Sep 2018
    Location
    Noida, India
    Posts
    31
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    No, not all tags come in pair. Some are no-paired tags also. HTML tags that come in pair include opening and closing tag. Closing tags are preceded by /
    <HR> and <BR> tags dont come in pair.

  20. #20
    Junior Member
    Join Date
    Aug 2018
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Not necessarily, there are some self closing tags like the break tag </br> that can be used without pairing. However, in web design pairing html tags makes it a lot easier to maintain and troubleshoot code.





    ---------------------------------------------------------
    https://www.netguru.co

Page 1 of 2 12 LastLast

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
  •