A Basic HTML Page
<!doctype html> specifies this is an html 5 doc
<html> root of an html page
<head> content page meta data
<tittle>roshay</tittle> contains tittle
</head>
<body> the main body of the page
<h>this is a heading</h> heading tag
<p>this is a paragraph</p> paragraph tag
</body> closing body tag
</html> closing html
IMP Note
- Head & body tags are children of HTML Tags
- HTML is the parent of head & body tag
- Most of the HTML elements have opening and closing tag with content in between opeing and closing tag
- Some HTML Tags have no content. These are called empty elements eg<br>, <hr>
- We can either use htm or html extension
- You can use "inspect element" or "view page source" option from broweser to look into a website html code.
HTML elements = start tag + content + end tag
Comments in HTML
Comments in HTML are used to mark text which should nto be procced, they can help document to source code.
<!--HTML Comment-->
Case Senssitivity
HTML is a case insensitive language. <H1> and <h1> tags are same
Comments in HTML
Comments in HTML are used to mark text which should nto be procced, they can help document to source code.
<!--HTML Comment-->
Case Senssitivity
HTML is a case insensitive language. <H1> and <h1> tags are same
Comments
Post a Comment