Le voyage de Leul pinned «Guys lets start a challenge. 📍The challenge includes adding new members, who are passionate about coding or hacking. ✅For those of you who add the most will get an admin.»
1. HTML Elements
HTML elements are the building blocks of HTML. They consist of:
Opening tag: <tagname>
Content: The text or nested elements between the tags.
Closing tag: </tagname>
Example:
2. Basic HTML Page Structure
An HTML page typically has a basic structure with the following key elements:
Explanation:
<!DOCTYPE html>: Declares the document as HTML5.
<html>: The root element of the page.
<head>: Contains metadata (like the noscript and styles) about the page.
<noscript>: Sets the noscript displayed in the browser tab.
<body>: Contains all visible content on the webpage.
HTML elements are the building blocks of HTML. They consist of:
Opening tag: <tagname>
Content: The text or nested elements between the tags.
Closing tag: </tagname>
Example:
<p>This is a paragraph.</p>
2. Basic HTML Page Structure
An HTML page typically has a basic structure with the following key elements:
<!DOCTYPE html>
<html>
<head>
<noscript>My First HTML Page</noscript>
</head>
<body>
<h1>Welcome to HTML!</h1>
<p>This is where the main content goes.</p>
</body>
</html>
Explanation:
<!DOCTYPE html>: Declares the document as HTML5.
<html>: The root element of the page.
<head>: Contains metadata (like the noscript and styles) about the page.
<noscript>: Sets the noscript displayed in the browser tab.
<body>: Contains all visible content on the webpage.
3. Common HTML Tags
Here are some frequently used tags:
Headings: <h1> to <h6> for noscripts and subnoscripts.
Paragraph: <p> for text blocks.
Links: <a> for hyperlinks.
Images: <img> for displaying pictures.
<img src="image.jpg" alt="Denoscription">
Lists:
Ordered list: <ol> and <li>.
Unordered list: <ul> and <li>.
Buttons: <button> for interactive buttons.
4. Attributes in HTML
Attributes provide additional information about an element. They are placed inside the opening tag.
Example:
Common Attributes:
href: Specifies the link destination (for <a>).
src: Specifies the image source (for <img>).
alt: Provides alternative text for an image.
id: Unique identifier for an element.
class: Assigns a class for styling.
5. Nesting and Hierarchy
HTML allows nesting of elements. Proper structure and hierarchy are important.
Example:
html
Here are some frequently used tags:
Headings: <h1> to <h6> for noscripts and subnoscripts.
<h1>Main Heading</h1>
<h2>Subheading</h2>
Paragraph: <p> for text blocks.
<p>This is a paragraph.</p>
Links: <a> for hyperlinks.
<a href="https://example.com">Visit Example</a>
Images: <img> for displaying pictures.
<img src="image.jpg" alt="Denoscription">
Lists:
Ordered list: <ol> and <li>.
<ol>
<li>First item</li>
<li>Second item</li>
</ol>
Unordered list: <ul> and <li>.
<ul>
<li>First item</li>
<li>Second item</li>
</ul>
Buttons: <button> for interactive buttons.
<button>Click Me!</button>
4. Attributes in HTML
Attributes provide additional information about an element. They are placed inside the opening tag.
Example:
<a href="https://example.com" target="_blank">Open in new tab</a>
Common Attributes:
href: Specifies the link destination (for <a>).
src: Specifies the image source (for <img>).
alt: Provides alternative text for an image.
id: Unique identifier for an element.
class: Assigns a class for styling.
5. Nesting and Hierarchy
HTML allows nesting of elements. Proper structure and hierarchy are important.
Example:
html
<div>
<h2>Title</h2>
<p>This is some text inside a div.</p>
</div>
Simple HTML Code
<!DOCTYPE html>
<html>
<head>
<noscript>My HTML Page</noscript>
</head>
<body>
<h1>Hello, World!</h1>
<p>This is my first page.</p>
</body>
</html>
Take this code as a sample
Next time we will modify it using CSS, so that it will look awesome.
<!DOCTYPE html>
<html>
<head>
<noscript>Simple HTML Page</noscript>
</head>
<body>
<h1>Welcome to My Simple Webpage</h1>
<p>This webpage is created using only HTML.</p>
<h2>About Me</h2>
<p>My name is Code Sphere Hub, and I love coding!</p>
<h2>My Hobbies</h2>
<ul>
<li>Web Development</li>
<li>Listening to Music</li>
<li>Exploring AI</li>
</ul>
<h2>Contact Me</h2>
<p>Email: <a href="mailto:example@example.com">example@example.com</a></p>
<p>Phone: +251-123-456-789</p>
<h2>My Favorite Image</h2>
<img src="https://pin.it/6dR3WF3Pe" alt="Placeholder Image">
<h2>Useful Links</h2>
<ol>
<li><a href="https://www.w3schools.com" target="_blank">W3Schools</a></li>
<li><a href="https://developer.mozilla.org" target="_blank">MDN Web Docs</a></li>
</ol>
<p>Thank you for visiting my webpage!</p>
</body>
</html>
Next time we will modify it using CSS, so that it will look awesome.
👍1
https://news.1rj.ru/str/TgAdsPlatformBot?start=_tgr_61kwf_8yOWU8
Telegram
Telegram Ads [Ads Platform]
🔹Channel: @AdzPlatform
Submit your ad in all channels with more than 1k members.
Third-party platform 📢
Submit your ad in all channels with more than 1k members.
Third-party platform 📢
🚀 New CSS Update: Logo, Features & More! 🎨✨
We've just rolled out an exciting CSS update with new scroll animations, grid forms, and improved styling! Here's what's new:
🔹 Enhanced Logo Styling – A sleek and modern look with refined effects.
🔹 Smooth Scroll Animations – Elements now appear dynamically as you scroll for a more engaging experience.
🔹 Responsive Grid Forms – A flexible, well-structured layout for better usability on all devices.
🔹 Improved UI Effects – Subtle hover effects, transitions, and refined color schemes.
Check it out and let us know what you think! 💬🔥 #CSSUpdate #WebDesign #Animations #UIUX
We've just rolled out an exciting CSS update with new scroll animations, grid forms, and improved styling! Here's what's new:
🔹 Enhanced Logo Styling – A sleek and modern look with refined effects.
🔹 Smooth Scroll Animations – Elements now appear dynamically as you scroll for a more engaging experience.
🔹 Responsive Grid Forms – A flexible, well-structured layout for better usability on all devices.
🔹 Improved UI Effects – Subtle hover effects, transitions, and refined color schemes.
Check it out and let us know what you think! 💬🔥 #CSSUpdate #WebDesign #Animations #UIUX
✅Best telegram bots
📍@voicetomp3_bot chat ላይ ቀድታችሁ የላካችሁለትን voice message ወደ mp3 file ቀይሮ የሚልክላችሁ bot ነው።
📍@BitgetOfficialBot bitgetን እዚሁ ቴሌግራም ላይ መጠቀም የሚያስችላችሁ official የbitget bot ነው።
📍@WeatherAppRobot በተመሳሳይ ከቴሌግራም ሳትወጡ የweather መረጀ የምታገኙበት የ ቴሌግራም bot ነው።
📍@PigeonDocumentBot ዶክመንቶቻችሁን save እና manage የምታደርጉበት የቴሌግራም bot ነው።
📍@xD0RMuleBot የተለያዩ tor*ent filles የምታወርዱበት bot ነው።
📍@shortener_tiny_url_bot ረጃጅም ሊንኮችን በቀላሉ ወደዚህ bot በመላክ ብቻ ማሳጠር ትችላላችሁ።
@Tech_GPT_Bot telegram ላይ ካሉ ጥሩ Ai chat bots መካከል አንዱ ነው።
©@code_sphere_hub1
══════❁✿❁═══════
♦️.@code_sphere_hub1
♦️. @code_sphere_hub1
♦️. @code_sphere_hub1
📍@voicetomp3_bot chat ላይ ቀድታችሁ የላካችሁለትን voice message ወደ mp3 file ቀይሮ የሚልክላችሁ bot ነው።
📍@BitgetOfficialBot bitgetን እዚሁ ቴሌግራም ላይ መጠቀም የሚያስችላችሁ official የbitget bot ነው።
📍@WeatherAppRobot በተመሳሳይ ከቴሌግራም ሳትወጡ የweather መረጀ የምታገኙበት የ ቴሌግራም bot ነው።
📍@PigeonDocumentBot ዶክመንቶቻችሁን save እና manage የምታደርጉበት የቴሌግራም bot ነው።
📍@xD0RMuleBot የተለያዩ tor*ent filles የምታወርዱበት bot ነው።
📍@shortener_tiny_url_bot ረጃጅም ሊንኮችን በቀላሉ ወደዚህ bot በመላክ ብቻ ማሳጠር ትችላላችሁ።
@Tech_GPT_Bot telegram ላይ ካሉ ጥሩ Ai chat bots መካከል አንዱ ነው።
©@code_sphere_hub1
══════❁✿❁═══════
♦️.@code_sphere_hub1
♦️. @code_sphere_hub1
♦️. @code_sphere_hub1
👍1