As part of the HTML5 specification, the convention frequently used for HTML tags is lowercase. Although tags in HTML4 and previous versions might be written in capital, lowercase, or mixed case, HTML5 suggests adopting lowercase to adhere to the case-sensitive XHTML standards and provide a more consistent, legible codebase.
Example:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>Welcome to My Website</h1>
<p>This is an example of using lowercase tags consistently throughout an HTML document.</p>
</body>
</html>
Use the <link> tag inside the <head> to attach an external CSS file.
Comments in HTML are written between <!-- and -->.
HTML entities are used to display reserved or special characters.
The <iframe> tag embeds another webpage within the current page.
The id attribute uniquely identifies a single HTML element.
Hyperlinks are created using the <a> tag with an href attribute.
Use the <img> tag and specify the image source with the src attribute.
Use the target="_blank" attribute inside the <a> tag.
Copyrights © 2024 letsupdateskills All rights reserved