The document provides an overview of HTML, including its definition, structure, and key components such as elements, attributes, and metadata. It explains the anatomy of an HTML document, the difference between block and inline elements, and how to properly nest elements. Additionally, it covers the use of comments in HTML source code.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
2 views15 pages
Unit 1,2 - HTML Overview & Elements
The document provides an overview of HTML, including its definition, structure, and key components such as elements, attributes, and metadata. It explains the anatomy of an HTML document, the difference between block and inline elements, and how to properly nest elements. Additionally, it covers the use of comments in HTML source code.
Overview 1. What is HTML 2. Anatomy of HTML document 3. Head & Metadata 4. Anatomy of HTML element 5. Element attribute 6. Nesting Element 7. Block & Inline 8. HTML Comments
3. Head & metadata Ø Head is a container for all the stuff you want to include on the HTML page that isn't the content you are showing to your page's viewers § Meta § Link § Title § Style § Script
3. Head & metadata Ø Metadata is data about data. The meta tag (<meta>) is used in an HTML document to provide high level metadata about the web page, such as: § A page description and the keywords that describe the subject of the page. § Page authorship information. § Instructions for specific browser actions. § Details about the page title, description, and author to be used when the page is posted on social media or shown in SERPs.
6. Nesting elements Ø Nesting elements § HTML elements can be nested (elements can contain elements). § All HTML documents consist of nested HTML elements
v Note: Make sure that your elements are properly nested
7. Block & Inline Ø Block elements: § Always starts on a new line and takes up the full width available (stretches out to the left and right as far as it can). § Block elements in HTML
8. HMTL Comments Ø HTML comments: § Comment tags are used to insert comments in the HTML source code § An HTML comment begins with <!– – and the comment closes with – –>
Ø You can add comments to your HTML source by using the following syntax: