Skip to content

What HTML code looks like

What HTML code looks like

HTML code is made up of various elements that are used to create the structure and content of a web page. Here is an example of what a basic HTML code would look like:

<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>

<header>
<h1>Heading 1</h1>
<nav>
<ul>
<li><a href=”#”>Link 1</a></li>
<li><a href=”#”>Link 2</a></li>
<li><a href=”#”>Link 3</a></li>
</ul>
</nav>
</header>

<main>
<article>
<h2>Article Title</h2>
<p>Article content goes here.</p>
<p>Another paragraph of article content.</p>
</article>
</main>

<footer>
<p>Copyright information goes here.</p>
</footer>

</body>
</html>

In this example, we have the basic structure of an HTML document, which includes:

The <!DOCTYPE html> declaration, specifies that this is an HTML5 document.
The <html> element, which contains all of the other elements on the page.
The <head> element, which contains meta-information about the page, such as the title.
The <body> element, which contains the visible content of the page.
The <header> element contains the top section of the page, including the page title and navigation links.
The <main> element, which contains the main content of the page.
The <footer> element, which contains the bottom section of the page, includes copyright information.

This is just a basic example, and HTML code can be much more complex, depending on the requirements of the web page.

ایچ ٹی ایم ایل کوڈ کیسا نظر آتا ہے

ایچ ٹی ایم ایل کوڈ مختلف عناصر سے بنا ہوتا ہے جو ویب صفحہ کی ساخت اور مواد بنانے کے لیے استعمال ہوتے ہیں۔اوپر ایک مثال ہے کہ ایک بنیادی ایچ ٹی ایم ایل کوڈ کیسا نظر آئے گا

اوپر دی گئی مثال میں، ہمارے پاس ایچ ٹی ایم ایل دستاویز کا بنیادی ڈھانچہ ہے، جس میں شامل ہیں

نمبر1: ڈاک ٹائپ ایچ ٹی ایم ایل اعلامیہ، جو بتاتا ہے کہ یہ ایک ایچ ٹی ایم ایل5 دستاویز ہے۔
نمبر2: ایچ ٹی ایم ایل ایلیمینٹ، جس میں صفحہ پر موجود دیگر تمام عناصر شامل ہیں۔
نمبر3: ہیڈ ایلیمینٹ، جس میں صفحہ کے بارے میں میٹا معلومات ہوتی ہے، جیسے عنوان۔
نمبر4: باڈی ایلیمینٹ، جس میں صفحہ کا مرئی مواد ہوتا ہے۔
نمبر5: ہیڈر کا ایلیمینٹ، جس میں صفحہ کا سب سے اوپر والا حصہ ہوتا ہے، بشمول صفحہ کا عنوان اور نیویگیشن لنکس۔
نمبر6: مرکزی ایلیمینٹ، جس میں صفحہ کا مرکزی مواد ہوتا ہے۔
نمبر7: فوٹر ایلیمینٹ، جس میں صفحہ کے نیچے والے حصے میں کاپی رائٹ کی معلومات شامل ہیں۔

یہ صرف ایک بنیادی مثال ہے، اور ایچ ٹی ایم ایل کوڈ زیادہ پیچیدہ ہو سکتا ہے، ویب صفحہ کی ضروریات پر منحصر ہے۔

Leave a Reply

Your email address will not be published. Required fields are marked *