Вы находитесь на странице: 1из 2

<img src="w3schools.jpg" width="104" height="142" /> <a href="http://www.w3schools.com">This is a link</a> <p>This is a paragraph.

</p> <h1>This <h2>This <h3>This Headings syntax:<html> <body> <p>This is my first paragraph.</p> </body> </html> <p> This is a paragraph </p> is a heading</h1> is a heading</h2> is a heading</h3> are defined with the <h1> to <h6> tags.

elements:HTML documents are defined by HTML elements. HTML Elements An HTML element is everything from the start tag to the end tag: Start tag * Element content End tag * <p> This is a paragraph </p> <a href="default.htm" > This is a link </a> <br />-THIS IS USED TO CHANGE A LINE..THIS IS AN EXAMPLE OF Empty HTML Elements HTML elements with no content are called empty elements. Empty elements can be c losed in the start tag. Even if <br> works in all browsers, writing <br /> instead is more future proof.

HTML Attributes :HTML elements can have attributes Attributes provide additional information about an element Attributes are always specified in the start tag Attributes come in name/value pairs like: name="value" Example <a href="http://www.w3schools.com">This is a link</a> name=href value=".............." "this is a link" would be the title where u would click to open link. The <a> tag can be used in two ways: To create a link to another document, by using the href attribute

To create a bookmark inside a document, by using the name attribute

nested html elements:elements can contain other elements this is called nested elements.this is a fea ture of html. <p>This is<br />a para<br />graph with line breaks</p> tip:HTML tags are not case sensitive: <P> means the same as <p>. Many web sites use uppercase HTML tags.

learn attributes and tags from our manual.

Вам также может понравиться