Controlling the size of image in css
img {
max-width:100%;
height:auto;}
Controlling the Align of Image in css
img.align-left {
float: left;
margin-right: 10px;}
img.align-right {
float: right;
margin-left: 10px;}
img.medium {
width: 250px;
height: 250px;}
Background-Imagies
body { background-image: url("images/pattern.gif");}
Reapeated Imagies
body {
background-image: url("images/header.gif");
background-repeat: repeat-x;}
Flash is a very popular technology used to add animations, video, and audio to websites. We then focus on how to add video and audio to your site, using either the new HTML5
<video>
and<audio>
elements or a hosted service (such as YouTube or SoundCloud).
How Flash works in web page
Flash Embedded in HTML After creating a Flash movie you choose File > Save As from the top menu to save your movie. Save the file as “Somefilename.fla”.
To embed the Flash movie you just made into an HTML page, you should go back to your Flash program and do the following steps:
Step 4 Open the HTML page where you want to insert your Flash movie. Insert this code:
code:
<object width="550" height="400">
<param name="movie" value="somefilename.swf">
<embed src="somefilename.swf" width="550" height="400">
</embed>
</object>
Note: This is the minimum code you need to embed a Flash movie in a browser. A broken icon will appear on the Web page if the user does not have the Flash plug-in installed.
Note: In the code above there is both an <embed>
tag and an <object>
tag. This is because the <object>
tag is recognized by Internet Explorer, and Netscape recognizes the <embed>
tag and ignores the <object>
tag.
Let the Flash Program do the Work.
The code above is the absolute minimum code to embed Flash movies in HTML pages. It is not recommended to use the minimum code. There should be a few more attributes added:
classid is an attribute to the <object>
tag. It tells Internet Explorer to load the ActiveX plug-in if it is not installed
pluginspage is an attribute to the <embed>
tag. It displays a link to the Shockwave download page if Netscape does not have it
The Flash program can add these attributes for you: