Forum

What are the 10 bas...
 
Notifications
Clear all

What are the 10 basic HTML tags?

1 Posts
1 Users
0 Likes
74 Views
imodhapugolla
(@imodhapugolla)
Trusted Member
Topic starter
 

HTML is the markup language for displaying web pages and other documents on the internet. HTML has many tags for different tasks such as identifying headings, markup words, images and links. The markup tags are instructions that tell you how to display items in your web pages or document.

1) <html> — this tag tells the browser that everything within it is part of a standard HTML document and not something else like a different language or programming code.
Normally, HTML documents begin with this tag.

2) <body> — this tag defines the area of your document where the content goes. The content is all of your text, graphics, links and other items that make up your web page or document.
All HTML documents end with the closing body tag </body>.

3) <head> — this tag defines the head section of the document which contains information about the HTML page like its title, keywords and other information that can be used by search engines or browsers. It also tells where to find external resources like CSS (stylesheets), JavaScript (scripting language) files and images for your document. The closing tag is </head>.

4) <title> — this tag defines the title of your document and where to place it in the browser window. It is most often displayed in the web browser's title bar or tab. The title is not seen by viewers until they move their cursor over it. The closing tag is </title>.

5) <link> — this tag defines an external resource like a link to another web page or a CSS, JavaScript or image file and tells where and how it should be used. This item has no closing tag as its contents are displayed immediately after it’s opened, so its contents remain for as long as the page is viewed.

6) <style> — this tag defines CSS code to be used in your HTML document and tells where and how it should be used. This item has no closing tag as its contents are displayed immediately after it’s opened, so its contents remain for as long as the page is viewed.

7) <script> — this tag defines the JavaScript code to be used in your HTML document and tells where and how it should be used. This item has no closing tag as its contents are displayed immediately after it’s opened, so its contents remain for as long as the page is viewed.

8) <em> — this element (<em>) is an inline element; it should always be placed within other elements, like other bold or italic text (or other marking). It must not (should not) appear on its own. Usually, this element should be displayed inside larger text bold tags (em blockquote), usually next to the body of the opening tag of your web page, but sometimes preceding it.

9) <strong> — this element (<strong>) is an inline element; it should always be placed within other elements, like other bold or italic text (or other marking). It must not (should not) appear on its own. Usually, this element should be displayed inside larger text italic tags (em blockquote), usually next to the body of the opening tag of your web page, but sometimes preceding it.

10) <a> — this element (<a>) is an inline element; it should always be placed within other elements, like other bold or italic text (or other marking). It must not (should not) appear on its own.

 
Posted : 30/10/2021 3:15 am
Share: