how create a onclick expand the paragrah in webpage

EX. The Promise-->>this line click expand same paragrah Pollen-->>this line click expand same paragrah The Stranger-->>this line click expand same paragrah Lily Ann-->>this line click expand same paragrah The River's Fool-->>this line click expand same paragrah how it possible please explain details


3 Answers
1-3 of  3
3 Answers
  • inside this div tag, place all the code that you want the user to see or not see.
    Now, in the head tag of the page, create a new style for the id expand by providing the following text in the head tag of the webpage.
    <style> div#expand{ display:block; } </style>
    Now, in the body of the webpage, create a new anchor tag (a tag) which will control the element to be displayed or to be hidden. In this element, give the href value as “;” and the onclick value as “show()“.
    <a href=";" onclick=show()>Show/Hide Text</a>​

  • you can use the following CSS property for the <p> tag
    transform: scale(2);

    It will enlarge the element .

Html5

Didn't get the answer.
Contact people of Talent-Html5 directly by clicking here