My First Day Learning HTML
HTML is the first step in web development. It stands for "HyperText Markup Language" and is used to create the structure of a webpage. Every website on the internet starts with HTML, while CSS is used to improve the design and JavaScript is used to add interactivity.
Every HTML document follows a basic structure. It starts with <!DOCTYPE html>, followed by the <html>, <head>, and <body> tags. These tags help the browser understand how to display the webpage correctly.
The <!DOCTYPE html> declaration tells the browser that the document is written in HTML5.
The <html> tag is the root element of the webpage. All the content of the webpage is written inside this tag.
The <head> tag contains information about the webpage, such as the page title, meta information, CSS files, and JavaScript files. The content inside the <head> tag is not displayed on the webpage, but it helps the browser process the page correctly.
The <body> tag contains everything that appears on the webpage. Elements such as headings, paragraphs, images, buttons, links, and forms are placed inside the <body> tag. Whatever is written inside this section is displayed to the user in the browser.
Learning the basic structure of HTML is an important first step because every webpage is built using these fundamental tags. Once these basics are clear, it becomes much easier to create and understand web pages.
Top comments (1)
The website works without this basic structure. The <html>, <head> and <body> tags are not necessary, the page will work without them.