Learn Html with Kbdk: Two sections of Html
Two sections of Html
Element - A complete tag, having an opening <tag> and a closing </tag>.
An element consists of three basic parts: an opening tag, the element's content, and finally, a closing tag.
1. <p> - opening paragraph tag2. Element Content - paragraph words
3. </p> - closing tag
Every (web)page requires four critical elements: the html, head, title, and body elements.
<html> begins and ends each and every web page. Its sole purpose is to encapsulate all the HTML code and describe the HTML document to the web browser. Remember to close your HTML documents with the corresponding </html> tag at the bottom of the document.
The <head> element is "next" as they say. As long as it falls somewhere between your <html> tag and your web page content (<body>), you're golden. The head functions "behind the scenes." Tags placed within the head element are not directly displayed by web browsers.
Place the <title> tag within the <head> element to title your page. The words you write between the
opening and closing <title></title> tags will be displayed at the top of a viewer's browser.
<html>
<head>
<title>My Web Page !</title>
</head>
</html>
The <body> element is where all content is placed. (Paragraphs, pictures, tables, etc).
<body>Body Tag (acts as a content shell)
<p>Paragraph Tag</p>
<h2>Heading Tag</h2>
<b>Bold Tag</b>
<i>Italic Tag</i>
</body>