Comments & iframe in HTML
Comments in HTML:
In any technology comments are the most essential part of segmentation. With the help of comments, You can easily understand the code and it’s interlinking.
Whereas In HTML comments are not displayed in the output browsers, only tags and script s are reflecting. Comments are useful for synchronizing the doc easily.
The syntax for Comments in HTML:
<! —-You can write comments here—>
In the starting of comments, there is! Symbol, but at the end of the comments it is not there.
Comments are extremely important because it notifies you about every important stuff that you are initializing with.
Example1:
<!-- This is a comment in html. This will not display on the page -->
<p>How do you like the comments in html.</p>
<!-- This is also a comment like above-->
How do you like the comments in html.
Example2:
<!------This is example regarding iframe------>
<!DOCTYPE html>
<html><!------Html starts ------>
<body>
<h2>HTML Iframes</h2>
<p>You can also use the CSS height and width properties to specify the size of the iframe:</p>
<iframe src="demo_iframe.htm" style="height:200px;width:300px" title="Iframe Example"></iframe>
</body>
</html> <!------Html close ------>
HTML Iframes
You can also use the CSS height and width properties to specify the size of the iframe:
