Last active
February 25, 2016 08:50
-
-
Save kriot1/dc4ef015193ab6c488b0 to your computer and use it in GitHub Desktop.
htmlbasics.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> – This shows your browser that you are using HTML5. Helpful info on the DOCTYPE declaration can be found here, but you don’t necessarily have to understand everything about this attribute. | |
<html> – This begins a series of nested HTML tags that make up your website. | |
<title> - Controls title on your browser bar | |
<head> – The “head” tag is where you can place tags such as your title, CSS stylesheet, and mobile view configuration codes. | |
<body> – The “body” tag consists of your content. Everything here will be visible on your page. | |
<h1>, <h2>, <h3> – Varying levels of headings | |
<p> – Paragraph | |
<a href=”URL”> – Hyperlink | |
<alt> – Alternative text for when element cannot be displayed | |
<strong> – Bold text | |
<br> – Single line break | |
<div> – Section in a document | |
<img> – Image | |
<em> - This text is emphasized | |
<span> – Groups inline elements (good for adding CSS without creating a paragraph break) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment