Insert Tabbed Content in any single post

I was confused to insert tabs in a single post.
First choice: using a Wordpress Post Tabs plugin and adding custom CSS, but I think it can not add custom JS.
Second choice: modifying the wordpress php file, but which one?. I would like to make like this
Can anyone help me please?

Hi odieardhia69 welcome to the forum

The wschools example is not adding tabs, it is using JavaScript to modify class attribute values.
And it also uses custom CSS to give the appearance of tabbed content.

You missed seeing

<link rel="stylesheet" 

There is no such thing as a <tab> tag.

The closest thing I could think of (other than <pre>) is a misuse of <blockquote>

<html lang="en">
<title>Blockquotes for Tabs test</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
blockquote {
 display: inline;
<h1>Blockquotes for Tabs test</h1>

Note that although it “works” it goes against both using semantic tags and not using tags because of their default style.

i.e. in this case, the content is not a quote, and it is being (ab)used to get the default spacing.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.