HTML Elements |
|
|
HTML elements are constructed with a start tag marking the beginning of an element, any number of attributes, some amount of content and an end tag
<u>Text is Under Line</u>
<u> tag is used to define an HTML element that should be displayed as under line text.
<b>Another HTML element</b>
<html>
<body>
<p>This is my first html page.</p>
</body>
</html>
The purpose of the <html> tag is to define the HTML element that contains the body of the HTML document.
HTML is not a case sensitive but the World Wide Web Consortium (W3C) recommends lowercase tags in their HTML 4 recommendation, and XHTML (the next generation HTML) demands lowercase tags.
Comments in HTML
Comments are ignored in HTML document by web browser. We use comment tag to insert a comment in HTML document. Comments are used to label our source code segments.
<!--This is an HTML Comment-->
|
|
|