Research Blog 12: Information about insert images and content
Image insert
Pictures on the web page have to provide information, display works, decorate the web page, show the role of personal sentiment and style. The image formats used by users in web pages mainly include GIF, JPEG, and PNG, among which GIF and JPEG are the two most widely used formats.
In adding pictures and GIFs, I found information from w3schools and youtube to adjust it to the appropriate size and add photos and text.
The most important thing to insert an image
into the website is the <img>tag. The height and width properties of the
tag set the size of the image.
If I set these properties, it can save space for the image when the page loads. Without these attributes, the browser has no way of knowing the size of the image, so it can't reserve the right space for the image, so when the image loads, the layout of the page changes.
At the beginning of the page, I used the height and width properties to scale the image. If the height and width attributes are used to shrink the image, then the user must download a large volume of the image (even if the image looks small on the page). So I use software such as Photoshop to get the image to the right size before I use it on the web.
image insert
When I need to add a background image to a
web page, I need HTML and CSS together. The first step is to create an image
folder to hold the HTML files and images together. After that, I have to create and name a
folder on my computer so I can find it later. Use short, single words to name
files in the folder.
Open the Dreamweaver and create a new file.
Save the file as index.html.
Add the background image address in the
site root folder. Find "background-image: URL(" ");" in the
index.html file. For this line, move the cursor between the brackets and enter
the background image filename. And the background image should be in the CSS
file and it can link to the HTML pages.
Adding an animated banner to a website
should be the same as adding an image
<div id="banner"><img src="images/gif.gif" width="995"></div>
Content
Useful Link for adding the images and gif on w3schools and youtube
https://www.w3schools.com/cssref/pr_background-attachment.asp
评论
发表评论