HTML BASICS
HTML Basics: The Core Elements of Web Pages
Core HTML Tags
HTML consists of various tags and elements used to build and structure web pages. Here are some of the core tags:
- <html>: Encloses the entire HTML document.
- <head>: Contains meta-information about the document, such as the title and character set.
- <title>: Sets the title of the web page, displayed in the browser tab.
- <body>: Contains the content of the web page, including text, images, and other elements.
Basic HTML Example
Here’s a basic HTML document structure:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My Basic HTML Page</title>
</head>
<body>
<h1>Welcome to HTML Basics!</h1>
<p>This is a paragraph of text in a basic HTML document.</p>
</body>
</html>
Common HTML Elements
Some common elements you'll use in HTML include:
- <h1> to <h6>: Headings of different levels.
- <p>: Paragraphs of text.
- <a>: Links to other pages or websites.
- <img>: Images embedded in the page.
- <ul> and <ol>: Unordered and ordered lists.
No comments