Learn HTML 2: How to Understand the HTML Structure
#html #htmltutorial
In this HTML lesson, we will go over how the structure of an HTML document is from a visual standpoint. We will be using exildraw to demonstrate the flow of a HTML document.
Notes:
The Meta tag in an HTML document is used as part of Search Engine Optimization (SEO). Google, or another search engine, will use this to give you search results based on these keywords. There are different types of meta tags for HTML, but the common one will be for keywords. We will go over this topic later down in the series
CSS: You can make a new CSS file in its own folder in addition to using the style tag in the head tag section. You will however be using an anchor link that links to a style sheet in the head tag to link the files together. I would do this if you know how to link pages and want to work with 2 files. The style tag in the html document and linking it with the anchor tag will work the same way.
Javascript: Most of the time, you want to put Javascript as part of the body tag, however, there are some cases to put it in the head (other than linking to a JS file in another folder). Javascript and PHP should be run later in the document