Skip to content

Instantly share code, notes, and snippets.

@adriculous
Created April 13, 2016 05:36
Show Gist options
  • Save adriculous/aa98f40f469d2049f7ded4af87d822a1 to your computer and use it in GitHub Desktop.
Save adriculous/aa98f40f469d2049f7ded4af87d822a1 to your computer and use it in GitHub Desktop.
Markdown for Writers and Hobbyists (Part 3) - Let's put it all together!
# What's a `div` tag?
A `div` tag is an HTML general container tag that doesn’t really have any specific functions unless they are being defined with other attributes, such as CSS styling. You can find more info here at [W3Schools](http://www.w3schools.com) and various sources around the internet. [Google](http://www.google.com) is everybody’s best friend.
Here’s an example of a `div` tag code in action:
<div class="container">
<div class="my-message">
<p>This is a sample of a section of a site using this tag. Pretty cool, huh?</p>
</div>
</div>
---
You can learn more about HTML in the following sites:
- [W3Schools](http://www.w3schools.com)
- [Codeacademy](http://codeacademy.com)
- [W3C](http://www.w3.org)
- … and plenty more sites around the interwebs!
---
## Can Markdown do everything and then automatically convert to HTML?
Not really. Sometimes we would need to mix in a few HTML tags along with Markdown whenever we try to style some text in a certain way. Like this, for example:
<p style="padding-left: 30px;">**The NINPOJineous**</p>
<p style="padding-left: 30px;">It’s the site that we’re on!</p>
You see that text above? We need to use some HTML to create this style because Markdown can’t style that on its own.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment