
HTML Part 2
Span Element : It is an inline element. It is used to style small parts of text. It doesn't have semantic meaning. Example : <p> This is <span style= "color:red;" > important </span> text </p> link : It is used to navigate from one page to another. Example : <a href= "https://google.com" > Go to Google </a> To open link in new tab: <a href= "https://google.com" target= "_blank" > Open Google </a> Link to another page: <a href= "about.html" > About Page </a> image : It is used to dispaly image. It is a self closing tag. Example : <img src= "image.jpg" alt= "Description" > <img src= "image.jpg" width= "200" height= "150" > <a href= "https://google.com" > <img src= "image.jpg" alt= "Google" > </a> src - Path of the image alt - Alternative text. It is shown when the image fails to load. list : It is used to display items in an organized way. There are 3 types of list. Unordered List <ul> , Ordered List <ol> and Description List <dl> . Unordered List : Used when order does not matter. Displ
Continue reading on Dev.to
Opens in a new tab


