HTML Attributes презентация

HTML AttributesAttributes provide additional information about HTML elements. 
 All HTML elementsThe lang Attribute 
 The language of the document can beThe title Attribute 
 Here, a title attribute is added to the <p> element. TheThe href Attribute 
 HTML links are defined with the <a> tag. TheSize Attributes 
 HTML images are defined with the <img> tag.
 The filenameHTML Headings  
 Headings are defined with the <h1> to <h6>HTML Horizontal Rules 
 The <hr> tag defines a thematic breakThe HTML <head> Element 
 The HTML <head> element has nothing to doHTML Tip - How to View HTML Source 
 Have youHTML Paragraphs 
 The HTML <p> element defines a paragraph:
 Note: Browsers automatically add someHTML Display 
 You cannot be sure how HTML will beDon't Forget the End Tag 
 Most browsers will display HTMLHTML Line Breaks 
 The HTML <br> element defines a line break.
 Use <br>The Poem Problem 
 This poem will display on a singleThe HTML <pre> Element 
 The HTML <pre> element defines preformattedWhat are attributes?
 What are attributes?
 What does mean lang attribute?



Слайды и текст этой презентации
Слайд 1
Описание слайда:
HTML Attributes


Слайд 2
Описание слайда:
Attributes provide additional information about HTML elements. All HTML elements can have attributes Attributes provide additional information about an element Attributes are always specified in the start tag Attributes usually come in name/value pairs like: name="value"

Слайд 3
Описание слайда:
The lang Attribute The language of the document can be declared in the <html> tag. The language is declared with the lang attribute. Declaring a language is important for accessibility applications (screen readers) and search engines: The first two letters specify the language (en). If there is a dialect, use two more letters (US).

Слайд 4
Описание слайда:
The title Attribute Here, a title attribute is added to the <p> element. The value of the title attribute will be displayed as a tooltip when you mouse over the paragraph:

Слайд 5
Описание слайда:
The href Attribute HTML links are defined with the <a> tag. The link address is specified in the href attribute: Note: You will more about links and the <a> tag later at the farther lessons.

Слайд 6
Описание слайда:
Size Attributes HTML images are defined with the <img> tag. The filename of the source (src), and the size of the image (width and height) are all provided as attributes:

Слайд 7
Описание слайда:
HTML Headings Headings are defined with the <h1> to <h6> tags. <h1> defines the most important heading. <h6> defines the least important heading. Search engines use the headings to index the structure and content of your web pages. Users skim your pages by its headings. It is important to use headings to show the document structure. Note: Use HTML headings for headings only. Don't use headings to make text BIG or bold.

Слайд 8
Описание слайда:
HTML Horizontal Rules The <hr> tag defines a thematic break in an HTML page, and is most often displayed as a horizontal rule. The <hr> element is used to separate content (or define a change) in an HTML page:

Слайд 9
Описание слайда:
The HTML <head> Element The HTML <head> element has nothing to do with HTML headings. The <head> element is a container for metadata. HTML metadata is data about the HTML document. Metadata is not displayed. The <head> element is placed between the <html> tag and the <body> tag: Note: Metadata typically define the document title, character set, styles, links, scripts, and other meta information.

Слайд 10
Описание слайда:
HTML Tip - How to View HTML Source Have you ever seen a Web page and wondered "Hey! How did they do that?" To find out, right-click in the page and select "View Page Source" (in Chrome) or "View Source" (in IE), or similar in another browser. This will open a window containing the HTML code of the page.

Слайд 11
Описание слайда:
HTML Paragraphs The HTML <p> element defines a paragraph: Note: Browsers automatically add some white space (a margin) before and after a paragraph.

Слайд 12
Описание слайда:
HTML Display You cannot be sure how HTML will be displayed. Large or small screens, and resized windows will create different results. With HTML, you cannot change the output by adding extra spaces or extra lines in your HTML code. The browser will remove any extra spaces and extra lines when the page is displayed:

Слайд 13
Описание слайда:

Слайд 14
Описание слайда:
Don't Forget the End Tag Most browsers will display HTML correctly even if you forget the end tag: This example will work in most browsers, but do not rely on it. Note: Dropping the end tag can produce unexpected results or errors.

Слайд 15
Описание слайда:
HTML Line Breaks The HTML <br> element defines a line break. Use <br> if you want a line break (a new line) without starting a new paragraph: The <br> tag is an empty tag, which means that it has no end tag.

Слайд 16
Описание слайда:
The Poem Problem This poem will display on a single line:

Слайд 17
Описание слайда:
The HTML <pre> Element The HTML <pre> element defines preformatted text. The text inside a <pre> element is displayed in a fixed-width font (usually Courier), and it preserves both spaces and line breaks:

Слайд 18
Описание слайда:
What are attributes? What are attributes? What does mean lang attribute? What does mean tooltip attribute? What does mean href attribute? What does mean size attribute? Tell about HTML headings. Tell about HTML Horizontal Rules. How do you can view HTML source? Tell about HTML paragraph. How does define a line break? What does define <pre> element?


Скачать презентацию на тему HTML Attributes можно ниже:

Похожие презентации