Writing codes involves using a code editor and understanding the basic structure and syntax of HTML.
1. Choose a text editor
Simple text editor: Notepad or textedit can be used for basic html coding.
Specialized code editors: Visual Studio Code(VS Code), sublime text, or atom offer features like syntax highlighting, auto completion, and extensions that enhance the coding experience. VS Code is a popular choice and is freely available.
2. Create an HTML file
Open your chosen text editor
create a new file
save the file name with a .html extension (e.g index.html). This tells your computer and web browsers that it is a html document.
3. Basic HTML structure
All HTML document follow a fundamental structures
4. Understanding html tags and elements
Html uses tags to define elements. Tags are keywords enclosed in angle brackets (e.g. <h1>, <p>, <a>)
Most tags come in pairs: an opening tag and a closing tag. The closing tag includes a forward slash before the tag name (e.g. <h1> and </h1>)
The content between the opening and closing tags forms an html element.
Some tags are self closing or void elements and do not require a closing tag (e.g. <br> for a line break, <img> for an image.>


No comments:
Post a Comment