Skip to main content

Basic Web Design using HTML - Part 2 (HTML Elements and Attributes)

Basic Web Design using HTML - Part 2 (HTML Elements and Attributes)

HTML Elements:- HTML elements generally consists with open tag, content and close tag. Basic syntax of HTML element is given below:



HTML Attributes:- Using attributes we provide additional information about HTML elements. Attributes are specified in Open tag or Start tag. For example:


Here using lang="en-US" attribute specify the language (en).

Some commonly used attributes and it's short description are given below:



  • alt = Specify alternate name for an Image.
  • href = Specify URL.
  • id = Specify unique ID of the element.
  • src = Specify source.
  • style = To declare inline CSS.
  • height = To declare height.
  • width = To declare width.
  • rel = Specify relationship. etc..  

If you have any question regarding this tutorial then feel free to contact via contact form or Visit our Web Design and Development site.  

Read this Post