More markup. Divs. Classes.
I really liked all the appreciation for my formatting post part 1 so I took the time to make an advanced formatting post with all I have learned.
I present you these advanced markup and html techniques
EVEN MORE MARKUP
I gave you the markup for Headings, Bold, Italic, Code, Blockquote, Lists and Tables, but markup has some more to reveal.
Alternatives
There is alternative on H1 and H2 heading. If you underline a line with (====) or (-----) you will get H1 or H2.
This markup
Heading 1
=========
Heading 2
----------------
will give you :
Heading 1 ========= Heading 2
Bold and Italic - I already showed you how to use ** and * to make bold and italic. It could be useful to know that you could make the same effect using underscores
_italic text_ __bold text__
Don't forget you can combine underscores and asterisks for bold-italic
You can also have ~~strikethrough~~ effect using two tildes (~~)
~~text to strikethrough~~
You can make the code effect code
using back-ticks (`) around the text
If you want longer few lines code effect use triple back-ticks (```)
There are some other even more detailed specifications of markup language which you can find here: Markdown Cheatsheet by Adam Pritchard
HTML TAGS
HTML is the language of the web. Every page you see is marked in HTML. The part of HTML that you can use in a post is pretty small, but I will show you what I know.
Everything you can make in Markup, you can make with HTML tags. HTML tags are words surrounded by angle brackets <>
There is always an opening tag
and a closing tag
Let me start with
1.Headings
Instead using one or more # to indicate Heading you can use these html tags
Your heading text
Your heading text
Your heading text
Your heading text
Your heading text
The result will be:
Your heading text
Your heading text
Your heading text
Your heading text
Your heading text
2.You have tags for all the markup text formatting
HTML Code | Result |
---|---|
| I am so Bold I am Italic> I am blockquote |
3. Lists
Ordered list code | Result |
---|---|
|
|
Ordered list code | Result |
|
|
4. Tables
This is actually looking more complex than the markup.
The
tag. Table cells (data) are defined with a | tag.
You can have as many data cells in are row as you wish, they are not defined by the first row length.
code
result
5.DIVS and CLASSThis is where it gets fancy. DIV is a container. Like a box in which you put other html tags. If the box has a label, all the tags inside follow that label. The label is the CLASS property. Let me give you an example Align DIV (Pull to box to the left or to the right)
Text inside a DIV. Class pull-right aligns it right on the screen
Text inside a DIV. Class pull-left aligns it left on the screen
Align text (The way text is aligned in a column)It is important to distinguish this from the previous way of aligning. You can have a box of text, that is on the right side of the screen (class="pull-right") , but still have the text aligned to the right side of the box. To control text alignment, you have to use DIV again, just like this:
The look of each text block you can see in the gif upside or test alone. 5.SPANSPAN can be used like a div, but it is an inline element. This means that classes that are made for text or links will apply to spans. Most interesting example is having text with different colors, actually just red :D This can be done with class called phishy
This is some red text
You can actually make some interesting combinations if you check the source code and reverse engineer some of the classes. The problem is that they will be only applicable to the front end that you are using. For example I played with some of the classes in @ecency and made this:
Fancy button with hovers
5.Links and ImagesNothing extraordinary here.
This is a code for link
That will look like this: This is a Dynamic FAQ post This is code of image:
And this is the image it shows
5.CENTERCenter tags can center your content. Sometimes you get a strange bug, if you leave blank/empty lines between the lines. If you put both center tags in a single line it works fine just like that. centered test text uncentered test text You can also use center in multiple lines, but you should never leave an empty line. Example: centered text another line of centered text Third line of centered text Uncentered text And leaving just a single empty line produce a BUG and everything below gets centered for example
Uncentered text To make the above example work, remove the blank space from the opening and closing div tags.
Referenceshttps://ecency.com/hive-174578/@jason04/how-to-format-your-blog-in-an-epic-way-or-a-guide-for-beginners https://ecency.com/steemit/@jonrhythmic/formatting-your-steemit-posts-using-html-markup-text-formatting-guide https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet https://ecency.com/hive-12358/@brutalisti/make-you-post-easier-to
We have a brand new Beeple portrait NFT dropped
#formating
#desing
#write
#post
#html
#markup
#class
#div
#table
#hive-12358
Payout: 0.000 HBD
Votes: 72
More interactions (upvote, reblog, reply) coming soon.
|
---|