Home

Basics of HTML Guide

Home HTML JavaScript DOM Data Types Correcting errors

How does HTML work?

Similar function to Markdown, syntax defines how stuff should be displayed

Compare markdown to html below

This below example shows comparison of a heading and paragraph. Click on links to see many more HTML examples.

%%markdown

### Markdown: This is a Heading

This is a paragraph

Markdown: This is a Heading

This is a paragraph

%%html

<h3>HTML: This is a Heading</h3>
<p>This is a paragraph.</p>

HTML: This is a Heading

This is a paragraph.

Attributes

<tagname attribute_name="attribute_value" another_attribute="another_value">inner html text</tagname>
<a href="https://www.w3schools.com/html/default.asp">Visit W3Schools HTML Page</a>

Sample Markdown vs HTML Tags

Image Tag - Markdown

![describe image](link to image)

Image Tag - HTML

<!-- no content so no end tag, width/height is optional (in pixels) -->
<img alt="describe image" src="link to image" width="100" height="200">

Link Tag - Markdown

[link text](link)

Link Tag - HTML

<a href="link">link text</a>

Bolded Text - Markdown

**Bolded Text**

Bolded Text - HTML

<strong>Bolded Text</strong>

Italic Text - Markdown

*Italic Text*

Italic Text - HTML

<i>Italic Text</i>

More tags (not really in markdown)

P tag (just represeants a paragraph/normal text)

<p>This is a paragraph</p>

Button

<button>some button text</button>

Div (groups together related content)

<!-- first information -->
<div>
    <!-- notice how tags can be put INSIDE eachother -->
    <p>This is the first paragarph of section 1</p>
    <p>This is the second paragraph of section 1</p>
</div>

<!-- second information -->
<div>
    <!-- notice how tags can be put INSIDE eachother -->
    <p>This is the first paragarph of section 2</p>
    <p>This is the second paragraph of section 2</p>
</div>

Resources

HTML Hacks

wireframe for html hacks

%%html

<style>
    .Text p{
        align-items: center;
    }
    button {
        padding: 10px 20px;
        background-color: #007bff;
        color: #fff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s;
        margin-left: 40%;
      }
      button:hover {
        background-color: #0056b3;
      }
</style>
<div class="Text">
    <p> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quae, quod reiciendis neque odit ipsam similique, adipisci rem iusto dignissimos est facere? Nemo repellendus perferendis corporis neque eius eveniet eligendi sequi!</p>
    <br>
    <button>Test Button</button>
</div>

<br>
<br>

<div class="Links">
    <a target="_blank" href="https://poway.instructure.com/">Canvas</a>
    <br>
    <br>
    <a target="_blank" href="https://github.com/">Github</a>
    <br>
    <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Provident maiores, dolorum officiis qui iure, delectus eum enim minus facere eius quisquam! Veniam nostrum tempora alias natus praesentium in accusantium laborum!</p>
</div>

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quae, quod reiciendis neque odit ipsam similique, adipisci rem iusto dignissimos est facere? Nemo repellendus perferendis corporis neque eius eveniet eligendi sequi!




© 2024    •  Powered by Soopr   •  Theme  Moonwalk