Programiranje Codeacademy
Programiranje Codeacademy
1. The <!DOCTYPE html> declaration should always be the first line of code in your
HTML files. This lets the browser know what version of HTML to expect.
2. The <html> element will contain all of your HTML code.
3. Information about the web page, like the title, belongs within the <head> of the
page.
4. You can add a title to your web page by using the <title> element, inside of the
head.
5. A webpage's title appears in a browser's tab.
6. Anchor tags (<a>) are used to link to internal pages, external pages or content on
the same page.
7. You can create sections on a webpage and jump to them using <a> tags and
adding ids to the elements you wish to jump to.
8. Whitespace between HTML elements helps make code easier to read while not
changing how elements appear in the browser.
9. Indentation also helps make code easier to read. It makes parent-child
relationships visible.
10. Comments are written in HTML using the following syntax: <!-- comment -->.
<!DOCTYPE html>
<html>
<head>
<title>Brown Bears</title>
</head>
<body>
<nav>
<a href="./index.html">Brown Bear</a>
<a href="./aboutme.html">About Me</a>
</nav>
<h1>The Brown Bear</h1>
<nav>
<ul>
<li><a href="#introduction">Introduction</a></li>
<li><a href="#habitat">Habitat</a></li>
<li><a href="#media">Media</a></li>
</ul>
</nav>
<div id="introduction">
<h2>About Brown Bears</h2>
<p>The brown bear (<em>Ursus arctos</em>) is native to parts of northern Eurasia and North America. Its
conservation status is currently <strong>Least Concern</strong>.<br /><br /> There are many subspecies within
the brown bear species, including the
</html>