Publish in HTML Tutorial el 25/05/2025 13:48
The <meta>
tag is a crucial HTML element that provides metadata about an HTML document. Metadata is information about the data in your webpage that isn't displayed to users but is vital for browsers, search engines, and other web services.
Meta elements are typically placed inside the <head>
section of an HTML document and can specify character encoding, viewport settings, author information, keywords, descriptions, and more. They play a significant role in SEO and how your page is displayed on different devices.
This essential meta tag declares the document's character encoding:
This meta tag is crucial for responsive design on mobile devices:
This meta tag provides a description that search engines may display in results:
This example shows how to use meta tags with JavaScript for page refresh:
This example shows how to modify meta tags dynamically with JavaScript:
<head>
sectionHere are some advanced meta tags you might find useful:
Meta tags are powerful tools that can significantly impact how your website is perceived by both users and search engines. Use them wisely to enhance your site's functionality and visibility.
The <style> HTML element contains style information for a document, or part of a document. ...
The <strong> element is used to indicate that its content has strong importance, seriousnes...
The <span> element is an inline container used to mark up a part of a text or document. Unl...
The <source> element is used to specify multiple media resources for media elements like &l...
The <small> element is used to represent side-comments and small print, typically for discl...
HTML <section> Element: The Complete Guide The <section> element is a semantic HTML ...