Without the html tags mentioned in this lesson, in what ways might the browser misinterpret our HTML code?


#1

Question

Without the html tags mentioned in this lesson, in what ways might the browser misinterpret our HTML code?

Answer

The <html> tag is actually an example of an optional tag which means that there are situations in which it can be omitted. Even though omitted optional tags will be inserted into the document by the browser and may not always be required, most developers would say that it is best practice to include these tags. Including optional tags enhances readability, improves cross-browser support, and takes some burden off of the browser.

In short, while the <html> tag can be omitted I do not believe it should be omitted.


FAQ: Learn HTML Elements - Common HTML Elements - The `<html>` tag
#2

with tags , the page looks good, readable and easy for the browser to browse