Saturday, November 11, 2023

how to insert a background image in html.

how to add background image in html


background image in html

Program  

 Background Image 



<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
content="width=device-width,
initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    p{
background-image:url
('https://cdn.wallpapersafari.com/27/83/hGWHei.jpg');
<!-- image path -->
height:600px; <!--height of image--> 
      width: 50%;
    }
    p{
        color: red;
        text-align: center;
    }
</style>
<body>
    <h1>Background Image</h1>
    <BR<BR><BR>
<p><BR<BR><BR><BR><BR> how to add background
image  in html programe . <br>
    learning for the this website website.<br>
     follow this website and learning in the
HTML,CSS,JAVASCRIPT
PROGRAME AND theory learn in improve your
knowledge website
https://webdesigningtheory.blogspot.com  <br>
</p>    <!--this information display
in the image -->
</body>
</html>


HTML Background Image

 The <background> image attribute in the HTML document is used.

  you can use the path of image tag value of

 background attribute. 

Syntax :-

 background-image: url('path of image');


Visit link :-


anchor-tag in the html

image tag

html list

paragraph-tag.html

comments-tag.html

Thursday, November 2, 2023

how to add image tag in html

 How To Add  Image Tag In Html 


HTML IMAGE TAG CODE




Q] What Is The  Image  Tag  In  HTML?


  1.  The  HTML  tag is used to display an image on a web page .
  2.  It is a self -closing tag.
  3.  which means it does not need a separate closing tag
  4.  The <img> tag used embed an image in HTML page.
  5.  Image are not technically  insert into a web page.
  6.  image are linked in to the web pages.
  7. The <img> tag is empty it contains attributes only and does not have a closing tag.

Syntax :-


 <img src="image_path" alt="alternative -text" >


Q] What Are Image  Tag.?

Image tagging is process of identifying and labeling the contents of an image tag 
This can be done manually by someone looking at the image and typing in description/ 
automatically using machine


Html IMG Attribute :-


 1] src :-

  •  src is used to specify the path to the image.
  •  It is a necessary  attribute that describes source or path of the image.
  • It instructs the browser  look for the image on the server .
  • specifies the path to the image.

 2] alt :-

  •    The alt attribute defines an alternate  text for the image it cant be displayed .
  •  The value of the alt attribute describe the image information the image in words.

  • The alt attribute is considered best /good SEO prospective.

   3] Width :-

  • width is an optional attribute which is used to specify the width to display the image.                                                              
  • It is used to specify width of the image.

Height :-

  •  height is used to specify the height of the image

 

Syntax:-

  <img src=" image-path" alt" image-info" width="image-width-put" 

   height=" image-height-put">

Program :-

<!DOCTYPE html>
<html>
<head>
   
    <title>image html tag</title>
</head>
<body>
   <h2>html tag </h2>
<img src=
"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTU_
ej9ZY8Ee051iV1P0wHZhhlCLdN1nZfGZQ&usqp=CAU"
alt="nature" width="" height="">
</body>
</html>


Output:-   

img


👉👉

 VISIT THE LINK

👍👍 

html-anchor-tag

Wednesday, November 1, 2023

Html anchor tag

  How to Add HTML  Anchor Tag 


anchor tag html

 

Anchor Tag 

The <a> tag define hyperlink 

 1]  Html anchor tag defines a hyperlink this  used to link from one           page to another.

 2]  Its create hyperlink to other web page as well as files, location 

 3]  Most important attribute of the<a> element is the href attribute.

 4]  when link is clicked it redirects the user to that page.

 5]  The <a> tag creates a clickable link.

 6] The href attribute sets the target page or site 

example:- https://webdesigningtheory.blogspot.com/?m=1

7] The target attribute specifies in what tab ,window to open the new       page.

 8]  Its href  <a>  attribute  creates a hyperlink to web page, files                 email addresses ,locations in the same page else URL address.

 9]    hyperlink its important to the website ,web page  ,or part of the          same web page to link to.

10]  In addition to the href attribute website linking to open in                  another browser tab. you just need to set  the value of the target          attribute  to blank.

 11]  <a> hyperlink is the Global attribute / event attribute =supports 

       which indicates the links destination.

default link :

 unvisited link -blue
 visited link-purple
 active  link- red


Q. What is the Anchor Tag  in html?

An anchor is a piece of text which marks the beginning and/or the end of a hypertext link. The text between the opening tag and the closing tag is either the start or destination specifies where to open the linked document.


Syntax

<a href="https://webdesigningtheory.blogspot.com
/?m=1">webdesigningtheory.blogspot</a>


 Example

<!DOCTYPE html>
<html>
<head>
   
    <title>Document</title>
</head>
<body>
<h2>visit the link</h2>
   <ul>
    <li><a
href="https://webdesigningtheory.blogspot.com
/?m=1">Website 1</a></li>
<li><a href=
"https://webdesigningtheory.blogspot.com/?m=1">
Website 2</a></li>
    <li><a href=
"https://webdesigningtheory.blogspot.com/?m=1">
Website 3</a></li>
   </ul>  
</body>  
</body>
</html>




Output :-
<a> hyperlink output


Visit the link

html-comments tag

script element html

html list tag

how to add background image in html

html anchor tag

creating-simple-customer-log form

contact-from.html