HTML cheatsheet

Published 7 months ago: June 28, 2020


This cheatsheet is a small collection of handy snippets for quick reference in tricky situations. Feel free to suggest edits, propose additions, complain about something, disagree with content or such and the like. Every feedback is a welcome one.

HTML

Embed plain text (txt) files in .html

<embed src="folder/file.txt" width="400" height="200"> 

Style embedded elements

<div style="margin: 0 auto; width:100%; height:400px; overflow: auto;">
    <object type="text/html" data="file_name.txt" style="width:100%; height:400px; margin:1%;" />
</div>

<p>
    <font color="#FFFFFF">
        <embed src="filename.txt" width="x" height="y" />
    </font>
</p>

Christoffer Lybekk

Developer under development

Explore more articles with similar tags

HTMLSyntaxCheatsheet

Article stats


11words

3sentences

3paragraphs

1 minread time