Lesson 4 : HTML Basic

الدرس 4: HTML Basic

Lesson 4 : HTML Basic

Basic Structure of an HTML Document

An HTML document consists of several essential elements:

 <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>This is a Heading</h1> <p>This is a paragraph.</p> </body> </html> 

 

Common HTML Elements

Here are some commonly used HTML elements:

Headings

 <h1>This is a Heading</h1> <h2>This is a SubHeading.</h2> 

Paragraphs

 <p>This is a paragraph.</p> 

Links

 <a href="https://www.example.com">Visit Example</a> 

Images

 <img src="image.jpg" alt="Description of image"> 

 Conclusion

HTML is the foundation of web development. Understanding its basic structure and elements is essential for creating websites.

    Important links ِAbout Us

    Share with your friends

    العودة إلى المقالات