html basics
All HTML documents must start with a document type declaration: <!DOCTYPE html>.
The HTML document itself begins with <html> and ends with </html>.
The visible part of the HTML document is between <body> and </body>.
code:
<!DOCTYPE html>
<html><head>
<title></title>
</head>
<body>
</body>
</html>
The <!DOCTYPE> Declaration:
The <!DOCTYPE> declaration represents the document type, and helps browsers to display web pages correctly.
It must only appear once, at the top of the page .
The <!DOCTYPE> declaration is not case sensitive.
The <!DOCTYPE> declaration for HTML5 is:
<!DOCTYPE html>
HTML Paragraphs:
HTML paragraphs are defined with the <p> tag:
Example:
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>HTML Links:
HTML links are defined with the <a> tag:
Example:
<a href="https://www.budawadaschool.epizy.com">This is a link</a>
HTML Images:
HTML images are defined with the <img> tag.
The source file (src), alternative text (alt), width, and height are provided as attributes:
Example:
<img src="ajay.jpg" width="104" height="142">
Comments
Post a Comment