× Daha fazlası İçin Aşağı Kaydır
☰ Kategoriler

What is HTML?

HTML (Hypertext Markup Language) is the standard markup language used to structure and present content on the World Wide Web. It is a vital component of web development, allowing web browsers to interpret and display web pages correctly.

The Structure of HTML

HTML documents are made up of a series of elements that define the structure and content of a web page. These elements are marked up using tags, which consist of angle brackets and the tag name. Tags are typically used in pairs, with an opening tag and a closing tag that surround the content.

For example, the following code represents a basic HTML document structure:

“`



My Web Page

Welcome to My Web Page

This is a paragraph of text.



“`

Let’s break down the structure:

– ``: This declaration specifies the version of HTML being used, which is HTML5 in this case.
– ``: This tag represents the root element of the HTML document.
– ``: This section contains meta-information about the web page, such as the title, character encoding, and linked stylesheets or scripts.
– ``: This tag defines the title of the web page, which appears in the browser’s title bar or tab.<br /> – `<body data-rsssl=1>`: This is the main content area of the web page.<br /> – `</p> <h1>`: This is a heading element, used to define the main heading of the page.<br /> – `</p> <p>`: This is a paragraph element, used to define blocks of text.</p> <h2>HTML Tags and Elements</h2> <p>HTML provides a wide range of tags and elements to structure and format content. Here are some commonly used ones:</p> <p>– `</p> <h1>` to `</p> <h6>`: These heading elements define different levels of headings, with `</p> <h1>` being the highest level and `</p> <h6>` the lowest.<br /> – `</p> <p>`: This element represents a paragraph of text.<br /> – `<a>`: This tag creates a hyperlink, allowing users to navigate to another web page or a specific location within the same page.<br /> – `<img>`: This element is used to insert images into a web page.<br /> – `</p> <ul>` and `</p> <ol>`: These tags define unordered and ordered lists, respectively.<br /> – `</p> <li>`: This element represents an item in a list.<br /> – `</p> <table>`: This tag is used to create tabular data.<br /> – `</p> <form>`: This element is used to create interactive forms for user input.</p> <p>These are just a few examples of the many HTML tags and elements available. Each tag has its own purpose and attributes, which can be used to customize the appearance and behavior of the content.</p> <p>In the next part, we will explore the different attributes and styles that can be applied to HTML elements, as well as the role of CSS in enhancing the visual presentation of web pages.</p> <h1>HTML Attributes, Styles, and CSS</h1> <h2><span class="ez-toc-section" id="HTML_Attributes"></span>HTML Attributes<span class="ez-toc-section-end"></span></h2> <p>HTML attributes provide additional information about elements and are used to modify their behavior or appearance. Attributes are placed within the opening tag of an element and consist of a name-value pair. Some common attributes include:</p> <p>– `class`: This attribute is used to specify one or more class names for an element. Classes are used to apply CSS styles or identify elements for JavaScript manipulation.<br /> – `id`: This attribute provides a unique identifier for an element. It is often used to target specific elements with JavaScript or CSS.<br /> – `src`: This attribute is used with the `<img>` tag to specify the source (URL) of an image.<br /> – `href`: This attribute is used with the `<a>` tag to specify the destination (URL) of a hyperlink.<br /> – `style`: This attribute allows inline CSS styling to be applied directly to an element.</p> <p>For example, consider the following `<a>` tag with the `href` attribute:</p> <p>“`html<br /> <a href="https://example.com">Visit Example</a><br /> “`</p> <p>In this case, clicking the link will navigate the user to the specified URL.</p> <h2><span class="ez-toc-section" id="Styles_and_CSS"></span>Styles and CSS<span class="ez-toc-section-end"></span></h2> <p>While HTML allows for some basic styling through attributes like `style`, more advanced and flexible styling is achieved using CSS (Cascading Style Sheets). CSS provides the ability to control the appearance of HTML elements, such as their colors, sizes, fonts, and layouts.</p> <p>CSS can be applied to HTML elements in three ways:</p> <p>1. Inline Styles: Inline styles are applied directly to individual HTML tags using the `style` attribute. For example:</p> <p>“`html</p> <p style="color: red;">This is a red paragraph.</p> <p>“`</p> <p>2. Internal Stylesheets: Internal stylesheets are defined within the `</p> <style>` tags in the `<head><script>var _wpmnl=!0;</script>` section of an HTML document. For example:</p> <p>```html <head><script>var _wpmnl=!0;</script></p> <style> p { color: blue; } </style> <p></head><br /> <body data-rsssl=1></p> <p>This is a blue paragraph.</p> <p></body><br /> ```</p> <p>3. External Stylesheets: External stylesheets are created as separate CSS files and linked to the HTML document using the `<link>` tag. For example:</p> <p>```html<br /> <head><script>var _wpmnl=!0;</script> <link rel="stylesheet" href="styles.css"> </head><br /> <body data-rsssl=1></p> <p>This paragraph will be styled according to the rules defined in "styles.css".</p> <p></body><br /> ```</p> <p>External stylesheets offer the advantage of separating the style information from the HTML document, making it easier to maintain and update.</p> <h2><span class="ez-toc-section" id="Conclusion"></span>Conclusion<span class="ez-toc-section-end"></span></h2> <p>Understanding HTML attributes, styles, and CSS is essential for creating well-structured and visually appealing web pages. HTML provides a set of tags and elements to define the structure and content, while attributes modify the behavior and appearance of elements. CSS, on the other hand, allows for more advanced and flexible styling by separating the presentation from the structure.</p> <p>By mastering these concepts, web developers can create engaging and user-friendly websites that effectively convey information and enhance the overall user experience.</p> <div class="post-tags"> <span class="tag-links">Etiketlendi <a href="https://www.tekno50.com/tag/is-not-standard-html-i-have-used-the-and-tags-instead/" rel="tag">") is not standard HTML. I have used the "" and "" tags instead.</a><a href="https://www.tekno50.com/tag/css/" rel="tag">CSS</a><a href="https://www.tekno50.com/tag/dinamik-web-sayfalari/" rel="tag">dinamik web sayfaları</a><a href="https://www.tekno50.com/tag/harici-stil/" rel="tag">harici stil</a><a href="https://www.tekno50.com/tag/html-ogeleri/" rel="tag">HTML öğeleri</a><a href="https://www.tekno50.com/tag/html-oznitelikleri/" rel="tag">HTML öznitelikleri</a><a href="https://www.tekno50.com/tag/isaretleme-dili/" rel="tag">işaretleme dili</a><a href="https://www.tekno50.com/tag/isletme-web-tasarimi/" rel="tag">işletme web tasarımı</a><a href="https://www.tekno50.com/tag/web-gelistirme/" rel="tag">web geliştirme</a></span> </div> </div> <section id="comments" class="comments-area"> <div id="respond" class="comment-respond"> <h2 id="reply-title" class="comment-reply-title">Bir yanıt yazın <small><a rel="nofollow" id="cancel-comment-reply-link" href="/what-is-this-cevabi-nedir/#respond" style="display:none;">Yanıtı iptal et</a></small></h2><form action="https://www.tekno50.com/wp-comments-post.php" method="post" id="commentform" class="comment-form" novalidate><p class="comment-notes"><span id="email-notes">E-posta adresiniz yayınlanmayacak.</span> <span class="required-field-message">Gerekli alanlar <span class="required">*</span> ile işaretlenmişlerdir</span></p><p class="comment-form-comment"><label for="comment">Yorum <span class="required">*</span></label> <textarea id="comment" name="comment" cols="45" rows="8" maxlength="65525" required></textarea></p><p class="comment-form-author"><label for="author">Ad <span class="required">*</span></label> <input id="author" name="author" type="text" value="" size="30" maxlength="245" autocomplete="name" required /></p> <p class="comment-form-email"><label for="email">E-posta <span class="required">*</span></label> <input id="email" name="email" type="email" value="" size="30" maxlength="100" aria-describedby="email-notes" autocomplete="email" required /></p> <p class="comment-form-url"><label for="url">İnternet sitesi</label> <input id="url" name="url" type="url" value="" size="30" maxlength="200" autocomplete="url" /></p> <p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes" /> <label for="wp-comment-cookies-consent">Daha sonraki yorumlarımda kullanılması için adım, e-posta adresim ve site adresim bu tarayıcıya kaydedilsin.</label></p> <p class="form-submit"><input name="submit" type="submit" id="submit" class="submit" value="Yorum gönder" /> <input type='hidden' name='comment_post_ID' value='37107' id='comment_post_ID' /> <input type='hidden' name='comment_parent' id='comment_parent' value='0' /> </p><p style="display: none;"><input type="hidden" id="akismet_comment_nonce" name="akismet_comment_nonce" value="bedee02567" /></p><p style="display: none !important;"><label>Δ<textarea name="ak_hp_textarea" cols="45" rows="8" maxlength="100"></textarea></label><input type="hidden" id="ak_js_1" name="ak_js" value="235"/><script data-cfasync="false" data-wpmeteor-after="REORDER" type="javascript/blocked">document.getElementById( "ak_js_1" ).setAttribute( "value", ( new Date() ).getTime() );</script></p></form> </div><!-- #respond --> </section><!-- .comments-area --> </main> <footer id="site-footer" class="site-footer"> <ul> <li><a href="https://www.tekno50.com/kisisel-veriler/">Kişisel Veriler</a></li> <li><a href="https://www.tekno50.com/gizlilik-politikasi/">Gizlilik Politikası</a></li> <li><a href="https://www.tekno50.com/kullanici-sozlesmesi/">Kullanıcı Sözleşmesi</a></li> <li>mail: admin@tekno50.com</li> </div> </footer> <script data-cfasync="false" data-wpmeteor-after="REORDER" type="javascript/blocked" id="ap-frontend-js-js-extra"> var ap_form_required_message = ["This field is required","accesspress-anonymous-post"]; var ap_captcha_error_message = ["Sum is not correct.","accesspress-anonymous-post"]; </script> <script type="javascript/blocked" data-cfasync="false" data-wpmeteor-after="REORDER" data-src="https://www.tekno50.com/wp-content/plugins/accesspress-anonymous-post/js/frontend.js?ver=2.8.0" id="ap-frontend-js-js"></script> <script data-cfasync="false" data-wpmeteor-after="REORDER" type="javascript/blocked" id="ez-toc-scroll-scriptjs-js-extra"> var eztoc_smooth_local = {"scroll_offset":"30"}; </script> <script type="javascript/blocked" data-cfasync="false" data-wpmeteor-after="REORDER" data-src="https://www.tekno50.com/wp-content/plugins/easy-table-of-contents/assets/js/smooth_scroll.min.js?ver=2.0.59" id="ez-toc-scroll-scriptjs-js"></script> <script type="javascript/blocked" data-cfasync="false" data-wpmeteor-after="REORDER" data-src="https://www.tekno50.com/wp-content/plugins/easy-table-of-contents/vendor/js-cookie/js.cookie.min.js?ver=2.2.1" id="ez-toc-js-cookie-js"></script> <script type="javascript/blocked" data-cfasync="false" data-wpmeteor-after="REORDER" data-src="https://www.tekno50.com/wp-content/plugins/easy-table-of-contents/vendor/sticky-kit/jquery.sticky-kit.min.js?ver=1.9.2" id="ez-toc-jquery-sticky-kit-js"></script> <script data-cfasync="false" data-wpmeteor-after="REORDER" type="javascript/blocked" id="ez-toc-js-js-extra"> var ezTOC = {"smooth_scroll":"1","visibility_hide_by_default":"","scroll_offset":"30","fallbackIcon":"<span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span>"}; </script> <script type="javascript/blocked" data-cfasync="false" data-wpmeteor-after="REORDER" data-src="https://www.tekno50.com/wp-content/plugins/easy-table-of-contents/assets/js/front.min.js?ver=2.0.59-1701739998" id="ez-toc-js-js"></script> <script type="javascript/blocked" defer data-cfasync="false" data-wpmeteor-after="REORDER" data-src="https://stats.wp.com/e-202429.js" id="jetpack-stats-js"></script> <script data-cfasync="false" data-wpmeteor-after="REORDER" type="javascript/blocked" id="jetpack-stats-js-after"> _stq = window._stq || []; _stq.push([ "view", {v:'ext',blog:'170823383',post:'37107',tz:'3',srv:'www.tekno50.com',j:'1:12.8.1'} ]); _stq.push([ "clickTrackerInit", "170823383", "37107" ]); </script> <script type="javascript/blocked" data-cfasync="false" data-wpmeteor-after="REORDER" data-src="https://www.tekno50.com/wp-includes/js/comment-reply.min.js?ver=6.4.5" id="comment-reply-js" async data-wp-strategy="async"></script> <script type="javascript/blocked" defer data-cfasync="false" data-wpmeteor-after="REORDER" data-src="https://www.tekno50.com/wp-content/plugins/akismet/_inc/akismet-frontend.js?ver=1698907950" id="akismet-frontend-js"></script> </body> </html> <!-- Optimized with Image Optimizer https://pagespeedoptimizer.io --> <!-- This website is like a Rocket, isn't it? Performance optimized by WP Rocket. Learn more: https://wp-rocket.me -->