An HTML element is a type of HTML document component, one of several types of HTML nodes. HTML document is composed of a tree of simple HTML nodes, such as text nodes, and HTML elements, which add semantics and formatting to parts of document. Each element can have HTML attributes specified.
Step-by-step explanation:
To view the source code:
- Press Ctrl+U or F12 on your computer's keyboard.
- Select the Elements tab at the top of the right window.
OR
- Right-click on a blank part of the web page and select View source from the pop-up menu that appears.
Once you're done viewing the source code on a web page, you may want to exit or close it. Closing the source code depends on the method you've used to open it.
HTML tags are :
- <!DOCTYPE> Defines the document type
- <html> Defines an HTML document
- <title> Defines a title for the document
- <body> Defines the document’s body
- <h1> to <h6> Defines HTML headings
- <p> Defines a paragraph
- <br> Inserts a single line break
- <hr> Defines a thematic change in the content
- <!–…–> Defines a comment