HTML is the standard markup language for creating Web pages. HTML stands for Hyper Text Markup Language HTML is the standard markup language for creating Web pages HTML describes the structure of a Web page HTML consists of a series of elements HTML elements tell the browser how to display the content HTML elements label pieces of content such as "this is a heading", "this is a paragraph", "this is a link", etc.
In this chapter we will show some basic HTML examples. Don't worry if we use tags you have not learned about yet.
An HTML element is defined by a start tag, some content, and an end tag. HTML elements can be nested (this means that elements can contain other elements). All HTML documents consist of nested HTML elements.
HTML attributes provide additional information about HTML elements. HTML Attributes- All HTML elements can have attributes Attributes provide additional information about elements Attributes are always specified in the start tag Attributes usually come in name/value pairs like: name="value"
Heading 1 Heading 2 Heading 3 Heading 4 Heading 5 Heading 6
A paragraph always starts on a new line, and is usually a block of text. The HTML p element defines a paragraph. A paragraph always starts on a new line, and browsers automatically add some white space (a margin) before and after a paragraph.
The HTML style attribute is used to add styles to an element, such as color, font, size, and more. Setting the style of an HTML element, can be done with the style attribute. The HTML style attribute has the following syntax: