37 lines
1.3 KiB
HTML
37 lines
1.3 KiB
HTML
<div>
|
|
<h1>HTML Basics</h1>
|
|
<p>I know that:
|
|
<ul>
|
|
<li>inline styles override all others.</li>
|
|
<li>index.html is one of the industry standard default file names, as well as index.htm, index.php, index.asp, index.aspx and more.</li>
|
|
<li>iframes are used to embed documents within other documents.</p>
|
|
<li>
|
|
CSS files are linked by using the following code:
|
|
<br>
|
|
<code><link rel="stylesheet" type="text/css" href="../css/main.css"></code>
|
|
</li>
|
|
<li>
|
|
JS files are linked by using the following code:
|
|
<br>
|
|
<code><script type="text/javascript" src="scripts/scripts.js"></script></code>
|
|
</li>
|
|
<li>
|
|
Adding the date when the window loads:
|
|
<br>
|
|
<code>
|
|
// onload of window
|
|
<br>
|
|
window.onload = dateInsert;
|
|
</code>
|
|
</li>
|
|
<li>
|
|
Ternary operators work by using:
|
|
<br>
|
|
<code>[condition] ? [value if true] : [value if false]</code>
|
|
</li>
|
|
<li>The later a CSS file is imported, the more power it has over the document - i.e. the last stylesheet imported will overwrite the styling in all of the other stylesheets.</li>
|
|
<li>To add another page, one can use an <code><iframe></code> or the jQuery <code>.load()</code> method.</li>
|
|
</ul>
|
|
</p>
|
|
</div>
|