HTML <title> Tag
The <title> tag defines the title of an HTML document.It appears in the browser tab, search engine results, and bookmarks, helping users and search engines understand the page content. The <title> tag is placed inside the <head> section and is required in every HTML document. Syntax Example Output Browser Output Displays “Welcome to My Website” […]
HTML <head> Tag
The <head> tag contains metadata and information about the document that is not directly displayed on the web page.It usually includes the page title, links to CSS stylesheets, JavaScript files, meta descriptions, and other resources used by browsers and search engines. Everything inside the <head> helps define how the page behaves, not how it looks. […]
HTML <html> Tag
The <html> tag represents the root element of an HTML document.All other HTML elements — such as <head>, <body>, <div>, <p>, etc. — must be nested inside the <html> element. It defines the start and end of an HTML document and can include a lang attribute to specify the language of the content. Syntax Example […]
HTML <!DOCTYPE> Tag
The <!DOCTYPE> declaration defines the document type and version of HTML that the page is written in.It helps browsers render the page correctly according to HTML standards. In modern web development, the <!DOCTYPE html> declaration tells the browser that the document is written in HTML5 — the latest standard of HTML. Syntax Example Output Browser […]