Вы находитесь на странице: 1из 3

<html> to start every html code ...

</html> to finish it •••


every HTML code is based on two parts : the head and the body•

<head> to open the head part of the code ••• in this part we can put the title by
using the limits <title> and </title> ♥♥♥
The style by using <style> and </style> to chose for example the colour of your
page ♥♥♥ The base by using <base • and you write the link of your page for
expl•••(this command isn't dual like the others)>♥♥♥
<link ••• this is used to link external style texts made by css for expl (this is
also not a dual tag)>♥♥♥
the meta By using the tag </meta (not dual) and we can type here the keywords or
description or last modified and other metadata that will not appear on the
website>♥♥♥
the script by using <script> and type here the javascript code for expl </script >:
to close it☻☻☻ the <noscript> for expl if someone disabled scripts in his browser
so you type here the message that you want to show </noscript>♥♥♥
and finally </head> to close the head part of the HTML code •
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
now we pass for the second part "Body" ••• in this part you can put alot of
texts ,tables,pictures,lines as you can control the colour or the size or anything
about these elements •
So here we use te tag <body> to start working in this part •••
<p>Paragraph</p>•
<br/ to make a line break >•
TEXT CONTROL•••
<b> for a bold text </b>•
<big>for a big text</big>•
<small> for a small text </small>•
<strong> for a strong text </strong>•
<i>for italic text </i>•
<sup>superscripted text </sup>•
<sub>subscripted text </sub>•
<ins> for inserted (underlined)text </ins>•
<del> Deleted text </del>(or <u> </u>)•
•••
<h1>Bigger than the text after </h1>•
<h2>smaller than before</h2>•
<h3>also smaller than before </h3>•••
<hr/ align="center" width="50%">
we can for expl do <div style="Background-color:red"> <h1 style="color:blue">to
make a background color and a color for the text</h1></div>
•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
•••••••••••••••••••••••••••••••••••••••••••••HTML5•••••••••••••••••••••••••••••••••
•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••

Content Models

Metadata: Content that sets up the presentation or behavior of the rest of the
content. These elements are found in the head of the document.
Elements: <base>, <link>, <meta>, <noscript>, <script>, <style>, <title>

Embedded: Content that imports other resources into the document.


Elements: <audio>, <video>, <canvas>, <iframe>, <img>, <math>, <object>, <svg>
Interactive: Content specifically intended for user interaction.
Elements: <a>, <audio>, <video>, <button>, <details>, <embed>, <iframe>, <img>,
<input>, <label>, <object>, <select>, <textarea>

Heading: Defines a section header.


Elements: <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <hgroup>

Phrasing: This model has a number of inline level elements in common with HTML4.
Elements: <img>, <span>, <strong>, <label>, <br />, <small>, <sub>, and more.

...............................................•
we use <nav> <a href="#"> to put a group of links with their referencers
</a></li> </nav>
••••••••
we use <header> in the body tag to put some shit like <h1> or whatever in the
header of the page </header>
•••
<footer> to put some shit like .
authorship information
copyright information
contact information
sitemap
back to top links
related documents</footer>
••••••

The following commands are available for path data:


M: moveto
L: lineto
H: horizontal lineto
V: vertical lineto
C: curveto
S: smooth curveto
Q: quadratic Bézier curve
T: smooth quadratic Bézier curveto
A: elliptical Arc
Z: closepath

Define a path using the d attribute:


<svg width="500" height="500">
<path d="M 0 0 L200 200 L200 0 Z" style="stroke:#000; fill:none;" />
</svg>

<!--to put a comment xD-->•


•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
<form autocomplete="Off">
<label for="email">Your Email Adress :</label>
<input name="email" type="text" required>
</form>
•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
<input id="car" type="text" list="colors" />
<datalist id="colors">
<option value="Red">
<option value="Green">
<option value="Yellow">
</datalist> ........ Options under text
•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
<input id="email" name="email" type="email" placeholder="example@example.com" />
<br />
<input id="url" name="url" type="url" placeholder="example.com" />
<br />
<input id="tel" name="tel" type="tel" placeholder="555.555.1211" /> to input
email...URL...Phone Number
•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
finds element by id
document.getElementById(id)

//finds elements by class name


document.getElementsByClassName(name)

//finds elements by tag name


document.getElementsByTagName(name)
•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
Each element in the DOM has a set of properties and methods that provide
information about their relationships in the DOM:
element.childNodes returns an array of an element's child nodes.
element.firstChild returns the first child node of an element.
element.lastChild returns the last child node of an element.
element.hasChildNodes returns true if an element has any child nodes, otherwise
false.
element.nextSibling returns the next node at the same tree level.
element.previousSibling returns the previous node at the same tree level.
element.parentNode returns the parent node of an element.

Вам также может понравиться