<html>
<body>
<h1>First Heading</h1>
<p>Hello World!</p>
</body>
</html>
|
|
Beginners
Basic HTML tags are as follow: <html> <h1>First Heading</h1> <p>Hello World!</p> </body> (The text between <html> and </html> describes the web page, and The text between <body> and </body> is the visible page content except for the markup text '<title>Hello HTML</title>' —which evinces as the browser tab title.) This Document Type Declaration is for HTML5. If the <!doctype html> declaration is not included, various browsers will revert to "quirks mode" <head This comes immediately following <html> and is used to tell the browser useful information, such as: the title of your page, the topic of your webpage ( used on old search engines ) and more. <title>This tag must comes between <head> & </head> and will label the web browser's title bar, which is located in the top left of most browsers. In the previous example, we titled the page "My Own Webpage!" and that text would show up as the browser's title. <h2>This is a header tag. It will create a "header" that is much larger than the default font size. The "h2" means that it is the 2nd largest header. The largest header is "span" and the smallest header is "h6". Headers should be used for titles, just like the ones you see on this page. <p>This is a paragraph tag. So when you're writing a paragraph make sure you place <p> at the beginning of the paragraph and </p> at the end! Headings: HTML headings are defined with the <span> to <h6> tags: <html> <h1>First Heading</h1> <p>Hello World!</p> </body> |