Download presentation
Presentation is loading. Please wait.
Published byRuth Powers Modified over 8 years ago
1
Hyper Text Markup Language
2
My First Heading My first paragraph. Example Explained The DOCTYPE declaration defines the document type The text between and describes the web page The text between and is the visible page content The text between and is displayed as a heading The text between and is displayed as a paragraph
3
HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is a markup language A markup language is a set of markup tags The tags describes document content HTML documents contain HTML tags and plain text HTML documents are also called web pages
4
HTML markup tags are usually called HTML tags HTML tags are keywords (tag names) surrounded by angle brackets like HTML tags normally come in pairs like and The first tag in a pair is the start tag, the second tag is the end tag The end tag is written like the start tag, with a forward slash before the tag name Start and end tags are also called opening tags and closing tags
5
"HTML tags" and "HTML elements" are often used to describe the same thing. But strictly speaking, an HTML element is everything between the start tag and the end tag, including the tags: HTML Element: This is a paragraph.
6
The purpose of a web browser (such as Google Chrome, Internet Explorer, Firefox, Safari) is to read HTML documents and display them as web pages. The browser does not display the HTML tags, but uses the tags to interpret the content of the page:
7
Since the early days of the web, there have been many versions of HTML: VersionYear HTML1991 HTML+1993 HTML 2.01995 HTML 3.21997 HTML 4.011999 XHTML 1.02000 HTML52012 XHTML52013
8
The declaration helps the browser to display a web page correctly. There are many different documents on the web, and a browser can only display an HTML page 100% correctly if it knows the HTML type and version used.
9
HTML5 HTML 4.01 XHTML 1.0
10
Bgcolor Background Topmargin Leftmargin Rightmargin bottommargin
11
Align left,right,center
12
The comment tag is used to insert comments in the source code. Comments are not displayed in the browsers. You can use comments to explain your code, which can help you when you edit the source code at a later date. This is especially useful if you have a lot of code. It is also a good practice to use the comment tag to "hide" scripts from browsers without support for it (so they don't show them as plain text):
13
The declaration must be the very first thing in your HTML document, before the tag. The declaration is not an HTML tag; it is an instruction to the web browser about what version of HTML the page is written in. In HTML 4.01, the declaration refers to a DTD, because HTML 4.01 was based on SGML. The DTD specifies the rules for the markup language, so that the browsers render the content correctly. HTML5 is not based on SGML, and therefore does not require a reference to a DTD.
14
HTML 5 HTML 4.01 Strict This DTD contains all HTML elements and attributes, but does NOT INCLUDE presentational or deprecated elements (like font). Framesets are not allowed. HTML 4.01 Transitional This DTD contains all HTML elements and attributes, INCLUDING presentational and deprecated elements (like font). Framesets are not allowed.
15
HTML 4.01 Frameset This DTD is equal to HTML 4.01 Transitional, but allows the use of frameset content. XHTML 1.0 Strict This DTD contains all HTML elements and attributes, but does NOT INCLUDE presentational or deprecated elements (like font). Framesets are not allowed. The markup must also be written as well-formed XML.
16
XHTML 1.0 Transitional This DTD contains all HTML elements and attributes, INCLUDING presentational and deprecated elements (like font). Framesets are not allowed. The markup must also be written as well-formed XML. XHTML 1.0 Frameset This DTD is equal to XHTML 1.0 Transitional, but allows the use of frameset content. XHTML 1.1 This DTD is equal to XHTML 1.0 Strict, but allows you to add modules (for example to provide ruby support for East-Asian languages).
17
Writing HTML Using Notepad or TextEdit HTML can be edited by using a professional HTML editor like: Adobe Dreamweaver Microsoft Expression Web CoffeeCup HTML Editor However, for learning HTML we recommend a text editor like Notepad (PC) or TextEdit (Mac). We believe using a simple text editor is a good way to learn HTML.
19
To start Notepad go to: Start All Programs Accessories Notepad
20
Type your HTML code into your Notepad:
21
Select Save as.. in Notepad's file menu. When you save an HTML file, you can use either the.htm or the.html file extension. There is no difference, it is entirely up to you. Save the file in a folder that is easy to remember.
22
Start your web browser and open your html file from the File, Open menu, or just browse the folder and double-click your HTML file. The result should look much like this:
23
Attribute Color Size Face
24
26
Attributes Width Height border
27
#6699ff
28
Bgcolor Scrollamount Width Height Direction (up,down,left,right) Loop
29
List item 1 List item 2 List item 3
30
Attributes Start TypeA,a,i,I,1 one two
31
Attributes Start Typecircle,square,disc one two
32
Definition Description, Definition List, Definition List Definition Term Definition of the term Definition Term Definition of the term
33
34
The tag defines an embedded object within an HTML document. Use this element to embed multimedia (like audio, video, Java applets, ActiveX, PDF, and Flash) in your web pages. You can also use the tag to embed another webpage into your HTML document. You can use the tag to pass parameters to plugins that have been embedded with the tag.
35
Attributes bgcolor Width Height Cellspacing Cellpadding background
36
The tag defines a hyperlink, which is used to link from one page to another. Clickme By default, links will appear as follows in all browsers: An unvisited link is underlined and blue A visited link is underlined and purple An active link is underlined and red
37
HTML Tag. Not Supported in HTML5
38
The tag is used to define style information for an HTML document. Inside the element you specify how HTML elements should render in a browser. Each HTML document can contain multiple tags.
39
h1 {color:red;} p {color:blue;} A heading A paragraph.
40
The tag specifies a section that is quoted from another source. The tag is not supported in HTML5. Use CSS instead. For 50 years, WWF has been protecting the future of nature. The world’s leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally.
41
Action Methodpost/get
42
(rows,cols) (allow=multiple) for list Size to define number of fields
43
The tag is used to group related elements in a form. The tag draws a box around the related elements. Personalia: Name: Email: Date of birth:
44
46
The tag is used to define a client-side image-map. An image-map is an image with clickable areas. The required name attribute of the element is associated with the 's usemap attribute and creates a relationship between the image and the map. The element contains a number of elements, that defines the clickable areas in the image map.
47
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.