HTML Text Editors
• An HTML file is a text file, so to create an HTML
file we can use any text editors.
• Text editors are the programs which allow editing
in a written text, hence to create a web page we
need to write our code in some text editor.
• Basic Text Editor Notepad (For Windows) ,
TextEdit (For Mac)
• Professional Text Editor : Notepad++, Sublime
text, Vim , etc
HTML Heading
Heading 1 : <h1> </h1>
Heading 1 : <h2> </h2>
Heading 1 : <h3> </h3>
Heading 1 : <h4> </h4>
Heading 1 : <h5> </h5>
Heading 1 : <h6> </h6>
HTML Paragraph
Tag Description
<p> Defines a Paragraph
<hr> Defines a thematic changes
in the content
<br/> Inserts a single line break
<pre> Defines pre-formatted text.
HTML Attributes
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"
– Style
– Title
– Id
– Class
HTML Style
• Use the style attribute for styling HTML
elements
• 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