Presentation is loading. Please wait.

Presentation is loading. Please wait.

HTML syntax By Ana Drinceanu. Definition: Syntax refers to the spelling and grammar of a programming language. Computers are inflexible machines that.

Similar presentations


Presentation on theme: "HTML syntax By Ana Drinceanu. Definition: Syntax refers to the spelling and grammar of a programming language. Computers are inflexible machines that."— Presentation transcript:

1 HTML syntax By Ana Drinceanu

2 Definition: Syntax refers to the spelling and grammar of a programming language. Computers are inflexible machines that understand what you type only if you type in the exact form that the computer expects. The expected form is called the syntax.

3 HTML uses elements to describe the structure of pages. There are several basic elements that are present in most HTML documents. Each element has an opening and closing tag. Some examples of these elements are:,,,, etc. The closing tags for these elements are:,,,, etc. Note: !doctype is a special instruction that does not require a closing tag.

4 Tags Tags are used to delimit the start and end of elements in markup. Elements have a start tag to indicate where they begin. Non-void elements have an end tag to indicate where they end. Starting tags consist of a “ ” character. Ending tags consist of a “ ” character.

5 A doctype (sometimes capitalized as “DOCTYPE”) is a special instruction which, for legacy reasons that have to do with processing models in browsers, is a required part of any document in the HTML syntax. Example:

6 The element is a container for all the head elements. The element can include a title for the document, scripts, styles, meta information, and more. The following elements can go inside the element: (this element is required in an HTML document)

7 The tag defines the document's body. The element contains all the contents of an HTML document, such as text, hyperlinks, images, tables, lists, etc. Included in the element are the,,,, etc.

8 HTML Syntax is crucial part of Web Design. Computers only understand a programing language when syntax is followed. Picture: http://sdelaemblog.ru/wp-content/uploads/2013/03/doctype- zachem-on-nuzhen-i-kakoj-vybrat.png

9 References: Jon Duckett, HTML & CSS design and build websites http://www.webopedia.com/TERM/S/syntax.htmlhttp://www.webopedia.com/TERM/S/syntax.html) http://www.w3.org/TR/html-markup/syntax.html http://www.w3schools.com/tags/tag_head.asp http://www.w3schools.com/tags/tag_body.asp


Download ppt "HTML syntax By Ana Drinceanu. Definition: Syntax refers to the spelling and grammar of a programming language. Computers are inflexible machines that."

Similar presentations


Ads by Google