Solved: where to use .target command in html

The main problem with using the .target command in HTML is that it is not supported by all browsers.


The .target command is used in HTML to target a specific element on a page.

In this case, the target is the element with the id “main”.

The #main command is used in CSS to select an element with the id “main”.

HTML a target Attribute

An HTML target attribute is a tag that tells a web browser which document to open when the user clicks on a hyperlink.

Related posts:

Leave a Comment