<!DOCTYPE html> <html> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html>
<!-- Answer to: "html basics" --> <!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="./style.css"> <script type="text/javascript" src="./script.js"></script> <title>...</title> </head> <body> ... </body> </html>
<!DOCTYPE html> <html lang="pt-br" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml"> <head> <link rel="stylesheet" type="text/css" href="style.css"> <title>...</title> </head> <body> ... <script type="text/javascript" src="script.js"></script> </body> </html>
Basic Html Template: <html> <head> <title> /* document title here */ </title> /* document meta information and external file include written here */ </head> <body> /* document body goes here */ </body> </html>
<p>My cat is very grumpy</p>
<!DOCTYPE html> <html lang="en-US"> <body> ... </body> </html>
<p style="color:red">This is a red paragraph.</p>
My cat is very grumpy
<p title=About W3Schools>