Here is the syntax of Basic HTML. You can say this part is most important part of all programming languages.
<!DOCTYPE html>: This declaration defines the document type and version of HTML that is being used. It ensures the browser renders the page correctly.
<html lang=”en”>: It’s the root element of the HTML document. The lang attribute specifies the language of the document (in this case English).
<head>: This is the head section, which conveys meta-information about the document. It will include the character set, page, and links to external resources like as stylesheets or scripts.
<meta charset=”UTF-8″>: It defines the character encoding of the document. It will makes sure that the text will display correctly. meta name=”viewport” content=”width=device-width, initial-scale=1.0″>: It is the tag that makes the web page responsive, controlling layout on different screen sizes and various devices <title>: Your Title of the Page This will set the title of the webpage and appear in the title bar or browser tab. <body>: Here goes the real content of your web page – text, images, links, etc. These will be the actual main contents of your webpage, which could include headings, paragraphs, images, etc. This is the basic structure for any HTML web page. Additional elements and attributes may be added later to enhance your page’s functionality and design. You need to add this HTML Code into any code editor like Visual Studio, Notepad ++, Sublime etc. First of all you need to create an .html file and you need to assign it any name like index.html or code.html etc. when you hit the browser and run the code you can see this view in attached image.
