Examples of Commonly used tags in HTML
Example 1: This example shows the implementation Document structure tag with an example
HTML
< html > < head > < title >Title of your web page</ title > </ head > < body > HTML web page contents </ body > </ html > |
Output:
Example 2: In this example we starts with <!DOCTYPE html>, setting HTML5 type. <html lang=”en”> defines English language. <head> contains metadata. <title> sets browser tab title. <body> contains visible content including common HTML tags like <div>, <h1>, <p>, <a>, and <img>.
HTML
<!DOCTYPE html> < html lang = "en" > < head > < meta charset = "UTF-8" /> < meta name = "viewport" content=" width = device -width, initial-scale = 1 .0" /> < title >Most commonly used tags in HTML</ title > </ head > < body > < div > < h1 >Welcome to Our Website!</ h1 > < p > We are glad to have you here. Explore our content and feel free to reach out if you have any questions. </ p > < img src = "https://media.w3wiki.org/wp-content/uploads/20240308152622/GeeksLogo.png" alt = "About Us" /> </ a > < p > Learn more < a href = about us </ a >. </ p > </ div > </ body > </ html > |
Output:
HTML is the foundation of web pages and is used for webpage development by structuring websites and web apps. You can learn HTML from the ground up by following this HTML Tutorial and HTML Examples.
Supported Browsers:
Most commonly used tags in HTML
Most commonly used tags in HTML refer to HTML elements frequently utilized for structuring web content. These include <div> for division, <p> for paragraphs, <a> for hyperlinks, <img> for images, and others essential for building web pages, forming the basis of web development.
HTML contains lots of predefined tags. Some of them are described below.