html 1 Flashcards
what is html
Hyper text markup language
Standard markup language for creating webpages
Describes the structure of a web page
Consists of a series of elements, and elements tell the browser how to display the content
Elements label pieces of content such as “this is a heading” etc
explain an example
Doctype html declaration defines that this document is an html5 document
Html element is the root element of an html page
Head element contains meta information about the html page
Title element specifies the title
Body element defines the document’s body and is a container for all the visible contents such as lists, headings, paragraphs etc
H1 element defines a large heading
P element defines a paragraph
what is an html element
Defined by a start tag, some content and an end tag
The HTML element is everything from the start tag to the end tag
what is a web browser
Purpose of a web browser is to read html documents and display them correctly
Browser doesn’t display html tags but uses them to determine how to display the document
what is the sturcture of html documents
All html document must start with a document type declaration: DOCTYPE html
The html document itself begins with html and ends with /html
The visible part of the html document is between body and /body
what does the doctype declaration of
This represents the document type, and helps browsers display the webpage correctly
It must only appear once at the top of the page before any html tags
The doctype declaration is not case sensitive
For html5 it is <!DOCTYPE html >
what are html headings
Html headings are defined with the h1 to h6 tags
H1 is the most important heading
H6 is the least important heading
what are html links
Defined with the a tag
Link’s destination is specified in the href attribute
Attributes are used to provide additional information about html elements
what are html images
Defined by img tag
Source file src, alternative text alt, width and height and provided as attributes
what is the html element
Everything from the start tag to the end tag
Headings, paragraphs, etc
what is the nested html elements
Html elements that contain other elements
what are empty elements
Elements with no content
The br element defines a line break and is an empty element without a closing tag
are html tags case sensitive
Html tags are not case sensitive
Aka P means the same as p
what is additional info about these tags
Html defines the root of an html document
Body defines the documents body
H1 to h6 defines html headings
what are html attributes
All html elements can have html attributes
Attributes provide additional information about elements
Attributes are always specified in the start tag
Attributes usually come in name/value pairs like name = “ value “
what is the href attribute
a tag defines a hyperlink
href attribute specifies the url of the page the link goes to