Basic structure of an HTML stands for HyperText Markup Language and is the basic structural element that is used to make a webpage. HTML is a markup language, which income that it is used to “mark up” the content inside a document, in this situation a webpage, with physical and semantic info that tells a browser how to show a page. When an HTML text is loaded by a web browser, the browser uses the HTML tags that have noticeable up the article to render the page’s content.
Elements and Tags
HTML elements and tags work together to mark up content. HTML elements indicate the purpose of a tag and tags indicate the beginning and the end of an element.
<p>This is a paragraph.</p>
Basic structure of an HTML Document
A basic HTML page is a document that naturally has the file extension .html, though HTML regularly seems in the content of additional file types as healthy. All HTML documents follow the similar basic construction so that the browser that reduces the file knows what to do. The basic structure on which all webpages are constructed looks like this:
<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>Homepage Headline</h1> <p>This is a paragraph.</p> </body> </html>
The primary line of code, <!DOCTYPE html>, is named a doctype statement and tells the browser which form of HTML the page is printed in. In this case, we’re by means of the doctype that corresponds to HTML5, the most up-to-date version of the HTML language. There are a amount of different doctype declarations that agree to various versions of HTML.