Do you know what HTML spoiler is? Website development is in demand among many. Some learn the development of Internet resources on their own, take information from a variety of sources. There are concepts that they have to face for the first time. What is a spoiler and how to make it on a site without any help? In this article you will learn about this.
What is a spoiler?HTML, (CMS). – , , . . HTML. , - ? . , HTML . , , . , , . .
Search engines see hidden text; this does not interfere with the ranking of a resource’s ranking. Often spoilers are used to hide supporting information that is not interesting to everyone. There are ready-made spoiler plugins, but you can develop your own code with a certain style that matches the design of a particular site.
Spoiler example
Let's figure out how to make the spoiler HTML code. The code that you see below should be placed between the head tags of your HTML file, if you want to use your spoiler on several pages of the Internet resource. In the case when it will be necessary to apply it only on one specific page, you can put the code between the body tags.
The spoiler title and its body look like this:The main thing has been done, but so far our spoiler will not work fully. The fact is that the content of our HTML spoiler is always open. To fix this, CSS is required. Add:If you do everything as described here, get a workable design.Spoiler for Joomla
, , Joomla, Core Design Spoiler. Core Design Scriptegrator, . , . , , ([spoiler]). . . : , .
, :
- Title .
- Action , .
- Element (link – , button - ).
Inside the spoiler tag, you can use text with HTML tags.
Spoiler is a convenient tool, it is widely used on various blogs and forums. Agree, it's nice to hide those parts of the page that overload it. Improve the appearance of your site, as many users like it.