Extensible Markup Language: Нұсқалар арасындағы айырмашылық

Content deleted Content added
Өңдеу түйіні жоқ
36-жол:
 
==Терминологиясы==
Мақала толық еместі
 
;Тэг
:Белгілеу конструкторы мынамен басаталады <code><</code> және мынамен аяқталады <code>></code>.
 
Тэгтер үш түрде жызылуы мүмкін:
:*''бастау-тэгтері''; мысалы: <code>&lt;section></code>
:*''аяқтау-тэгтері''; мысалы: <code>&lt;/section></code>
:*''бос-элементті тэгтер''; мысалы: <code>&lt;line-break&nbsp;/></code>
 
;Элемент: A logical document component either begins with a start-tag and ends with a matching end-tag or consists only of an empty-element tag. The characters between the start- and end-tags, if any, are the element's ''content'', and may contain markup, including other elements, which are called ''child elements''. An example of an element is <code>&lt;Greeting>Hello,&nbsp;world.&lt;/Greeting></code> (see [[Hello world program|hello world]]). Another is <code>&lt;line-break&nbsp;/></code>.
 
;Аттрибут: Белгілеу конструкторы аты/мәні жұбынан тұрады, ол жұп бастау-тэгі не бос элемент-тэгі араларында жазылып отырады. Төмендегі мысалда ''img'' елементі екі аттрибуттан тұрады, олар ''src'' және ''alt'':
:<source lang="xml"><img src="madonna.jpg" alt='Foligno Madonna, by Raphael'/></source> өзге мысал: