Web Development and Design Foundations with HTML5 (9th Edition) (What's New in Computer Science)
Web Development and Design Foundations with HTML5 (9th Edition) (What's New in Computer Science)
9th Edition
ISBN: 9780134801346
Author: FELKE-MORRIS
Publisher: PEARSON
Question
Book Icon
Chapter 4, Problem 3AYK
Program Plan Intro

<img>” tag:

The image tag used to define an image in the web page. The tag “<img>” used to describe the image; it has the following attributes:

  • alt – this attribute used to specify the alternative text when the browser cannot support the image.
  • border – specify the border width of an image
  • height and width – this attributes specify the height and width of the image.
  • longdesc – specify the URL that provide detailed description of an image.
  • src – mention the source of an image.

The other attributes also used to specific purpose of an image.

Blurred answer
Students have asked these similar questions
Write down complete HTML + CSS + jQuery code to demonstrate following:a) When you double click a button, show 3 boxes with green, red and yellow color with different border styles.b) Demonstrate with complete jQuery code the functionality of text auto completion by showing suggestions for words typed by user in a search bar
Write a JavaScript code with the following three different conditions: Create the HTML document containing an <img> element with id="myImage"  for any images you want. Use the HTML DOM to get the element with id="myImage". Write a JavaScript function to change the JavaScript src attribute of <img> element from " pet.gif" to " cat.jpg" when clicking on a button. Note: Students can use any gif and jpg files according to their choice.
Open your text editor: Please complete this code in HTML   create a new file and name it “Lec_Ex4_2.html”  create a new file and name it “style_2.css”  Type the 8 lines in the html(basic html structure).  Add this line to the head section of html:     Write these lines in the body of the html:  <div id=“title”><h1>Your name</h1></div> <div id=“container1”> . </div> Style it in the CSS: #title{ background-color:blue;} #container1 {background-color:red;}   If we don’t specify the width of the div element,it will take up the full width available. We can specify the width and height of the divusing percentages or pixels. Percentages are flexible (changes according tothe screen size), and pixels are fixed. Add the following property to both divs: Width:80%; This is comparing to the full screen  For the title div: Padding:2%; For the container div: Height: 400px; Height can also be made with percentages, butpixels are preferred.  Your…
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Cengage Learning