html pictures and html entities

img tag

< Img src = "../ imgs / msn1.jpg" alt = "This is a picture" title = "picture" width = "300px" height = "300px" >

src: storing image resource path

Example path: ../ HTML / imgs / banner1.jpg relative path (relative to the current document)

                 C: \ User \ Desktop \ web \ HTML \ imgs \ banner1.jpg absolute path (basically not used)

alt: When a picture does not display the prompt content

title: Tip the contents when the mouse hovers over the image elements displayed

width: Set the width of the image

height: Set the height of the image

Note: When you change the picture size, simply modify a parameter, another parameter scaling

 

Why is there a gap between the picture?

html standard document flow characteristics: wrap blank

 

html entities:

Used to represent special symbols (symbols have special meaning in html language)

       <         &lt;         less-than

       >         &gt;       greater-than

    Space & nbsp; The following is equivalent to pressing the spacebar

      &          &amp;

Copyright notice: & copy;

Register logo: & reg;

Guess you like

Origin www.cnblogs.com/crazier/p/11563516.html
Recommended