<html> | - HTML markup opening - indicates that the information that follows is written in HTML |
<head> | - the opening HEAD tag - page header starts here |
<title>Page Title</title> | - TITLE tag - here is write a few words about the content of the page - those words will appear in the browser's title bar, if the page is added to a favorites list, they appear as the name of the page. |
<meta name = "keywords" content = "... a list of keywords ..."> <meta name = "description" content ="... suggestive phrase ..."> ... other instructions: JavaScript, CSS, etc. ... |
- metatags - help search engines to index the page. - the value of attributes, such as "keywords" should be enclosed with double quotes ("), the keywords from content attribute are separated by a comma, eg: content="courses, free lessons, html, tutorials". |
</head> | - closing HEAD tag - page header ends here, what is in the header does not appear in the browser window. |
<body> | - opening BODY tag - it begins the body of the document, here is added the content that appears in Web page |
... Text Content, HTML tags, images ... | - everything that is addes here will be displayed in the browser window |
</body> | - closing BODY tag - it indicates the end of the document body |
</html> | - closing HTML tag |
Wrong | Result | Good | Result |
---|---|---|---|
<_h2>text</h2> | < h2>text | <h2> text </h2> |
text |
<_h4 _ style=color:red> text </_h4_> | < h4 style=color:red> text </ h4 > | <h4 style="color:red"> text </h4> |
text |
<input type="text" name="a_name" value="val" />
h3 { font-variant: small-caps; }
var msg = "Visit CoursesWeb.net"; alert(msg);
$ip = $_SERVER["REMOTE_ADDR"]; echo $ip;