Write the basic structure of a HTML program.
Answers
Answer:
Basic Structure of every HTML program:
Explanation:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<p> This is a paragraph </p>
</body>
</html>
Answer:
Basic structure of a HTML program is the most important container ( html element). The first segment is called the head section ( head element). The main body of the text ( body element).
Explanation:
The head (HTML head tag) and the body (HTML body element) are the two main sections of an HTML document (HTML body tag). On top of that, we declare a Document type to get the fundamental document structure and HTML version. The following diagram depicts the structure of an HTML document.
Most tags require an opening tag> and a closing /tag>. An HTML document consists of a line with HTML version information, a declarative header section, and the body, which contains the page's actual content.
#SPJ3