HTML, Head, Body tags
نشر بتاريخ 2024-08-13 03:31:57
0
8كيلو بايت
HTML
- The root element of an HTML document.
- Encloses the entire document, including the
headandbodysections. - Provides the overall structure for the webpage.
Head
- Contains metadata about the webpage, information that is not displayed directly on the page but is essential for browsers and search engines.
- Common elements within the
headinclude:<title>: Sets the title of the page, displayed in the browser's tab.<meta>: Provides additional information about the page, such as keywords, description, author, character encoding, viewport, etc.<link>: Links to external stylesheets (CSS) for styling the page.<script>: Includes JavaScript code for interactive elements.
Body
- Contains the visible content of the webpage.
- This is where you place elements like headings, paragraphs, images, links, forms, and other content that users will see.
- Common elements within the
bodyinclude:<h1>to<h6>: Defines headings of different levels.<p>: Defines a paragraph.<img>: Embeds an image.<a>: Creates a hyperlink.<div>: Defines a division or section in an HTML document.<span>: Defines an inline section in an HTML document.
Basic HTML Structure:
HTML
<!DOCTYPE html>
<html>
<head>
<title>My Web Page</title>
<meta charset="UTF-8">
</head>
<body>
<h1>Hello, world!</h1>
<p>This is a paragraph.</p>
</body>
</html>
In summary:
- The
htmltag encompasses the entire document. - The
headtag contains metadata about the page. - The
bodytag contains the visible content of the page.
البحث
الأقسام
- Technology
- التعليم
- Business
- Music
- Got talent
- Film
- Politics
- Food
- الألعاب
- Gardening
- Health
- الرئيسية
- Literature
- Networking
- أخرى
- Party
- Religion
- Shopping
- Sports
- Theater
- Wellness
إقرأ المزيد
How to Get YouTube Premium for Free?
Using YouTube Vanced: The Popular Alternative
YouTube Vanced has emerged as one of the most...
How AI and Machine Learning are Transforming Industries
The Future is Here! 🚀 AI and Machine Learning are Transforming Industries. Are You Ready to...
Introduction to Linux: Hardware Components
Linux is a versatile and powerful operating system that can run on a wide variety of hardware....
S.4 BIOLOGY SCENARIO BASED QUESTIONS
S.4 BIOLOGY SCENARIO BASED QUESTIONS
Tuple, Set, and Dictionary
These are all fundamental data structures used to organize information in programming. Here's a...