|Connect us with

Previous

Next


HTML Elements

HTML Elements | Element Example | HTML Attributes

Everything from the start tag to the end tag is called an HTML element. For example, the p element represents the paragraph of the document. some elements can also contain attributes that define its additional properties.

HTML Element

Note: Some of the HTML elements are also called as empty elements. because these elements don't have an end tag. like <br />, <hr>, etc..


HTML Element Example:


Example Explained:
  • The <html> element defines the complete HTML document with an open and the end tag.
  • The <body> element defines the body of the document with an open and the end tag.
  • The <h1> element defines a heading with open and the end tag and also content.
  • The <p> element defines a paragraph with open and the end tag and content.

HTML Attributes

HTML attributes provide extra more information about elements. like width, the height of an image, etc.

HTML Attribute Example:


Example Explained:
  • The <src> attribute specifies the path of the image.
  • The <height> and <width> attributes specifies the height and width of the image.
  • The <alt> attributes define the alternate text for an image.

All these attributes giving additional information to the above element.

Let's take one more Example:


IF YOU LIKE OUR HTML TUTORIALS PLEASE DON'T FORGET TO SHARE

Subscribe for more videos on our Youtube channel. if you like our tutorial please Like and Subscribe to our Facebook and Youtube.



Previous

Next



YOUR COMMENTS ARE MOST IMPORTANT TO US:

0 Comments



Why basictutorials.in ?

● To Learn Tutorials in a Simple Way.

● To Learn Excel Basics With Downloadable Samples.

● To Learn HTML With Sample Website Code.

● To Learn PowerPoint Presentations.

● To Learn MS Word for Offical use.