HTML Attributes

HTML Attributes

href Attribute

<!DOCTYPE html>
    <html>
    <head>
    <title>HTML href Attribute</title>
    </head>
    <body>
        <a href="https://www.csias.in/">Visit csias.in</a>
    </body>
    </html>
    

Output

src Attribute

 <!DOCTYPE html>
      <html>
      <head>
      <title>HTML src Attribute</title>
      </head>
      <body>
          <img src="apple.png" width="300" height="300">
      </body>
      </html>
    

width and height Attributes

 <!DOCTYPE html>
      <html>
      <head>
      <title>HTML width and height Attributes</title>
      </head>
      <body>
          <img src="apple.png" width="300" height="300">
      </body>
      </html>
    

alt Attribute

 <!DOCTYPE html>
      <html>
      <head>
      <title>HTML width and height Attributes</title>
      </head>
      <body>
          <img src="apple.png" width="300" height="300">
      </body>
      </html>
    

style Attribute

 <!DOCTYPE html>
      <html>
      <head>
      <title>HTML style Attribute</title>
      </head>
      <body>
          <p style="color:blue;">This is a Blue Paragraph</p>
      </body>
      </html>
    

Output

This is a Blue Paragraph