课程: Web Programming Foundations

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Content and structure

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…

内容