HyperText Markup Language is the standard markup language for documents designed to be displayed in a web browser.
It defines the content and structure of web content. It is often assisted by technologies such as Cascading Style Sheets and scripting languages such as JavaScript.
Some HTML elements have no content (like the
element). These elements are called empty elements. Empty elements do not have an end tag!
With HTML you can create your own Website.HTML is easy to learn - You will enjoy it!
In this chapter we will show some basic HTML examples.Don't worry if we use tags you have not learned about yet.
- !DOCTYPE html: html file start with this.
- opening and closing tag of html.
- opening and closing tag of head.
- oprning and closing tag of title.
- opening and closing tag of body.
students result="score"
first grade
second grade
Setting the style of an HTML element, can be done with the style attribute.The HTML style attribute has the following syntax:
- Use background-color for background color
- Use color for text colors
- Use font-family for text fonts
- Use font-size for text sizes
- Use text-align for text alignment
HTML lists allow web developers to group a set of related items in lists. so can be orderd list and unorderd list.
HTML attributes provide additional information about HTML elements.
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.
- 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"