Current location - Quotes Website - Personality signature - Several common uses of iframe tags nested in frames
Several common uses of iframe tags nested in frames
Let's take a look at Baidu Encyclopedia's introduction to iframe tag elements! It's all details, and then it's practical application!

2

Create a new notepad file and rename it to. Html file, and add the necessary

three

On < body >; Add iframe, ulr as the address of the web page to be nested, and you need to bring http. Because you don't have a website in the experience, you won't play it in the demonstration. Width and height are occupied width and height. Take Baidu's homepage as an example. Of course, you can also nest two webpages!

four

Of course, you can also nest two or more web pages, and the height and width can be set by yourself!

five

Look at other commonly used optional attributes, such as name. By defining a good name, you can specify the frame page to jump to!

six

As for other optional attributes, I won't give examples one by one, just look at the analysis and try again. For example, scrolling="no "just does not display the scroll bar, align controls the alignment of the frame, and so on, and the usage is similar!

seven

Source code:

& lthtml & gt

& lthead & gt

Use of & lttitle & gtiframe element tags

& ltbody & gt

& ltahref = "URL" target = "iframe1"> jump to Baidu experience.

& ltiframe src = " URL " width = " 600 px " height = " 400 px " name = " iframe 1 " scrolling = " no "/& gt;

& ltiframe src = " URL " width = " 600 px " height = " 400 px " name = " iframe 2 " align = " right "/& gt;

& lt/body & gt;

& lt/head & gt;

& lt/html & gt;