Html tag html 10 x10 wen liu art 2830Presentation Transcript
HTML TagHTML Art 2830 Wen Liu L/O/G/O
What is it? Definition: HTML is Hypertext Markup Language The root element that specifies that the content of the document is HTML. The html element must contain: Head Body
What is its function?HTML is the Structure of HTML TagHTML Tag Structure contains: html ,head , body , div , spanThe opening tag of HTML Documents follows: the DOCTYPE declaration. line breaks. the closing tag.
What attributes are possible for HTML?Required Attributes of HTML is XmlnsThe definition of xmlns is means XML namespace. Ex. Value Website: http://www.w3school.com.cn/xhtml http://www.w3.org/1999/xhtml.
Relationship between HTML and XML• They are all Markup language• Html is an ancient web programming language, and sets up for symbols at the front paragraph of the website.• XML is an extensible markup language, it can define the language, which means a meta language that can be used as small database.
Optional Attributes of HTML• dir Specifies the direction of content.Ex. Can give the details of each report, analyze, text and content.• xml:lang Specifies the language of an element.Ex. It can be set up for English, Chinese, German, Japanese. <html xmlns= http://www.w3school.com.cn/xhtml xml:lang="en">
A simply HTML & Paragraph Examples:A simply HTML Documents:<html><body></body></html>A simply paragraph<html><body><p>this is first paragraph.</p><p>this is second paragraph.</p><p>this is third paragraph.</p><p>in the HTML, p usually define the paragraph.</p></body></html>