4/17/2024 0 Comments Html code iframe![]() Here, we are showing an example of Iframe which containing specific Height and width in pixels format Let’s consider one example where we will show how to create an iframe with a specific height and width. Here are some examples of Iframes in HTML, which are explained below: Example #1 Longdesc: With the help of this attribute, you can link another page with a lengthy description of the contents of your frame.Width: It is used to define the width of the frame.Height: It is used to define the height of the frame.The values included are ‘yes’, ‘ no,’ or ‘auto.’ Scrolling: These attributes control whether the scrollbar will show or not in the frame.Marginheight: This allows you to define space between the top & bottom of the frame.Marginwidth: Allows you to define space between the left & right sides of the frame.Value 1 is to show the border & 0 is not to show the border to the frame. Frameborder: This is a helpful attribute that allows you to show a border or not to show the border to the frame.So we have to set the value true to happen to this function. allowfullscreen: This attribute allows you to display your frame in the full-width format.It’s most useful when you are creating one link to open another webpage. Name: Name is an attribute used to give some identification name to the frame.URL specifies the target webpage to be loaded within an iframe. Src: This attribute is used to insert a file that needs to be included in the frame. ![]() There are different attribute tags used in Iframes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |