HTML Flashcards
(27 cards)
< body > < / body >
Without spaces
Surrounding everything on the page
< head> < /head>
Without space
Before the body and contains information about the page
< title > < /title >
Without spaces
Part of the head
What it says in the tab/top of the browser
<h1> </h1>
Heading
<p> </p>
Paragraph
<br></br>
Should have a space and forward slash after br
Break
Adds an empty line
Empty element
<hr></hr>
Should have a space and forward slash after hr
Horizontal rule
<ol> </ol>
Ordered list
Has numbers
<ul> </ul>
Unordered list
Has bullet points
<li> </li>
List item
Inside of ordered or unordered lists
<dl> </dl>
Definition list
<dt> </dt>
Definition term
In definition list
<dd> </dd>
Definition
Used in a definition list
<a> what you want the text to say </a>
Link outside of site
Links were originally called anchors
<a> Home </a>
Link within site (in same folder)
Relative URLs
target=”blank”
Attribute inside <a> after href=”___”</a>
Opens link in new page/tab </a>
< img src = “ sample.filetype “ alt = “quotes are a thing “ title =” can have if you want “ />
Images must have a source =src and an alt attribute
Empty tag
The alt maybe blank but must have “”
< table >
< / table >
Used to create a table/spreadsheet thing
Used around table rows
< tr >
tr >
Table row
Used around each row of a table inside
< td >
< / td >
Table data
Used inside of table rows for each piece of data
Can be blank inside to represent a blank cell
< th >< / th >
Table heading
Used like table data but makes it a heading
< thead >
thead >
Table heading
Used for long tables
A < tr > will be inside of it
< tbody > tbody >
Table body
Used for long tables
Multiple < tr > will be inside
Used in the same tables as table heading/footer
< tfoot >
Table footer
```