The <body> tag wraps, around the content of an HTML document that appears on the web browser for users to see. It's where you insert all the elements that make up a webpage, such as text, images, videos, buttons, forms, and interactive elements.
Main Components of the <body> Section;
Example of a <body> section:
<body> <h1>Welcome to My Website</h1> <p>This is a paragraph of text on my site.</p> <img src="example.jpg" alt="Example Image"> <a href="more.html">Learn More</a> </body> |
The combination of the <head> and <body> sections forms the structure of an HTML document. The <head> handles configurations and links while the <body> presents the content visible to users on the webpage. Each tag plays a role, in shaping engaging web interactions.
The <body> tag wraps, around the content of an HTML document that appears on the web browser for users to see. It's where you insert all the elements that make up a webpage, such as text, images, videos, buttons, forms, and interactive elements.
Main Components of the <body> Section;
Example of a <body> section:
<body> <h1>Welcome to My Website</h1> <p>This is a paragraph of text on my site.</p> <img src="example.jpg" alt="Example Image"> <a href="more.html">Learn More</a> </body> |
The combination of the <head> and <body> sections forms the structure of an HTML document. The <head> handles configurations and links while the <body> presents the content visible to users on the webpage. Each tag plays a role, in shaping engaging web interactions.
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