HTML Full Documentation
HTML Full Documentation
What is HTML?
HTML (HyperText Markup Language) is the standard markup language used to create web pages. It
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
</body>
</html>
Elements are the building blocks of HTML. Tags are used to mark the beginning and end of an element.
Example:
<p>This is a paragraph</p>
Paragraph: <p>
Div: <div>
Span: <span>
Break: <br>
HTML Full Documentation
HTML Attributes
Attributes provide additional information about elements. Written inside the opening tag.
Example:
HTML Forms
<label for="name">Name:</label>
</form>
Semantic HTML
HTML Media
Image: <img>
HTML Comments
Used to leave notes inside the HTML code that are not visible to users.
Doctype Declaration
<!DOCTYPE html>
HTML Full Documentation
This must be the first line in an HTML document. It tells the browser the version of HTML used.