http://qs321.pair.com?node_id=11117131


in reply to Adding details with summary html tags

I was wondering if <details> with <summary> could be added as acceptable html here in PerlMonks. Those tags could be used when code or data examples are more than 10 or so lines. <readmore> is great for keeping long batches of code or data from the main list of posts, however, long batches of code might do well if kept in a <details> tag where the code or data can be hidden to keep page lengths from being over long upon initial load. So what do you all think?

I think, if you can't handle the existing "tags" why would "more tags" be of benefit?

Also, I think it's fairly pointless to add more tags when existing tags could be merely styled

Replies are listed 'Best First'.
Re^2: Adding details with summary html tags
by Lady_Aleena (Priest) on May 22, 2020 at 23:32 UTC

    It would take a lot of styling to get existing html tags to do what <details> and <summary> do. Also those styles would apply only to what I see, not what everyone else sees. If I remember correctly, the style attribute, and maybe even the class attribute, has been disabled. So, how would you suggest that I get the <div> or <p> tags to act like <details> and <summary> for everyone who reads what I post? Also, <details> and <summary> are semantic whereas styled <div> or <p> tags are not.

    So, sure, I could add styles to my personal css here on PerlMonks, but would those styles be copied to everyone elses' css too? Would you add those styles to your css? Would the styles even work?

    I do not see how this would create a problem.

    My OS is Debian 10 (Buster); my perl version is 5.28.1.

    No matter how hysterical I get, my problems are not time sensitive. So, relax, have a cookie, and a very nice day!
    Lady Aleena
Re^2: Adding details with summary html tags
by LanX (Saint) on May 23, 2020 at 00:42 UTC
    Please don't use code tags for quoting.

    update

    Especially extremely long lines.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

    A reply falls below the community's threshold of quality. You may see it by logging in.