From the course: Web Programming Foundations

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Content and structure

Content and structure

From the course: Web Programming Foundations

Start my 1-month free trial

Content and structure

- [Instructor] Let's assume for a moment all web documents start with meaningful content written for humans. To carry that meaning to other humans through the web, we need to mark up these documents so the browser understands the structure of that content. HTML is a declarative, semantic, markup language, meaning we can use it to communicate meaning to whatever client application opens the document. Let's look at an example. In a standard web document, we'll typically find a header, a main section with an article, possibly some side-bars, and a footer. Each of these main blocks have their own semantic HTML elements, and you can see them here. We have a header, then a main section, within the main section an article, and finally a footer. By adding a beginning element tag, like header, before the content of a section and a corresponding end element tag, like end header, at the end, we tell the browser, "consider this section "of content and everything that appears inside it, "the…

Contents