> For the complete documentation index, see [llms.txt](https://openai.gitbook.io/code-cheatsheets/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://openai.gitbook.io/code-cheatsheets/all/html.md).

# HTML Basics

**HARD REFRESH TO ACTUALLY SEE CHANGES CUZ CACHE**

```markup
<parent>
   <child1>
     <child2>
     </child2>
   </child1>
</parent>

<tagname att1="value1" att2 ="value2"> </tagname>
<img src="mountain.jpg" alt="A mountain" />
<a href="www.math.ucla.edu/~virtanen">My page</a>
<a href="#someId">My page</a>
```

## [Tag Types](https://html.spec.whatwg.org/multipage/sections.html)

All tags just have default CSS styling and expectations for usage, could only use divs and then style them

* &#x20;p should only contain paragraphs of text and will warn if div inside
* &#x20;div divides common and basic

  &#x20;span is default inline for word level styling
* span is **inline** so margin wont work
* div and p are **block**&#x20;

### Element Type

* **Block**  start a new line by default and stack up like blocks
* **Inline** elements occur in the flow of text

## Special Characters

\  => non-breaking space \\< => less-than <

\\> => greater-than > \© copyright symbol © \® => reg symbol ®
