Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Simplest possible HTML template
<!doctype html>
<html>
<head>
<title>This is the title of the webpage!</title>
</head>
<body>
<p>This is an example paragraph. Anything in the <strong>body</strong> tag will appear on the page, just like this <strong>p</strong> tag and its contents.</p>
</body>
</html>
@LouisJeff

This comment has been minimized.

Copy link

@LouisJeff LouisJeff commented Oct 6, 2019

@monitrr

This comment has been minimized.

Copy link

@monitrr monitrr commented Nov 2, 2019

@Xbourgeoys

This comment has been minimized.

Copy link

@Xbourgeoys Xbourgeoys commented Nov 28, 2019

That very awesome because i like tomato soup

@Xbourgeoys

This comment has been minimized.

Copy link

@Xbourgeoys Xbourgeoys commented Nov 28, 2019

The site Amphoria has been hacked by github. Why

@alexma2344

This comment has been minimized.

Copy link

@alexma2344 alexma2344 commented Jan 13, 2020

Very convenient

@tinkeristgit

This comment has been minimized.

Copy link

@tinkeristgit tinkeristgit commented Jan 25, 2020

I like canned beans in saus.

@Sunflower000

This comment has been minimized.

Copy link

@Sunflower000 Sunflower000 commented Jun 1, 2020

im bored, im also liked this :)

@rowe-morehouse

This comment has been minimized.

Copy link

@rowe-morehouse rowe-morehouse commented Oct 3, 2020

you don't have to include </p> … you could remove that, and it would be even simpler.

@victor-yarema

This comment has been minimized.

Copy link

@victor-yarema victor-yarema commented Dec 14, 2020

Here is the simplest possible HTML5 template:

<!doctype html>
<title>Title</title>
Body

You can validate it at https://validator.w3.org/nu/#textarea or at https://html5.validator.nu/ .

Some of tags can be omitted according to specification.
For example

An html element's start tag can be omitted if the first thing inside the html element is not a comment.
An html element's end tag can be omitted if the html element is not immediately followed by a comment.

https://html.spec.whatwg.org/#the-html-element

You can even omit "Body" but then it is not clear what would be the purpose of such a document. :)

@gerardorosiles

This comment has been minimized.

Copy link

@gerardorosiles gerardorosiles commented Dec 22, 2020

It is the simplest that gives you a good semblance of what an html document looks like. Heck, you could just save
Hello World!
under index.html and that would be served :)

@cafesohbet

This comment has been minimized.

Copy link

@cafesohbet cafesohbet commented Jan 20, 2021

harıka içerik anlatım saol

@KpLBaTMaN

This comment has been minimized.

Copy link

@KpLBaTMaN KpLBaTMaN commented Jan 29, 2021

Thank you

@deivids943

This comment has been minimized.

Copy link

@deivids943 deivids943 commented Feb 4, 2021

how do you put in an image

@balyedi

This comment has been minimized.

Copy link

@balyedi balyedi commented Feb 22, 2021

harıka içerik anlatım saol

xd

@daveywoodsforce

This comment has been minimized.

Copy link

@daveywoodsforce daveywoodsforce commented Feb 22, 2021

Used for learnin Azure. Thanks.

@OriShavit1

This comment has been minimized.

Copy link

@OriShavit1 OriShavit1 commented Mar 27, 2021

Took that for a quick setup, thank you.

@YungSamzy

This comment has been minimized.

Copy link

@YungSamzy YungSamzy commented Apr 30, 2021

Somehow I found this. Very Epic.

@ImOsaym

This comment has been minimized.

Copy link

@ImOsaym ImOsaym commented May 5, 2021

I didn't know what to search for the proper way to write <!doctype html> so now I'm here and I think I'm good thanks homie

@davidebukali

This comment has been minimized.

Copy link

@davidebukali davidebukali commented Jul 15, 2021

Nice ...

@thekingofbandit

This comment has been minimized.

Copy link

@thekingofbandit thekingofbandit commented Jul 29, 2021

amazing! thanks

@CarolayMeza

This comment has been minimized.

Copy link

@CarolayMeza CarolayMeza commented Sep 3, 2021

I like soup too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment