Web Development and Design Foundations with HTML5 (8th Edition)
Web Development and Design Foundations with HTML5 (8th Edition)
8th Edition
ISBN: 9780134322759
Author: Terry Felke-Morris
Publisher: PEARSON
Question
Book Icon
Chapter 3, Problem 2WR
Program Plan Intro

CSS Opacity or Transparency:

The opacity property is used to specify the transparency of an element. The value of opacity can range from 0.0-1.0. The lower the value, more will be the image transparency.

Program:

<!--HTML Tag-->

<html>

<!--Head Tag-->

<head>

<!--Style Tag-->

<style>

img

{

opacity: 0.5;

filter: alpha(opacity=50); /* For IE8 and earlier */

}

<!--Close Tag-->

</style>

<!--Close Tag-->

</head>

<!--Body Tag-->

<body>

<!--Heading Tag-->

<h1>Image Transparency</h1>

<!--Paragraph Tag-->

<p>The opacity property specifies the transparency of an element. The lower the value, the more transparent:</p>

<p>Image with 50% opacity:</p>

<img src="img_forest.jpg" alt="Forest" width="170" height="100">

<!--Close Tag-->

</body>

<!--Close Tag-->

</html>

Blurred answer
Students have asked these similar questions
If you use CSS to set both a background picture and a background colour, explain how the browser will generate the web page.
Create a simple Jquery, HTML, CSS website using the examples in the link (10 or more) https://www.w3schools.com/jquery/jquery_examples.aspTHanks a lot!
Using HTML and CSS programming languages, create your personal web page which is composed by two pages (Curriculum Vitae and Cover letter) with the following content: The curriculum vitae: - The web page title is your name-cv (example: Abcd-CV) - The web page (body) color code is #A9F5F2 - Heads - Paragraph (the style of the text is justifying) - Two different colors of the text - Image (choose image from the web) - Ordered list - Unordered list -Hyperlink that connect you to the second page (cover letter) The cover letter: - The web page title is your name-cover letter (example: Abcd-cover letter) - Head - Paragraph (the style of the text is justifying) - Two different colors of the text - The web page (body) color code is #F5F6CE - Hyperlink that connect you to the wikipedia page of your native cityRequired to answer. Multi Line Text.   please use any data or color, no problem
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Text book image
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Cengage Learning