aboutsummaryrefslogtreecommitdiff
path: root/files/ca/web/html/inline_elements/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ca/web/html/inline_elements/index.html')
-rw-r--r--files/ca/web/html/inline_elements/index.html82
1 files changed, 82 insertions, 0 deletions
diff --git a/files/ca/web/html/inline_elements/index.html b/files/ca/web/html/inline_elements/index.html
new file mode 100644
index 0000000000..0ec8db2c0d
--- /dev/null
+++ b/files/ca/web/html/inline_elements/index.html
@@ -0,0 +1,82 @@
+---
+title: Elements en línia
+slug: Web/HTML/Elements_en_línia
+tags:
+ - Beginner
+ - HTML
+ - 'HTML:Element Reference'
+translation_of: Web/HTML/Inline_elements
+---
+<h2 id="Summary" name="Summary">Sumari</h2>
+
+<p>Els elements HTML (Hypertext Markup Language) solen ser elements "en línia" o elements a "nivell de bloc". Un element en línia ocupa només l'espai delimitat per les etiquetes que defineixen l'element en línia. El següent exemple demostra la influència de l'element en línia:</p>
+
+<h2 id="Inline_example" name="Inline_example">Exemple en línia</h2>
+
+<h3 id="HTML">HTML</h3>
+
+<pre class="brush: html">&lt;p&gt;This &lt;span&gt;span&lt;/span&gt; is an inline element; its background has been colored to display both the beginning and end of the inline element's influence&lt;/p&gt;</pre>
+
+<h3 id="CSS">CSS</h3>
+
+<pre class="brush: css">span { background-color: #8ABB55; }
+</pre>
+
+<p>{{ EmbedLiveSample('Inline_example') }}</p>
+
+<h2 id="En_línia_vs._nivell_de_bloc">En línia vs. nivell de bloc</h2>
+
+<dl>
+ <dt>Model de contingut</dt>
+ <dd>En general, els elements en línia poden contenir únicament les dades i altres elements en línia.</dd>
+ <dt>Format</dt>
+ <dd>Per defecte, els elements en línia no comencen amb nova línia.</dd>
+</dl>
+
+<h2 id="Elements" name="Elements">Elements</h2>
+
+<p>Els següents elements són "en línia":</p>
+
+<div class="threecolumns">
+<dl>
+ <dt>{{ HTMLElement("a") }}</dt>
+ <dt>{{ HTMLElement("b") }}</dt>
+ <dt>{{ HTMLElement("big") }}</dt>
+ <dt>{{ HTMLElement("i") }}</dt>
+ <dt>{{ HTMLElement("small") }}</dt>
+ <dt>{{ HTMLElement("tt") }}</dt>
+ <dt>{{ HTMLElement("abbr") }}</dt>
+ <dt>{{ HTMLElement("acronym") }}</dt>
+ <dt>{{ HTMLElement("cite") }}</dt>
+ <dt>{{ HTMLElement("code") }}</dt>
+ <dt>{{ HTMLElement("dfn") }}</dt>
+ <dt>{{ HTMLElement("em") }}</dt>
+ <dt>{{ HTMLElement("kbd") }}</dt>
+ <dt>{{ HTMLElement("strong") }}</dt>
+ <dt>{{ HTMLElement("samp") }}</dt>
+ <dt>{{ HTMLElement("time") }}</dt>
+ <dt>{{ HTMLElement("var") }}</dt>
+ <dt>{{ HTMLElement("a") }}</dt>
+ <dt>{{ HTMLElement("bdo") }}</dt>
+ <dt>{{ HTMLElement("br") }}</dt>
+ <dt>{{ HTMLElement("img") }}</dt>
+ <dt>{{ HTMLElement("map") }}</dt>
+ <dt>{{ HTMLElement("object") }}</dt>
+ <dt>{{ HTMLElement("q") }}</dt>
+ <dt>{{ HTMLElement("script") }}</dt>
+ <dt>{{ HTMLElement("span") }}</dt>
+ <dt>{{ HTMLElement("sub") }}</dt>
+ <dt>{{ HTMLElement("sup") }}</dt>
+ <dt>{{ HTMLElement("button") }}</dt>
+ <dt>{{ HTMLElement("input") }}</dt>
+ <dt>{{ HTMLElement("label") }}</dt>
+ <dt>{{ HTMLElement("select") }}</dt>
+ <dt>{{ HTMLElement("textarea") }}</dt>
+</dl>
+</div>
+
+<h2 id="See_also" name="See_also">Veure</h2>
+
+<ul>
+ <li><a href="/en/HTML/Block-level_elements" title="en/HTML/Block-level_elements">Elements a nivell de bloc</a></li>
+</ul>