logo

modern front end tech

HTML Structure

in this chapter you are going to learn :-

html file structure

a html file looks like this :-

                
                    <!DOCTYPE html>
                    <html lang="en">
                      <head>
                      </head>
                      <body>
                      <div>
                      </div>
                      </body>
                    </html>
                
            

html element

html element is the root element of an html page. it contains all other html elements. it is represented by <html> tag.
example :-

                
                    <html lang="en">
                    </html>
                
            

head element

head element is the container for all the head elements. it is represented by <head> tag.
example :-

                
                      <head>
                      </head>
                
            

body element

body element is the container for all the visible elements. it is represented by <body> tag.
example :-

                
                      <body>
                      </body>
                
            

div element

div element is a container element that is used to group other elements. it is represented by <div> tag.
example :-

                
                        <div>
                        </div>
                
            

our youtube channel