19.6k views
2 votes
List the steps to view the source code of a web page of your choice. Make a list of the different tags you see and explain their function

User Lex Carter
by
5.3k points

1 Answer

1 vote

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 :

  1. <!DOCTYPE> Defines the document type
  2. <html> Defines an HTML document
  3. <title> Defines a title for the document
  4. <body> Defines the document’s body
  5. <h1> to <h6> Defines HTML headings
  6. <p> Defines a paragraph
  7. <br> Inserts a single line break
  8. <hr> Defines a thematic change in the content
  9. <!–…–> Defines a comment
User Htet Win
by
6.0k points