Skip to content

Instantly share code, notes, and snippets.

@AndrewEddy
Created May 18, 2015 16:51
Show Gist options
  • Select an option

  • Save AndrewEddy/9157f2048a159d0cf822 to your computer and use it in GitHub Desktop.

Select an option

Save AndrewEddy/9157f2048a159d0cf822 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>Getting Started with HTML</title>
</head>
<body>
<h1>Header 1</h1>
<p>This is an example of a paragraph.</p>
<p>This is my second paragraph.</p>
<h2>Header 2</h2>
<h3>Header 3</h3>
<h4>Header 4</h4>
<h5>Header 5</h5>
<h6>Header 6</h6>
<a href="http://www.google.com">Go to Google</a>
<img src="https://www.google.com/images/srpr/logo11w.png">
</body>
</html>
@SOOREKEERTHANA
Copy link

sir when i add image its not displaying rather it is blank

@ashokraj1771-sketch
Copy link

ashokraj1771-sketch commented Mar 9, 2021

@vssrinidhi
Use br code beside Closing ANchor Tag( /a)

@aadibryan
Copy link

@vssrinidhi
the link and the image are on the same line , the link in the beggning followed by the image.

@harshitagithub
Copy link

harshitagithub commented May 1, 2021

Why image is shown above the link in the live preview as we have written image tag after the link tag?

that's because they are 2 types of elements.

  1. inline elements -> when these tags are used they don't cause line break. Examples are anchor tag, image tag, etc
  2. block elements -> when these tags are used they cause line break. Examples are paragraph tag, div tag, etc

@09208079
Copy link

Hello,
thank you for the code.

@sahukariprasanna
Copy link

ok

@khanafzu
Copy link

thank you for the code.

@Yashashwee
Copy link

Great

@mano18
Copy link

mano18 commented Mar 3, 2022

great

@DURGESAMSRINATH
Copy link

good

@Harsha-Vardhan12
Copy link

great

@sskkr999
Copy link

great

@Samanta2022
Copy link

Great

@pranjalbansal787
Copy link

Great

@SouvikKT
Copy link

good

@NoSoyRo
Copy link

NoSoyRo commented Nov 14, 2022

good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment