datat.fi/example/_posts/2013-01-11-markup-html-elem...

177 lines
4.4 KiB
Markdown
Raw Normal View History

2017-03-07 23:12:17 +02:00
---
2017-03-09 21:38:14 +02:00
title: "Markup: HTML Elements and Formatting"
sub_title: "The common elements"
2017-03-07 23:12:17 +02:00
categories:
- Markup
2017-03-09 21:38:14 +02:00
elements:
2017-03-07 23:12:17 +02:00
- content
- css
- formatting
- html
- markup
2017-03-09 21:38:14 +02:00
last_modified_at: 2017-03-09T10:55:59-05:00
2017-03-07 23:12:17 +02:00
---
2017-03-09 21:38:14 +02:00
A variety of common HTML elements to demonstrate the theme's stylesheet and verify they have been styled appropriately.
2017-03-07 23:12:17 +02:00
# Header one
## Header two
### Header three
#### Header four
##### Header five
###### Header six
## Blockquotes
Single line blockquote:
> Stay hungry. Stay foolish.
Multi line blockquote with a cite reference:
> People think focus means saying yes to the thing you've got to focus on. But that's not what it means at all. It means saying no to the hundred other good ideas that there are. You have to pick carefully. I'm actually as proud of the things we haven't done as the things I have done. Innovation is saying no to 1,000 things.
<cite>Steve Jobs</cite> --- Apple Worldwide Developers' Conference, 1997
{: .small}
## Tables
| Employee | Salary | |
| -------- | ------ | ------------------------------------------------------------ |
| [John Doe](#) | $1 | Because that's all Steve Jobs needed for a salary. |
| [Jane Doe](#) | $100K | For all the blogging she does. |
| [Fred Bloggs](#) | $100M | Pictures are worth a thousand words, right? So Jane × 1,000. |
| [Jane Bloggs](#) | $100B | With hair like that?! Enough said. |
| Header1 | Header2 | Header3 |
|:--------|:-------:|--------:|
| cell1 | cell2 | cell3 |
| cell4 | cell5 | cell6 |
|-----------------------------|
| cell1 | cell2 | cell3 |
| cell4 | cell5 | cell6 |
|=============================|
| Foot1 | Foot2 | Foot3 |
## Definition Lists
Definition List Title
: Definition list division.
Startup
: A startup company or startup is a company or temporary organization designed to search for a repeatable and scalable business model.
#dowork
: Coined by Rob Dyrdek and his personal body guard Christopher "Big Black" Boykins, "Do Work" works as a self motivator, to motivating your friends.
Do It Live
: I'll let Bill O'Reilly [explain](https://www.youtube.com/watch?v=O_HyZ5aW76c "We'll Do It Live") this one.
## Unordered Lists (Nested)
* List item one
* List item one
* List item one
* List item two
* List item three
* List item four
* List item two
* List item three
* List item four
* List item two
* List item three
* List item four
## Ordered List (Nested)
1. List item one
1. List item one
1. List item one
2. List item two
3. List item three
4. List item four
2. List item two
3. List item three
4. List item four
2. List item two
3. List item three
4. List item four
2017-03-09 21:38:14 +02:00
## Address element
2017-03-07 23:12:17 +02:00
<address>
1 Infinite Loop<br /> Cupertino, CA 95014<br /> United States
</address>
2017-03-09 21:38:14 +02:00
## Anchor element (aka. Link)
2017-03-07 23:12:17 +02:00
This is an example of a [link](http://apple.com "Apple").
2017-03-09 21:38:14 +02:00
## Abbreviation element
2017-03-07 23:12:17 +02:00
The abbreviation CSS stands for "Cascading Style Sheets".
*[CSS]: Cascading Style Sheets
2017-03-09 21:38:14 +02:00
## Cite element
2017-03-07 23:12:17 +02:00
"Code is poetry." ---<cite>Automattic</cite>
2017-03-09 21:38:14 +02:00
## Code element
2017-03-07 23:12:17 +02:00
You will learn later on in these tests that `word-wrap: break-word;` will be your best friend.
2017-03-09 21:38:14 +02:00
## Strike element
2017-03-07 23:12:17 +02:00
2017-03-09 21:38:14 +02:00
This element will let you <strike>strikeout text</strike>.
2017-03-07 23:12:17 +02:00
2017-03-09 21:38:14 +02:00
## Emphasize element
2017-03-07 23:12:17 +02:00
2017-03-09 21:38:14 +02:00
The emphasize element should _italicize_ text.
2017-03-07 23:12:17 +02:00
2017-03-09 21:38:14 +02:00
## Insert element
2017-03-07 23:12:17 +02:00
2017-03-09 21:38:14 +02:00
This element should denote <ins>inserted</ins> text.
2017-03-07 23:12:17 +02:00
2017-03-09 21:38:14 +02:00
## Keyboard element
2017-03-07 23:12:17 +02:00
2017-03-09 21:38:14 +02:00
This scarcely known element emulates <kbd>keyboard text</kbd>, which is usually styled like the `<code>` element.
2017-03-07 23:12:17 +02:00
2017-03-09 21:38:14 +02:00
## Preformatted element
2017-03-07 23:12:17 +02:00
2017-03-09 21:38:14 +02:00
This element styles large blocks of code.
2017-03-07 23:12:17 +02:00
<pre>
.post-title {
margin: 0 0 5px;
font-weight: bold;
font-size: 38px;
line-height: 1.2;
2017-03-09 21:38:14 +02:00
and here's a line of some really, really, really, really long text, just to see how the PRE element handles it and to find out how it overflows;
2017-03-07 23:12:17 +02:00
}
</pre>
2017-03-09 21:38:14 +02:00
## Quote element
2017-03-07 23:12:17 +02:00
<q>Developers, developers, developers&#8230;</q> &#8211;Steve Ballmer
2017-03-09 21:38:14 +02:00
## Strong element
2017-03-07 23:12:17 +02:00
2017-03-09 21:38:14 +02:00
This element shows **bold text**.
2017-03-07 23:12:17 +02:00
2017-03-09 21:38:14 +02:00
## Subscript element
2017-03-07 23:12:17 +02:00
Getting our science styling on with H<sub>2</sub>O, which should push the "2" down.
2017-03-09 21:38:14 +02:00
## Superscript element
2017-03-07 23:12:17 +02:00
Still sticking with science and Isaac Newton's E = MC<sup>2</sup>, which should lift the 2 up.
2017-03-09 21:38:14 +02:00
## Variable element
2017-03-07 23:12:17 +02:00
This allows you to denote <var>variables</var>.