Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Adding details with summary html tags

by Anonymous Monk
on May 22, 2020 at 22:55 UTC ( #11117131=note: print w/replies, xml ) Need Help??


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 (Curate) 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 (Cardinal) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11117131]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2020-09-29 14:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (146 votes). Check out past polls.

    Notices?