Some basic tags and elements to begin with writing html document:-
Basic Tags

1. The most important tag of an html document is <html> whose closing tag is </html>.
Everything we write in the html document is written in between <html> and </html>.
All the remaining tags are inserted between html tags and these form an html document
2. Second most important tag is the <title> tag. This tag is also a paired element and thus have its closing tag </title>. This tag is responsible in providing title to the webpage and this title is shown in the title bar.


3. Next comes <head> tag. This tag was compulsory to write but it can now be omitted because knowing or unknowingly we are using html5 now and this tag is not compulsory to use. This tag can contain the <title> tag and some more things like heading of the webpage.
4. Next is the <body> tag, which is also a container tag. This tag can also contain the heading of the webpage, as well as it contains the content of a wepage ,i.e., whatever we want to show on our webpage is written or inserted between <body> and </body>.
This tag uses two attributes, and those are 'background' and 'bgcolor'. Background attribute is responsible for inserting any image if wanted to be the background of the webpage and bgcolor is used to insert any background colour in case we want any background colour instead of image or instead of an empty background.




Inserting bgcolor


Inserting background image
These were the most basic and compulsory tags required in writing an html document (except <head> tag).
Note:- background attribute used in body tag requires the URL of image saved inside computer, with the extension of image. URL is the address of the place or folder in which the required file is saved.