Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
LABORATORY 3 theory.doc
Скачиваний:
0
Добавлен:
01.07.2025
Размер:
565.25 Кб
Скачать

« Creating frames. Setting the frame»

  1. <FRAMESET> tag

The <frameset> tag defines a frameset.

The <frameset> element contains one or more <frame> elements. Each <frame> element can contain separate document.

The <frameset> tag has parameters:

Attribute

Value

Description

cols

pixels % *

Specifies the number and size of columns in a frameset

rows

pixels % *

Specifies the number and size of rows in a frameset

  1. <FRAME> tag

The <frame> tag defines one particular window (frame) within a <frameset>. The <frame> tag hasn’t closing tag.

Each <frame> in a <frameset> can have different parameters: border, scrolling, the ability to resize, etc.

The <frame> tag has parameters:

Attribute

Value

Description

frameborder

0 1

Specifies whether or not to display a border around a frame

marginheight

pixels

Specifies the top and bottom margins of a frame

marginwidth

pixels

Specifies the left and right margins of a frame

name

text

Specifies the name of a frame

noresize

noresize

Specifies that a frame is not resizable

scrolling

yes no auto

Specifies whether or not to display scrollbars in a frame

src

URL

Specifies the URL of the document to show in a frame

E xamples

<frameset cols="35%,*">   <frame src="1.htm" name="1">   <frame src="2.htm" name="2"> </frameset>

Browser window divide on two particular window (frames). Into each window load one Web-document.

<a href ="3.htm" target="2"> загрузить 3-й документ во второй фрейм</a>

Document's hyperlink, which load the third file's content into the frame with name «2».

«The concept of media files»

  1. The <EMBED> tag defines a container for an external application or interactive content (a plug-in).

The <EMBED> tag has attributes:

Attribute

Value

Description

height

pixels

Specifies the height of the embedded content

src

URL

Specifies the address of the external file to embed

width

pixels

Specifies the width of the embedded content

autoplaying

True

false

Specifies that the video will start playing

E xamples

<embed src="Linkin Park - What I`ve done-LQ.avi" autoplaying="true">

  1. The HTML <BGSOUND> tag is used to play a soundtrack in the background. This tag is for Internet Explorer only.

The < BGSOUND > tag has attributes:

Attribute

Value

Description

loop

number

Lets you replay a background soundtrack a certain number of times.

src

URL

Specifies the path of the sound file.

Examples

<bgsound src=" Metallica_Nothing_Else_Matters.mp3" loop=20>

  1. An HTML marquee is a scrolling piece of text in your webpage. This is created by using HTML <MARQUEES> tag

The < MARQUEES > tag has attributes:

Attribute

Value

Description

width

%

This specifies the width of the marquee.

height

%

This specifies the height of the marquee. This can be a value like 10 or 20% etc.

direction

up, down, left right

This specifies the direction in which marquee should scroll.

behavior

scroll, slide alternate

This specifies the type of scrolling of the marquee.

scrolldelay

number

This specifies how long to delay between each jump.

scrollamount

number

This specifies the speed of marquee text.

loop

number

This specifies how many times to loop.

bgcolor

color

This specifies background color in terms of color name or color hex value.

hspace

%

This specifies horizontal space around the marquee.

vspace

%

This specifies vertical space around the marquee.

E xamples

<marquee bgcolor=yellow>размещение рекламы</marquee>

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]