Intro to HTML and CSS Flashcards
HTML (HyperText Markup Language)
- HTML is the standard markup language for Web Pages.
- HTML defines the structure of a web page.
- HTML defines a document that will be displayed by a web browser.
- HTML uses <> tags to represent elements that are the building blocks for a web page.
HyperText
Is text displayed by a device that has references (links) to other text that the reader can immediately access.
Markup Language
Is a system for annotating a document in a way that syntactically distinguishes how to display the document and the content. When displayed Markup Language is not shown, instead it defines how to format the content.
HTTP or HyperText Transfer Protocol
HTTP is the primary protocol used to transfer HTML documents on the web.
HTML: Document Structure
- Document Type Declaration (DTD).
- HTML Element.
- Document HEAD.
- Document BODY.
Document Type Declaration (DTD)
A simple declaration the identifies the document’s type. For HTML, it will always be . While it should always be included, if it is omitted most browsers will default to HTML.
HTML Element
Wraps all the other elements on the page, defining the scope of the document. It is often referred to as the root element.
Document HEAD
Contains meta information about the document and defines other files you want to include on the page, such as JavaScript or CSS. It does not contain content.
Document BODY
Contains all the content of the page, like text, images, videos, etc.
HTML tag attributes
Key=”value” pairs applied to the starting tag. Tags can have 0…n attributes.
Semantic HTML
Clearly describes its meaning to both the browser and the developer.