From the course: Build Three Real-World Python Applications

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Understanding HTML code

Understanding HTML code

- [Narrator] Let's take a moment to understand the general structure of HTML code. You'll notice that HTML code has a lot of similarities in its structure compared to Python. For example, there are indents for code to function within other code, functions we can create, and different variables and classes we can use. One major difference between the HTML code and Python code is tags. HTML code is heavily dependent on tags, where every piece of code needs to have an opening tag and a closing tag. These tags are necessary in order for the web browser to understand how the webpage should be structured, where images need to be located, and what should be a clickable link for web users. For example, the HTML tag is needed for every webpage since this signals to the web browser that this is an HTML document. We can see this if we close the body tag. Every webpage has these HTML tags at the very top and very bottom of the HTML…

Contents