Part 1 Flashcards
What is an element?
The building blocks of (x) HTML. Used to describe every piece of text on the page.
Made up of tags and content within tags.
What are HTML instructions known as?
Markup
What are the two main types of elements?
Tag pair & single tag
What is a tag pair?
Elements that describe content. They mark the beginning and the end of an element
What is a single tag?
Elements that insert something into the page are called “empty elements” because they enclose no content
One key difference between HTML & XHTML
In XHTML all empty elements must end with a slash before closing the greater-than symbol.
XHTML is based on XML, and the XML rule is that you close empty slash elements
Attributes
Allow variety in how an element describes content or works.
Width
Height
Src
Include attributes within start rage of element you want them with– after the element name but before ending sign
Entities
Special characters that you can display on webpage
Each entity begins with an ampersand and ends with a semicolon
How to show HTML characters that are normally hidden?
(): >
(&): &
Comments
Comments Include text in (X)HTML files that isn’t displayed on final page.
Each comment is identified with two special sequences of markup characters:
<!--
-->
Explains how each markup element functions and where it fits into HTML markup hierarchy
Headings
h1 through h6
Different from HTML document head.
Individual headings structure the text that follows them, whereas the “head”identifies or describes the whole document.
CSS
Cascading style sheet markup
Provides much more detailed control over font selection, use of color for text and backgrounds, positioning of text and other elements…
User interface (UI)
Overall design. It’s a mechanism that gives users access to information on your site.