Community Forum 3

 

Question

What is a web browser?

Answer

A browser is a piece of software which allows us to display content on the web (among other things). The most popular web browsers today include Chrome, Firefox, Safari, and Edge. In this lesson, the HTML that you write will be displayed in the emulated browser in the right of your workspace.


A few more popular browsers are Brave and Opera. Brave has been gaining popularity recently because of its privacy-focused features.


Continuing the discussion from What is a web browser?:

Web browsers are a kind of software that can be used to view and download the content of webpages for more info you cam visit the BBC bitesize page: http://www.bbc.co.uk/schools/gcsebitesize/dida/graphics/screenrev2.shtml 575

also, I have a question. Is a browser created using HTML or is it created using another language?


I was also curious about which programming language is used to create browsers. Its more complicated than you’d think.

https://www.quora.com/What-programming-languages-are-web-browsers-like-Google-Chrome-Opera-and-Mozilla-Firefox-written-in



Q)

Why does content outside the body still display?



<! DOCTYPE html>

    <html>
        <head>
               For title and links to scripts etc. 
        </head>

        <body>
                For content of the site e.g divs
        </body>
    </html>

If your code is laid out in any other way a browser isn’t guaranteed to display it correctly.

Browsers create DOMs (document object models) from your code, and if your code has tags outside of body or head this can mess up the model and create some weirdly rendered results.

However browsers assume users might do things a bit wrong, so if you have tags outside the body tag they might assume you should have put it in the body tags and process it as if you had done so. But the important thing is every browser does this differently, so if you’re format isn’t correct it could look different on every single browser. To guarantee your HTML is processed the same on every browser you should put tags you want displayed inside the body tag.


Comments