Skip to content

Instantly share code, notes, and snippets.

@victoriachuang
Last active May 4, 2016 17:27
Show Gist options
  • Save victoriachuang/c087d43bbde2c0ca0af57770c4614fb9 to your computer and use it in GitHub Desktop.
Save victoriachuang/c087d43bbde2c0ca0af57770c4614fb9 to your computer and use it in GitHub Desktop.
HTML elements code snippets
<!-- link CSS file -->
<link rel="stylesheet" type="text/css" href="FILE/PATH.css">
<!-- anchor tag to add a link -->
Click <a href="https://LINK">here</a>
<!-- anchor tag to send email -->
<a href="mailto:EMAIL_ADDRESS">TEXT</a>
<!-- open link in a new tab -->
<a href="LINK_HERE" target="_blank">TEXT</a>
<!-- insert image using a URL -->
<!-- remember, images are self-closing tags -->
<img src="https://URL" alt="ALTERNATE_TEXT" />
<!-- insert image using a file path -->
<!-- "./" denotes the current directory -->
<img src="./PATH/TO/FILE.fileextension" alt="ALTERNATE_TEXT" />
<!-- unordered list -->
<ul>
<li>Order</li>
<li>Doesn't</li>
<li>Matter</li>
</ul>
<!-- ordered list -->
<ol>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ol>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment